Skip to main content
POST
Reference example
Run a real-time web search built for AI agents and get back a ranked list of titled results with links and snippets. Query is required; narrow the result set with Count (up to 20), Filter (Sites to restrict, BlockHosts to exclude), Language, and TimeRange. The response wraps ResponseMetadata.RequestId and a Result object whose WebResults array holds each hit (Title, Url, Snippet, Summary, SiteName, PublishTime/PublishTimeUnix), alongside ResultCount, SearchContext, and TimeCost. Billed at a flat rate per successful call; failed requests are not charged. Use it for RAG retrieval augmentation, competitive/PR monitoring, fact-checking, and content sourcing. ⚠️ Results carry links and snippets, not full page text — pair each result URL with post_byteplus_fetch to pull clean, structured page content.

Request contract

Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.0048 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.0048
  • Cost contract: fixed_success
  • Published reference multiplier: 1.0
  • Settlement evidence source: request_snapshot

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Query
string
required

The search query. Required. Max 400 characters; the upstream engine also effectively caps around 50 words.

Maximum string length: 400
Example:

"OpenAI news"

Count
integer
default:10

Number of results to return. Optional; default 10, maximum 20.

Required range: x <= 20
Example:

10

Filter
object

Optional result filter. Both fields are pipe-separated strings of full domains (max 5 each).

Language
string

Optional language hint in the upstream format, e.g. EN, ZH-HANS, ZH-HANT.

Example:

"EN"

TimeRange

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.

Available options:
OneDay,
OneWeek,
OneMonth,
OneYear
Example:

"OneWeek"

Response

Search completed successfully. Result holds the ranked web results.

ResponseMetadata
object

Upstream request metadata.

Result
object

Search result payload.