What's new See our recent updates

ChatGPT API

Scrape ChatGPT's answers as structured JSON with cited sources.
  • Pay only for successful ChatGPT answers
  • Live web search with cited sources and inline citations
  • Knowledge entities, detail cards, and image carousels
No credit card required.
          curl --get https://www.searchapi.io/api/v1/search \
  -d engine="chatgpt" \
  -d q="What are the top AI news stories this week?" \
  -d web_search="true" \
  -d api_key="YOUR_API_KEY"
        

ChatGPT API Response

Get JSON results in seconds

{
  "search_metadata": {
    "id": "search_JRz4KNQmOp60YHVoyWl8DBvr",
    "status": "Success",
    "created_at": "2026-06-24T05:27:09Z",
    "request_time_taken": 8.06,
    "parsing_time_taken": 0.02,
    "total_time_taken": 8.08,
    "request_url": "https://chatgpt.com/?q=Tell+me+about+the+Eiffel+Tower",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_JRz4KNQmOp60YHVoyWl8DBvr.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_JRz4KNQmOp60YHVoyWl8DBvr"
  },
  "search_parameters": {
    "engine": "chatgpt",
    "q": "Tell me about the Eiffel Tower"
  },
  "text_blocks": [
    {
      "type": "paragraph",
      "answer": "The Eiffel Tower is one of the most famous landmarks in the world and a symbol of both Paris and France."
    },
    {
      "type": "header",
      "answer": "Quick Facts"
    },
    {
      "type": "unordered_list",
      "items": [
        {
          "type": "paragraph",
          "answer": "Height: About 330 meters (1,083 feet) including antennas."
        },
        {
          "type": "paragraph",
          "answer": "Location: On the Champ de Mars near the Seine."
        },
        {
          "type": "paragraph",
          "answer": "Completed: 1889."
        },
        {
          "type": "paragraph",
          "answer": "Designer: Led by French engineer Gustave Eiffel and his company."
        },
        {
          "type": "paragraph",
          "answer": "Purpose: Built as the centerpiece of the Exposition Universelle of 1889, which celebrated the 100th anniversary of the French Revolution."
        }
      ]
    },
    {
      "type": "header",
      "answer": "Why It Was Controversial"
    },
    {
      "type": "paragraph",
      "answer": "When construction began, many artists and intellectuals criticized the tower, arguing that its iron structure would be an eyesore. Despite the criticism, it became enormously popular and is now considered a masterpiece of engineering."
    },
    {
      "type": "header",
      "answer": "Engineering Highlights"
    }
  ],
  "markdown": "The Eiffel Tower is one of the most famous landmarks in the world and a symbol of both Paris and France.\n\n### Quick Facts\n- **Height:** About 330 meters (1,083 feet) including antennas.\n- **Location:** On the Champ de Mars near the Seine.\n- **Completed:** 1889.\n- **Designer:** Led by French engineer Gustave Eiffel and his company.\n- **Purpose:** Built as the centerpiece of the Exposition Universelle of 1889, which celebrated the 100th anniversary of the French Revolution.\n\n### Why It Was Controversial\nWhen construction began, many artists and intellectuals criticized the tower, arguing that its iron structure would be an eyesore. Despite the criticism, it became enormously popular and is now considered a masterpiece of engineering.\n\n### Engineering Highlights\n- Constructed from more than **18,000 iron parts** joined by roughly **2.5 million rivets**.\n- Took about **two years, two months, and five days** to build.\n- Was the **tallest man-made structure in the world** until the completion of the Chrysler Building in 1930.\n\n### Visiting the Tower\n\nVisitors can:\n- Take elevators or climb stairs to viewing platforms.\n- Enjoy panoramic views of Paris.\n- Dine in restaurants inside the tower.\n- See the tower sparkle with thousands of lights each evening.\n\n### Fun Facts\n- The tower was originally intended to stand for only **20 years**.\n- It was saved from demolition because it proved useful for **radio communications**.\n- The tower expands slightly in hot weather as the metal warms and can grow several centimeters taller.\n- It attracts millions of visitors every year, making it one of the world's most visited paid monuments.\n\nToday, the Eiffel Tower remains an enduring symbol of innovation, architecture, and French culture.",
  "inline_images": [
    {
      "title": "Paris Eiffel Tower and river Seine at sunset in Paris, France. Eiffel Tower is one of the most iconic landmarks of Paris",
      "link": "https://media.gettyimages.com/id/2202962275/photo/paris-eiffel-tower-and-river-seine-at-sunset-in-paris-france-eiffel-tower-is-one-of-the-most.jpg?b=1&c=eRuM5yxBqIGOpIUFsLHYLcaYr1BvHkB0V1dd1dQIMyI%3D&k=20&s=612x612&w=0",
      "original": "https://images.openai.com/static-rsc-4/E_V7M0vWkc5k9Sbbh2hUpm0y9yjngLpNw2x4wWNpWn6AMaui4EU-Kuuc8gqdhznhAdYGnFzBU-b4Cwy-dGkexmv7msNGoStpwiWeue-_ds-kUeHHWmsHIHeP7lUpnm-6F65naAp_IQd5_L-MckvYMGxNPoJh1QwI8_VbYfCAY2uqPsKsrCR1PPs5iUscA55p?purpose=fullsize",
      "thumbnail": "https://images.openai.com/static-rsc-4/aKKEMlmiPffZFPv_yA_DoKQGgwWA3vLv5NhkrRj7ae5Bgptm99-RVBq81_yXPkKtTnJru85zD_uJWlskB-zAJIh4dM7yu5L4sjeXNXnsIZ0VCvx8U_AgcoziSZyJXAU__RcxvMXIPaYBtRBo96mYa20JkeEIJCmvhAC68yoq5Ene5zlUyISUHvQkFQSLY2HQ?purpose=inline",
      "width": 2048,
      "height": 1365,
      "query": "Eiffel Tower Paris at sunset"
    },
    {
      "title": "Paris France Eiffel Tower view from Champ de Mars public park",
      "link": "https://media.gettyimages.com/id/2227041119/photo/paris-france-eiffel-tower-view-from-champ-de-mars-public-park.jpg?b=1&c=Hx67r2dHHKZOOHQaSQTioIYqi5pIGlu8-CNym2Fx8SY%3D&k=20&s=612x612&w=0",
      "original": "https://images.openai.com/static-rsc-4/sRpD81Ys9RUbUF6qtIGIaAu3nTAMCvQR7T6U07OeCD3wDQDLJKGNbhuaQd2at3A1E3uqDIfOO-qaiFGUIdyKSyVVOTEOT-4YckY51RGEx_DIEWOVC7iWQkOpXhOC85DSezxgMAH1Pci5TDkNxCe0gxbEPSvFpWADte1EMeXm2cZn6gqGa7pkU9tLVJw2vQkp?purpose=fullsize",
      "thumbnail": "https://images.openai.com/static-rsc-4/n3gWbGKxammVrGj-Sgfs8ZilKUF-bHm18HDXQAjrM_TQvaQZ3W6wpTeYq5VW5vqluBu4sOEuEYvpjLaSyC3YSFLEzTmbF7uU1aVFmqTTDZgsvWopYkqAdnZdr1KY7zC-82J5yWs0ge2KAkuIOnKjMAU28eIQrZHzPegcfx-GRwA4ZZIROp_nTlmMfWPZocOE?purpose=inline",
      "width": 2048,
      "height": 1365,
      "query": "Eiffel Tower view from Champ de Mars"
    },
    {
      "title": "10 Things You Must Know Before Visiting The Eiffel Tower in Paris 🗼",
      "link": "https://destinationwellknown.com/eiffel-tower-paris/",
      "original": "https://destinationwellknown.com/wp-content/uploads/2023/11/Eiffel-Tower-at-Night.jpg",
      "thumbnail": "https://images.openai.com/static-rsc-4/20ekKX-py8v3TeFqxSqgt1-1GHjO-YhinjY2XahBUJ8ZKKR9eiPF5YrBm82yLFsff3herv4Q8nkC2InNiZSRaPs4CgIK1nbEi3cA3zc2fNOWMAB80ZlUlPN3PksEEvj2J34ufP4YEmJIOUEuU4_6QhacVumln_Nt3xn7VyQuygk?purpose=inline",
      "width": 682,
      "height": 1024,
      "query": "Eiffel Tower illuminated at night"
    },
    {
      "title": "Eiffel tower",
      "link": "https://media.gettyimages.com/id/482667142/photo/eiffel-tower.jpg?b=1&c=3kFFZSav1qWTi5yRYrz_4FJm8BM-LWG1QoTrepwEtDw%3D&k=20&s=612x612&w=0",
      "original": "https://images.openai.com/static-rsc-4/IXR6353-PUX8ey44Iv2_U6SMpBTRgY59vhiryw05HLXsjg9IoNjCV3VXqDzi9yokamn8nFbUiIM9__-CHWzfvA8Ot3tBa3YWXKA4LnGv8pzbQoWHZnLRtKtfGb5jfw7NHvk50PI4r0a6DXEYFn7hei5czhCqZVMnXxXHBguYX7r9HeO4ZSAEl35i6vb5WKxg?purpose=fullsize",
      "thumbnail": "https://images.openai.com/static-rsc-4/MypMKYLAsyt-qvQSlZZgPS09846lA4lPhf-II1TH9CaQ08NiRaeId8bkxHkELicdhTydnhDmSGHm1EDET4_nc7IYegMFTp0jCcL3JL2hHj1gN0M853TFZsbQ0kxtp1oGaWI30fGNoHipcqSI9BQlh30mrDYwQSAyZXaVt7ECXO3rxH4iyWWNcF7H8p9XGg6G?purpose=inline",
      "width": 2048,
      "height": 1361,
      "query": "Eiffel Tower close up iron lattice"
    }
  ],
  "cards": [
    {
      "type": "knowledge_entity",
      "name": "Eiffel Tower",
      "category": "point_of_interest",
      "disambiguation": "Paris, France",
      "id": "Dko_F3brZNXU8T8L"
    },
    {
      "type": "knowledge_entity",
      "name": "Paris",
      "category": "city",
      "disambiguation": "France",
      "id": "HIChTduLIakNQsRS"
    },
    {
      "type": "knowledge_entity",
      "name": "France",
      "category": "country",
      "disambiguation": "Europe",
      "id": "NVhCzZEFA5GadhN9"
    },
    {
      "type": "knowledge_entity",
      "name": "Seine",
      "category": "river",
      "disambiguation": "Paris river",
      "id": "TCZegR34YoU36kFx"
    },
    {
      "type": "knowledge_entity",
      "name": "Gustave Eiffel",
      "category": "people",
      "disambiguation": "French engineer",
      "id": "gQyK6WXxd_8sNOqP"
    }
  ],
  "response_metadata": {
    "model": "gpt-5-5",
    "conversation_id": "6a3b6ab2-57ec-83ea-a99f-11a9fcf77bc4",
    "message_id": "a946f9cc-2c26-4361-ab81-974b36ffc4cb",
    "is_web_search_performed": false
  }
}

