Documentation Index
Fetch the complete documentation index at: https://exa.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Microsoft deprecated the Bing Search API on August 11th, 2025. This guide provides the technical details needed to migrate from Bing Search API to Exa’s search API.
Quick Start
Get your API key
Install the SDK
Replace your API calls
Bing
curl -H "Ocp-Apim-Subscription-Key: YOUR_BING_KEY" \
"https://api.bing.microsoft.com/v7.0/search?q=latest%20AI%20news&count=10"
Exa
curl -X POST https://api.exa.ai/search \
-H "x-api-key: YOUR_EXA_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "latest AI news",
"numResults": 10
}'
Parameter Mapping
| Bing Parameter | Exa Parameter | Notes |
|---|
q | query | Required parameter |
count | numResults | Default: 10, Max: 100 |
mkt, cc | userLocation | Use 2-letter ISO country code |
freshness | startPublishedDate
endPublishedDate
startCrawlDate
endCrawlDate | Use ISO 8601 date format |
site: operator | includeDomains
excludeDomains | Use arrays of domain strings |
| Query filters | includeText
excludeText | Use arrays of phrase filters |
safeSearch | moderation | Disabled by default, set to true to enable |
offset | Not supported | |
Bing Response Structure
{
"webPages": {
"value": [
{
"name": "Page Title",
"url": "https://example.com",
"snippet": "Description...",
"dateLastCrawled": "2025-08-11T00:00:00"
}
]
}
}
Exa Response Structure
{
"results": [
{
"title": "Page Title",
"url": "https://example.com",
"publishedDate": "2025-08-11",
"author": "Author Name",
"text": "Full content when requested...",
"highlights": ["Key sentences..."]
}
],
"requestId": "unique-id"
}
Examples
Fresh Content Search
Bing
curl -H "Ocp-Apim-Subscription-Key: YOUR_KEY" \
"https://api.bing.microsoft.com/v7.0/search?q=AI+news&freshness=Week"
Exa
curl -X POST https://api.exa.ai/search \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "AI news",
"startPublishedDate": "2025-08-04T00:00:00Z",
"type": "auto"
}'
Domain-Specific Search
Bing
curl -H "Ocp-Apim-Subscription-Key: YOUR_KEY" \
"https://api.bing.microsoft.com/v7.0/search?q=site:arxiv.org+transformers"
Exa
curl -X POST https://api.exa.ai/search \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "transformers",
"includeDomains": ["arxiv.org"],
"type": "auto"
}'
Exa provides integrated content extraction, eliminating the need for separate API calls:
curl -X POST https://api.exa.ai/search \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "climate change research",
"numResults": 5,
"contents": {
"text": true,
"highlights": {
"query": "key findings"
}
}
}'