AI Answers API: ChatGPT, Gemini and Copilot
Ask ChatGPT, Gemini and Copilot a question and get their public answers, with cited sources, as JSON.
An LLM answer tracking API for AI search visibility. Send a prompt and get back the answer ChatGPT, Gemini or Copilot gives a regular user, with the links and sources it cites, so you can track brand mentions and share of voice in AI answers. Pair it with Google AI Overview and AI Mode results from the SERP API. 3 endpoints in this category, from $1 per 1,000 calls.
- 3 platforms
- 3 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
AI answers APIs on API.SH
Each platform has its own page with endpoints, example responses and prices. One API key works for all of them.
What teams build with ai answers data
AI search visibility (GEO)
Track whether AI assistants mention your brand or product for the questions your buyers ask.
Citation and source tracking
See which pages AI answers cite, and whether your site is among them.
Popular ai answers endpoints
| platform | endpoint | per 1,000 calls |
|---|---|---|
| ChatGPT | Ask ChatGPT (answer with citations) /chatgpt/ | $10 10 credits |
| Gemini | Ask Gemini (answer with citations) /gemini/ | $10 10 credits |
| Copilot | Ask Microsoft Copilot (answer with citations) /copilot/ | $1 1 credit |
One request, clean JSON
Ask ChatGPT (answer with citations) from ChatGPT: GET https://api.api.sh/chatgpt/
curl "https://api.api.sh/chatgpt/v1/ask?prompt=What+is+the+capital+of+Australia%3F" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/chatgpt/v1/ask",
params={"prompt": "What is the capital of Australia?"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() Why API.SH for ai answers data
- Public data only: no logins, cookies or accounts on the source sites
- One key and one JSON shape across 3 ai answers platforms and 482 in all
- Blocks, retries and parsing handled for you: no scraper to maintain
- Pay per call; failed calls cost nothing
- Also in n8n, Zapier, Make, Google Sheets and AI agents (MCP)
Compared with other data APIs
Other providers sell each platform as a separate actor, scraper or subscription. On API.SH every ai answers platform is under one key and one balance, priced per call on the pricing page.
AI answers API questions
What is an AI answers API?+
It returns the answer a consumer AI assistant gives to a prompt, as structured JSON with the text and cited sources, so you can measure how AI search talks about a brand, product or topic.
How is this different from the OpenAI or Gemini API?+
The model APIs return a raw model completion without the web search, citations and product cards a user sees in the chat apps. API.SH returns the answer as shown to users, which is what matters for AI search visibility.
Is there a free tier?+
Yes. Every account gets 1,000 free credits each month, no card needed. Paid calls start at $1 per 1,000.
Can I track Google AI Overviews too?+
Yes. The Google endpoints in the SERP API return AI Overview and AI Mode answers with their sources.
Can I run prompts on a schedule?+
Yes. Call the endpoints from any scheduler, from n8n, Zapier or Make, or from Google Sheets.