How to get a sourced answer from ChatGPT for research
Ask ChatGPT a web-grounded question and capture the answer, citations, retrieved pages and search queries for a research brief
On this page
You have 12 category questions for a 2026 reusable coffee cup launch in Germany and need cited answers before you write the briefing. Run each prompt through ChatGPT Search with the target country set, then compare the citations, the retrieved pages and webSearchTriggered before deciding which claims carry into the brief
The deliverable is a table with one row per question. No run has been executed for this article, so the table below and the values in it are a design
Design the worksheet first
Seven columns, one row per question, filled by the agent and reviewed by you. Values here are placeholders showing the shape
| Column | What it holds |
|---|---|
prompt | the question text sent to the tool |
answer | the answer text as returned |
citations | one title and url pair per cited source |
searchQueries | the queries ChatGPT ran |
searchResults | pages read, each with cited set to true or false |
webSearchTriggered | whether a search actually ran before the answer |
createdUtc | UTC epoch seconds, multiplied by 1000 for a JS Date |
Add a decision column of your own: keep the point, or send it to another source. A row is worth keeping when the answer arrived with a search behind it and at least one citation you can open
What the input takes
anyapi.chatgpt.search is called through POST /v1/runs with toolId anyapi.chatgpt.search. Only prompt is required, between 1 and 2000 characters. For this job, set country to the ISO-3166 alpha-2 code of the market you are briefing and keep webSearch on force
country matters more than it looks. The contract says ChatGPT localizes both the pages it retrieves and the answer it writes, so a request with country set to DE and a request with country set to US for the same prompt hand a German buyer and a US buyer different material
webSearch defaults to force, which instructs ChatGPT to search. auto lets the model decide, and the contract says it answers from memory roughly half the time. A memory answer costs less and is not web-grounded, which is why the next section sends you back to webSearchTriggered on each row
Leave requireAds, requireEntities, requirePlaces, requireShoppingCards and requireFields off for a first pass. The first four pin the request to the one source that can return that field type, and the contract says that source has no fallback if it is unavailable. requireFields is a different trade: name a field the cheapest source cannot return and a dearer source serves, at that source's quoted price. A combination no single source returns together is refused as invalid input with no charge
Example prompt, invented for this guide and not sent anywhere: What are the main sourcing risks for a 2026 launch of a reusable coffee cup in Germany?
Read the fields that carry a decision
found tells you whether ChatGPT returned a web-grounded answer. When it is false, reason is not_found, which the contract treats as a successful call rather than an error
Then the fields that decide the row:
webSearchTriggered: true means a search ran. False is a memory answer. null means the serving source cannot report it, which is not the same as falsecitations: the sources the answer cites, each withtitleandurl.answerPositionmarks the answer section where the source was used, and null means the source cannot report itsearchResults: a superset of citations.citedfalse means ChatGPT read the page and chose not to cite it, which is a different fact from the page never appearingsearchQueries: the queries the model ran, useful when an answer misses the point of your questioncreatedUtc: epoch seconds. null means the source does not report when it answeredanswerandanswerMarkdown: the same text, in plain and Markdown rendering
Set webSearch to auto and roughly half the answers can arrive without a search, so check webSearchTriggered on each row before treating a claim as sourced. That check is the reason the column exists; an answer written without a search is not web-grounded and does not belong in the brief as cited
Answers are composed per request. The contract says the same prompt returns different wording and a different source set, so two runs of one question are two samples rather than a repeat of one fact
For a page-level retrieval step beside this one, see the Firecrawl search guide
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to answer 12 research
questions from a market brief with ChatGPT Search, one call per question.
Check the current inputs and price of anyapi.chatgpt.search before running
anything. Send country as DE and webSearch as force, and leave the require
flags off. Return a table with prompt, answer, citations, searchQueries,
searchResults, webSearchTriggered and createdUtc. Flag any row where
webSearchTriggered is not true, and do not write an answer of your own when
found is false.
Questions:
1. What are the main sourcing risks for a 2026 launch of a reusable coffee cup in Germany?
2. (add the remaining questions here)Replace the example question with the 12 from your brief, and read the price the agent reports before the full pass runs
Estimated tool cost
Prices read from the Purrkey catalog on November 13, 2026, price revision anyapi-catalog-2026-11-05. The unit is max_call, which the catalog explains as "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single cited answer | 1 call x max price | $0.0048 per call | 1 | $0.0048 |
| 12-question research pass | 12 calls x max price | $0.0048 per call | 12 | $0.0576 |
The 12-call line assumes one call per question and no reruns. A second pass over questions you want to sample again doubles that line to $0.1152. Model fees for the agent are not counted
Run the first question
Send one question before the batch and open the citations it returns. The tool page is at https://purrkey.app/tools/chatgpt?q=search
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with ChatGPT.FAQ
How do I get a sourced answer from ChatGPT for research?
Send each research question as a prompt to anyapi.chatgpt.search with country set to the market you are briefing and webSearch left on force, then keep the rows where webSearchTriggered is true and at least one citation is listed.
What inputs does anyapi.chatgpt.search take?
Only prompt is required, between 1 and 2000 characters. The optional fields this guide sets are country, an ISO-3166 alpha-2 code that defaults to US, and webSearch, which defaults to force.
What does webSearchTriggered tell me?
It says whether ChatGPT actually ran a web search before answering. True means a search ran, false means the answer was written from memory and is not web-grounded, and null means the serving source cannot report it.
What is the difference between citations and searchResults?
citations lists the sources the answer cites, while searchResults lists the pages ChatGPT read and is a superset of citations. A retrieved page with cited set to false was read and not cited.
How much does a 12-question research pass cost?
At the catalog price of up to $0.0048 per call, 12 calls come to a ceiling of $0.0576, and a single cited answer comes to $0.0048. Model fees for the agent are not counted.
Does the same prompt return the same answer twice?
No. The contract says ChatGPT composes each answer per request, so the same prompt returns different wording and a different source set.
What happens when no answer is found?
found is false and reason is not_found. The contract treats that as a successful call rather than an error.
Next step
Try this with ChatGPT
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.