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

Get your Exa API key

Install the SDK

pip install exa-py

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 ParameterExa ParameterNotes
qqueryRequired parameter
countnumResultsDefault: 10, Max: 100
mkt, ccuserLocationUse 2-letter ISO country code
freshnessstartPublishedDate
endPublishedDate
startCrawlDate
endCrawlDate
Use ISO 8601 date format
site: operatorincludeDomains
excludeDomains
Use arrays of domain strings
Query filtersincludeText
excludeText
Use arrays of phrase filters
safeSearchBuilt-in moderationEnabled by default
offsetNot supported

Response Format Differences

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",
      "score": 0.95,
      "text": "Full content when requested...",
      "highlights": ["Key sentences..."]
    }
  ],
  "requestId": "unique-id"
}

Examples

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"
  }'
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"
  }'

Search with Content Extraction

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": {
        "numSentences": 3,
        "query": "key findings"
      }
    }
  }'