Execute Web Search
curl --request POST \
--url https://cloud.onyx.app/api/web-search/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"queries": [
"<string>"
],
"max_results": 10
}
'{
"search_results": [
{
"document_citation_number": 123,
"url": "<string>",
"title": "<string>",
"snippet": "<string>",
"unique_identifier_to_strip_away": "<string>",
"type": "web_search"
}
],
"full_content_results": [
{
"document_citation_number": 123,
"content": "<string>",
"unique_identifier_to_strip_away": "<string>",
"type": "open_url"
}
]
}Search
Execute Web Search
Perform a web search and immediately fetch content for the returned URLs.
Use this when you want both snippets and page contents from one call.
If you want to selectively fetch content (i.e. let the LLM decide which URLs to read),
use /search-lite and then call /open-urls separately.
POST
/
web-search
/
search
Execute Web Search
curl --request POST \
--url https://cloud.onyx.app/api/web-search/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"queries": [
"<string>"
],
"max_results": 10
}
'{
"search_results": [
{
"document_citation_number": 123,
"url": "<string>",
"title": "<string>",
"snippet": "<string>",
"unique_identifier_to_strip_away": "<string>",
"type": "web_search"
}
],
"full_content_results": [
{
"document_citation_number": 123,
"content": "<string>",
"unique_identifier_to_strip_away": "<string>",
"type": "open_url"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authorization header with Bearer token
Body
application/json
Response
Successful Response
Available options:
google_pse, serper, exa, searxng Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
onyx_web_crawler, firecrawl, exa Was this page helpful?
⌘I