# ChatGPT search API for AI agents > morigraph has one ChatGPT search API, ChatGPT Search, that Claude, ChatGPT, Cursor, Codex or your own code can call. Ask ChatGPT a web-grounded question and receive an answer with source citations. ChatGPT composes each answer per request, so the same prompt returns different wording and a different source set. You need no account or API key with a data vendor, only one morigraph connection. A call costs 0.036 credits, about $3.60 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is ChatGPT Search. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's ChatGPT Search data API with {"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"chatgpt.search","input":{"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"chatgpt.search","input":{"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"}}' ``` ## ChatGPT Search `chatgpt.search` · 0.036 credits a call (about $3.60 for 1,000), at most 0.096 Ask ChatGPT a web-grounded question and receive an answer with source citations. ChatGPT composes each answer per request, so the same prompt returns different wording and a different source set. | Argument | Type | Required | What it is | |---|---|---|---| | `country` | string | no | ISO-3166 alpha-2 country to ask from, e.g. US, GB, DE. ChatGPT localizes both the pages it retrieves and the answer it writes, so this is the difference between what a US buyer and a UK buyer are told. | | `prompt` | string | yes | Question or research prompt for ChatGPT to answer using web search. | | `requireAds` | boolean | no | Serve only from a source that can return sponsored placements shown with the answer. One source currently qualifies, so the request cannot fall back when it is unavailable. | | `requireEntities` | boolean | no | Serve only from a source that can return brands and other named entities recognized in the answer. One source currently qualifies, so the request cannot fall back when it is unavailable. | | `requirePlaces` | boolean | no | Serve only from a source that can return places shown with the answer. Leaving this off still returns places whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs more and has no… | | `requireShoppingCards` | boolean | no | Serve only from a source that can return shopping cards shown with the answer. Leaving this off still returns shopping cards whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs… | | `webSearch` | force \| auto | no | Whether to insist ChatGPT browses the web. force instructs it to search and is the default; auto lets ChatGPT decide, which is cheaper and answers from memory roughly half the time. Check webSearchTriggered for what actually happened - a… | Returns: `address`, `ads`, `advertiserName`, `advertiserUrl`, `answer`, `answerMarkdown`, `answerPosition`, `category`, `citations`, `cited`, `createdUtc`, `currency`, `description`, `domain`, `entities`, `image`, `merchants`, `model`, `name`, `phone`, `places`, `position`, `price`, `prompt`, `rating`, `reviewCount`, `searchQueries`, `searchResults`, `shoppingCards`, `snippet`, `title`, `url`, `webSearchTriggered`, `websiteUrl` ``` data_api({"api":"chatgpt.search","input":{"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"}}) ``` ## Do I need my own API key for ChatGPT search answers? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call the API on this page. ## What does ChatGPT search answers cost through morigraph? 0.036 credits a call, where a credit is about 10 cents. That is from about $3.60 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get ChatGPT search answers? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. --- Canonical page: https://morigraph.com/tools/data/chatgpt/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt