Returns a list of unified search results from web and news sources
Changed onThis endpoint is designed to return LLM-ready web results based on a user's query. Based on a classification mechanism, it can return web results and news associated with your query. If you need to feed an LLM with the results of a query that sounds like What are the latest geopolitical updates from India, then this endpoint is the right one for you.
Each result can carry three levels of content. Snippets come back by default—short, keyword-centered fragments that suit a person skimming a results page, though an agent grounding an answer usually needs more. Full page content gives you everything, which can be a lot for the model to read. Highlights sit in between, returning the passages of a page that address the query and nothing else. These are query-aware and token-efficient excerpts, which matter most for agents that run several searches per task and read every result rather than the top few. Both are available through the new extraction parameter, as extraction_mode: "highlights" or extraction_mode: "full_page".
<Note> GET /v1/search still works and existing integrations will keep running, but it will not receive new feature updates. New features will be added to POST only, and extraction is only available here. </Note>
Request
- Base URLhttps://ydc-index.io
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"query": "What are the latest geopolitical updates from India",
"knowledge": "core",
"include_domains": [
"nytimes.com",
"bbc.com"
],
"exclude_domains": [
"spam-site.com",
"other-site.com"
],
"boost_domains": [
"nytimes.com",
"wired.com"
],
"strict_operators": true,
"extraction": {
"extraction_mode": "highlights",
"extraction_source": "blend",
"highlights": {
"total_max_tokens": 1024
},
"full_page": {
"extraction_formats": [
"markdown"
]
}
},
"crawl_timeout": 10
}Response
A JSON object containing unified search results from web and news sources
Example response
{
"results": {
"web": [
{
"url": "https://you.com",
"title": "The World's Greatest Search Engine!",
"description": "Search on YDC",
"snippets": [
"I'm an AI assistant that helps you get more done. What can I help you with?"
],
"thumbnail_url": "https://www.somethumbnailsite.com/thumbnail.jpg",
"page_age": "2025-06-25T11:41:00",
"contents": {
"highlights": [
"India has transitioned into a \"peace architect\" by maintaining high-level trust with both Moscow and Kyiv."
]
},
"favicon_url": "https://someurl.com/favicon"
}
],
"knowledge": [
{
"type": "answer",
"title": "NVIDIA Corporation Total Revenues (Normalized) (Quarterly)",
"attribution": [
{
"name": "Fiscal.ai",
"source_description": "Fiscal.ai is a financial data provider that publishes as-reported and standardized company financials, segments, KPIs, and ratios extracted from filings."
}
],
"description": "NVIDIA Corporation Total Revenues (Normalized) (Quarterly)'s latest value was $81,615,000,000 in Apr 2026, up 6,424.0% since Jan 2015.",
"as_of": "2026-04-26"
}
]
},
"metadata": {
"search_uuid": "942ccbdd-7705-4d9c-9d37-4ef386658e90",
"query": "What are the latest geopolitical updates from India",
"latency": 0.123
}
}Changes
- breaking
removed the enum value
newsof the request property - warning
removed the optional property
/from the response with the status - info
added the new optional request property
- breaking
- breaking
the
///response's property format changed fromdate-timeto no format for status - breaking
the
///response's property format changed fromdate-timeto no format for status - info
added the new optional request property
/
- breaking