Developer experience

Easy integration

Integrating is as simple as making a GET HTTP request.

https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY&engine=chatgpt&q=Tell+me+about+the+Eiffel+Tower
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "chatgpt",
  "q": "Tell me about the Eiffel Tower",
  "api_key": "YOUR_API_KEY"
}

response = requests.get(url, params=params)
print(response.text)

ChatGPT API Data Points

Scrape ChatGPT answers as JSON

Every ChatGPT answer split into fields you can read directly.

Markdown / Text Blocks

ChatGPT's reply as Markdown and as typed text blocks (paragraphs, headers, lists), with inline citation markers resolved to plain text.

Reference Links

Cited web reference links with a 0-based index, title, link, source name, snippet, publish date, and a ref_id whenever ChatGPT cites live web sources.

Inline Citations

Each cited claim mapped to its reference links by character position in the answer and the indexes of the backing links.

Web Search Queries

The verbatim queries ChatGPT ran against the live web, showing how it reformulated your prompt.

Cards

Knowledge-entity cards (people, places, organizations) plus rich vendor widgets like stock charts and weather forecasts, with their native payload preserved under raw.

Entity Detail Cards

With expand_entities, each card expands into a rich panel: description, titled sections, related entities, inline images, and reference links.

Inline Images

Image carousel for entity answers, each with title, source link, full-size and thumbnail URLs, dimensions, and the query that surfaced it.

