curl --request POST \
--url https://api.aisa.one/v1/tasks/seo.get_ai_answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"assistant": "chatgpt",
"prompt": "What are the best CRM tools for small businesses?"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"answer": "<string>",
"assistant": "chatgpt",
"country": "<string>",
"model": "<string>",
"prompt": "<string>",
"search_queries": [
"<string>"
],
"sources": [
{
"cited": true,
"domain": "<string>",
"position": 123,
"snippet": "<string>",
"title": "<string>",
"url": "<string>"
}
]
},
"status": "found",
"task": "seo.get_ai_answer",
"version": 1
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}Get an AI assistant's answer
Use when you need what an AI assistant (ChatGPT, Claude, Gemini, Perplexity) or Google’s AI search (AI Mode, AI Overview) answers to a question, and which web pages it cites, for example to see whether a brand is recommended or which sites an answer relies on. Returns the answer text, the cited sources (url, title, domain, position) and, when the assistant reports them, the model and the web searches it ran. ChatGPT, Claude, Gemini and Perplexity answers come from the vendor’s API model with web search on (the model is named in model), so they can differ from what the app shows; when that API answer fails, ChatGPT and Gemini are read from their consumer app instead, and model is then null. Google AI Mode and AI Overview answers are read from Google’s pages. One prompt to one assistant per call; charged only when an answer is returned.
curl --request POST \
--url https://api.aisa.one/v1/tasks/seo.get_ai_answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"assistant": "chatgpt",
"prompt": "What are the best CRM tools for small businesses?"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"answer": "<string>",
"assistant": "chatgpt",
"country": "<string>",
"model": "<string>",
"prompt": "<string>",
"search_queries": [
"<string>"
],
"sources": [
{
"cited": true,
"domain": "<string>",
"position": 123,
"snippet": "<string>",
"title": "<string>",
"url": "<string>"
}
]
},
"status": "found",
"task": "seo.get_ai_answer",
"version": 1
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}Examples
Each request below runs as written; the request panel offers the same examples. What ChatGPT recommends as a CRM for small businesses{
"input": {
"assistant": "chatgpt",
"prompt": "What are the best CRM tools for small businesses?"
}
}
{
"input": {
"assistant": "google_ai_mode",
"prompt": "best running shoes for flat feet",
"country": "GB"
}
}
Billing
| Input | Price unit | Price (USD) |
|---|---|---|
| /input/assistant = chatgpt | Per successful request | 0.063 |
| /input/assistant = claude | Per successful request | 0.0254 |
| /input/assistant = gemini | Per successful request | 0.0636 |
| /input/assistant = google_ai_mode | Per successful request | 0.0048 |
| /input/assistant = google_ai_overview | Per successful request | 0.0003 |
| /input/assistant = perplexity | Per successful request | 0.0124 |
X-AISA-Cost-Mode: quote; quoting neither executes the Task nor reserves funds. Execution reserves the estimated request charge and settles under the rules above. Use X-AISA-Max-Price-USD to cap the price.
Use an Idempotency-Key when executing a Task. For errors, inspect error.code, error.request_id, error.retryable and error.retry_hint. A reconciliation hint requires checking the existing request before retrying; do not assume a pending settlement is a refund.