資料 API / BytePlus / Web Search
AI-oriented real-time web search.
Run a real-time web search built for AI agents and return a ranked list of titled results with links and snippets. Query is required; narrow the result set with Count (≤ 20), Filter (restrict to Sites or exclude BlockHosts), Language, and TimeRange. The response wraps ResponseMetadata.RequestId and a Result list of web results. Use it for RAG retrieval augmentation, competitive/PR monitoring, fact-checking, and content sourcing; pair each result URL with post_byteplus_fetch to pull full page content.
參數
沒有路徑、查詢或請求標頭參數。
請求主體
Querystring必填The search query. Required. Max 400 characters; the upstream engine also effectively caps around 50 words.
Countinteger選填Number of results to return. Optional; default 10, maximum 20.
Filterobject選填Optional result filter. Both fields are pipe-separated strings of full domains (max 5 each).
Sitesstring選填Restrict results to these full domains. Pipe-separated, max 5, e.g. "bytedance.com|byteplus.com". (Sending an array returns 10400 Invalid Parameter.)
BlockHostsstring選填Exclude results from these full domains. Pipe-separated, max 5, e.g. "reddit.com|quora.com".
Languagestring選填Optional language hint in the upstream format, e.g. EN, ZH-HANS, ZH-HANT.
TimeRange選填允許值: OneDay · OneWeek · OneMonth · OneYear
Optional recency window. One of the named windows OneDay / OneWeek / OneMonth / OneYear, or a custom range "YYYY-MM-DD..YYYY-MM-DD". Omit for no time filter. NOTE: values like "week"/"month" are silently ignored upstream.
請求範例
curl -X POST "https://openapi.felo.ai/v1/beta/byteplus/web-search" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Query": "<string>",
"Count": 0,
"Filter": {},
"Language": "<string>",
"TimeRange": {}
}'回應
回應欄位
ResponseMetadataobject選填Upstream request metadata.
RequestIdstring選填Unique identifier for this request.
Actionstring選填Versionstring選填Servicestring選填Regionstring選填Resultobject選填Search result payload.
ResultCountinteger選填Number of web results returned.
WebResultsobject[]選填Ranked list of web results.
Idstring選填Opaque result id.
SortIdinteger選填1-based rank of the result.
Titlestring選填Result title.
SiteNamestring選填Source site name (may be empty).
Urlstring選填Result URL.
Snippetstring選填Short text snippet from the page.
Summarystring選填Longer summary of the page content.
PublishTimestring選填Publish time in ISO 8601 (may be empty).
PublishTimeUnixinteger選填Publish time as Unix seconds (0 if unknown).
LogoUrlstring選填Signed site logo URL (time-limited).
SearchContextobject選填Echo of the resolved query context.
OriginQuerystring選填SearchTypestring選填TimeCostinteger選填Upstream processing time in milliseconds.
LogIdstring選填Upstream log id (equals ResponseMetadata.RequestId).
Choices選填Reserved; null unless applicable.
Usage選填Reserved; null unless applicable.