curl --request POST \
--url https://api.octen.ai/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What record did Kendrick Lamar break at the 2026 Grammy Awards?",
"count": 5
}
'{
"code": 0,
"msg": "success",
"request_id": "req_abc123def456",
"data": {
"query": "latest WHO guidance on influenza vaccination",
"results": [
{
"title": "Influenza (Seasonal) - World Health Organization (WHO)",
"url": "https://www.who.int/news-room/fact-sheets/detail/influenza-(seasonal)",
"highlight": "WHO recommends annual vaccination for high-risk groups\n\n...\n\nSeasonal influenza vaccination policies vary by region...",
"authors": "World Health Organization",
"time_published": "2024-10-15T00:00:00Z",
"time_last_crawled": "2026-01-20T02:12:34Z",
"favicon": "https://www.who.int/favicon.ico",
"cover_image": {
"url": "https://www.who.int/images/default-source/influenza/seasonal-influenza-cover.jpg",
"description": "Seasonal influenza vaccination"
},
"images": [
{
"url": "https://www.who.int/images/default-source/influenza/influenza-vaccine-vial.jpg",
"description": "A vial of seasonal influenza vaccine."
}
]
}
]
},
"meta": {
"usage": {
"num_search_queries": 1,
"full_content_extra_count": 0
},
"latency": 237,
"warning": null
}
}{
"code": 400,
"msg": "Missing parameter query",
"request_id": "req_abc123def456"
}{
"code": 401,
"msg": "Invalid API Key",
"request_id": "req_abc123def456"
}{
"code": 403,
"msg": "Insufficient balance in account",
"request_id": "req_abc123def456"
}{
"code": 429,
"msg": "Exceeding the rate limit",
"request_id": "req_abc123def456"
}{
"code": 500,
"msg": "Internal error",
"request_id": "req_abc123def456"
}Web Search
Searches the live web and returns ranked results with model-ready highlights and optional full content. Optional filters narrow sources, time windows, and languages.
curl --request POST \
--url https://api.octen.ai/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What record did Kendrick Lamar break at the 2026 Grammy Awards?",
"count": 5
}
'{
"code": 0,
"msg": "success",
"request_id": "req_abc123def456",
"data": {
"query": "latest WHO guidance on influenza vaccination",
"results": [
{
"title": "Influenza (Seasonal) - World Health Organization (WHO)",
"url": "https://www.who.int/news-room/fact-sheets/detail/influenza-(seasonal)",
"highlight": "WHO recommends annual vaccination for high-risk groups\n\n...\n\nSeasonal influenza vaccination policies vary by region...",
"authors": "World Health Organization",
"time_published": "2024-10-15T00:00:00Z",
"time_last_crawled": "2026-01-20T02:12:34Z",
"favicon": "https://www.who.int/favicon.ico",
"cover_image": {
"url": "https://www.who.int/images/default-source/influenza/seasonal-influenza-cover.jpg",
"description": "Seasonal influenza vaccination"
},
"images": [
{
"url": "https://www.who.int/images/default-source/influenza/influenza-vaccine-vial.jpg",
"description": "A vial of seasonal influenza vaccine."
}
]
}
]
},
"meta": {
"usage": {
"num_search_queries": 1,
"full_content_extra_count": 0
},
"latency": 237,
"warning": null
}
}{
"code": 400,
"msg": "Missing parameter query",
"request_id": "req_abc123def456"
}{
"code": 401,
"msg": "Invalid API Key",
"request_id": "req_abc123def456"
}{
"code": 403,
"msg": "Insufficient balance in account",
"request_id": "req_abc123def456"
}{
"code": 429,
"msg": "Exceeding the rate limit",
"request_id": "req_abc123def456"
}{
"code": 500,
"msg": "Internal error",
"request_id": "req_abc123def456"
}Authorizations
Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header.
Body
Web search behavior configuration.
The search query.
Operators
site:<domain>: restrict results to a single domain. For multiple domains, useinclude_domainsandexclude_domains.-site:<domain>: exclude a single domain from the results.
500Use general for general web search, or news for news-focused results.
general, news Number of results to return.
1 <= x <= 100A list of domains to specifically include in the search results. The site: query operator adds to this list.
120060["octen.ai", "wikipedia.org"]
A list of domains to specifically exclude from the search results. The -site: query operator adds to this list. If a domain appears in both include_domains and exclude_domains, exclude_domains takes precedence.
120060["spam.com", "ads.example.net"]
Strings that must appear in the result page text.
530Strings that must not appear in the result page text.
530Determines which time field is used for time filtering. published uses time_published; crawled uses time_last_crawled. Results missing this field are excluded when filtering by time.
auto, published, crawled Relative time window counting back from the current time based on time_basis. Mutually exclusive with start_time/end_time — if both are provided, start_time/end_time take precedence.
day, week, month, year, d, w, m, y Start time for filtering results. ISO 8601 format.
"2025-01-01T00:00:00+08:00"
End time for filtering results. ISO 8601 format.
"2025-01-01T00:00:00+08:00"
A list of languages to restrict results to, as ISO 639-1 codes. By default, no language filter is applied.
ar, de, en, es, fr, hi, id, it, ja, ko, nl, pl, pt, ru, th, tr, vi, zh ["en", "zh"]
Controls highlight extraction from result pages.
Show child attributes
Show child attributes
Controls whether to return the full raw content of each result page.
Show child attributes
Show child attributes
Controls the formatting of highlight outputs.
markdown, text Controls filtering of explicit/adult content. off disables filtering; strict drops all adult content.
off, strict Whether to include images in each result.
Response
Successful search response
Was this page helpful?