Felo API PlatformFelo API Platform

資料 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.