データ 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.