Response Metadata

The model that produced the answer, plus conversation and message IDs to correlate, log, or continue a thread.

Legal Coverage

Legal Protection Guarantee

We accept legal responsibility for how SearchApi collects and parses publicly available search results, backed by up to $2M in coverage. This protection applies to customers worldwide, operates under U.S. law, and does not cover your use of the data or unlawful activities.

Simple Pricing

Pricing plans

  • Pay per success
  • Built in location geo-targetting
  • Only premium proxies

Developer Plan

$4 per 1,000 searches

$40 / month

What's included
  • 10,000 Searches
  • 99.9% SLA

Production Plan

$3 per 1,000 searches

$100 / month

What's included
  • 35,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA

BigData Plan

$2.5 per 1,000 searches

$250 / month

What's included
  • 100,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA
  • Medium Throughput

Scale Plan

$2 per 1,000 searches

$500 / month

What's included
  • 250,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA
  • High Throughput
  • Search Analytics

Trusted by industry leaders

Anthropic logo Bain & Company logo DataRails logo Scale AI logo Ahrefs logo Demyst logo

Robust Infrastructure

Handle even the most demanding needs

Sub-2 second average response time

Performance

Sub-2 second average response time

Optimized for low latency, delivering rapid results for AI applications, SEO analysis, and research.

100% success rate

100% Success Rate

Guaranteed query completion

Guaranteed success with built-in auto-retry mechanism and adaptive error handling to ensure complete data collection.

Scalable proxy rotation

Proxy Management

Scalable proxy rotation

Our built-in proxy rotator and auto-retry mechanisms ensure scalability, handling millions of searches daily across a global network of 100M+ proxies.

Advanced CAPTCHA bypass

Captcha Solving

Advanced CAPTCHA bypass

Mimics real human behavior with full browser rendering, JavaScript execution, and CAPTCHA solving for uninterrupted data scraping.

Open-source integrations

Integrations

Open-source integrations

Easily integrate with popular open-source tools like Dify, Flowise, LangChain, and Haystack to extend functionality with minimal setup.

Get started with SearchApi today

No credit card required. No commitment. Cancel anytime.