Prompt Tracking API: run and label AI prompts on 8 engines
The Prompt Tracking API runs each generative engine optimization (GEO) prompt you monitor as a task on ChatGPT, Gemini, Google AI Mode, AI Overviews, Copilot, Grok, Rufus or Alexa for Shopping. Label each task with metadata, retry safely with an Idempotency-Key, and get a webhook when the answer is ready. Your own cron sets the schedule. One task costs from $0.013 down to $0.007, every layer included.
ChatGPT
Gemini
Google AI Mode
AI Overviews
Microsoft Copilot
Grok
Rufus
Alexa for Shopping
Updated
Playground
One run of 4 prompts on 3 models is 12 tasks
The Prompt Tracking API runs each prompt you monitor as a task: one prompt, one model, one market. Edit the list, tick models and set the runs per month: the code and the estimate follow. Four prompts on three models make twelve tasks per run. Thirty runs a month make 360 tasks, priced on the volume tiers, and the response shows the first task, queued.
POST/v1/tasks
model (one task each)
- Tasks per run
- 12
- Tasks per month
- 360
- Estimated cost per month
- $4.68
# one call per prompt and model: 12 for this run curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: pm-tools-2026-11-02-0-chatgpt" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en", "webhookUrl": "https://example.com/hooks/geo", "metadata": { "promptSet": "pm-tools", "day": "2026-11-02" } }'
import os, requests API = "https://api.apiforgeo.com/v1" H = {"Authorization": f"Bearer {os.environ['API_FOR_GEO_KEY']}"} prompts = [ "best project management tool for creative agencies", "project management software with client portals", "alternatives to spreadsheet based studio planning", "which pm tool has the best time tracking", ] models = ["chatgpt", "gemini", "google-ai-mode"] day = "2026-11-02" # the run date your cron passes for i, prompt in enumerate(prompts): for model in models: r = requests.post(f"{API}/tasks", timeout=30, headers={**H, "Idempotency-Key": f"pm-tools-{day}-{i}-{model}"}, json={"prompt": prompt, "model": model, "country": "US", "language": "en", "webhookUrl": "https://example.com/hooks/geo", "metadata": {"promptSet": "pm-tools", "day": day}}) print(r.status_code, r.json()["id"])
const API = "https://api.apiforgeo.com/v1"; const auth = { Authorization: `Bearer ${process.env.API_FOR_GEO_KEY}` }; const prompts = [ "best project management tool for creative agencies", "project management software with client portals", "alternatives to spreadsheet based studio planning", "which pm tool has the best time tracking", ]; const models = ["chatgpt", "gemini", "google-ai-mode"]; const day = "2026-11-02"; // the run date your cron passes for (const prompt of prompts) { for (const model of models) { const key = `pm-tools-${day}-${prompts.indexOf(prompt)}-${model}`; const task = await fetch(API + "/tasks", { method: "POST", headers: { ...auth, "Content-Type": "application/json", "Idempotency-Key": key }, body: JSON.stringify({ prompt, model, country: "US", language: "en", webhookUrl: "https://example.com/hooks/geo", metadata: { promptSet: "pm-tools", day }, }), }).then((r) => r.json()); console.log(task.id, task.status); } }
201 Created · queued
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b",
"status": "queued",
"mode": "live",
"prompt": "best project management tool for creative agencies",
"model": "chatgpt",
"country": "US",
"language": "en",
"webhookUrl": "https://example.com/hooks/geo",
"metadata": {
"promptSet": "pm-tools",
"day": "2026-11-02"
},
"costMicros": 13000,
"refunded": false,
"createdAt": "2026-11-02T06:00:02Z",
"completedAt": null,
"error": null,
"resultExpiresAt": null,
"result": null
} Schema
A task takes 6 fields, your labels included
The Prompt Tracking API has no prompt store: each task carries its own prompt, model, country and language. Its metadata holds up to 20 string labels, such as the prompt set, the client or the day of the run, and comes back on every read and in the webhook. The same question tracked in four markets is four tasks per model, each with its own result.
| Field | Type | Description |
|---|---|---|
prompt | string | 1 to 2,000 characters. |
model | string | A model id from GET /v1/models, such as chatgpt. |
country | string | Two upper-case letters, such as US. The model must run there. |
language | string | A language code, such as en. |
webhookUrl | string | Optional. https only. Gets task.completed or task.failed. |
metadata | object | Optional. Up to 20 string labels, returned as given. |
Send an Idempotency-Key header with each task. The same key and body return the first task,
charged once. The same key with another body gets a 409.
Lifecycle
Four steps take a prompt list to stored results
The Prompt Tracking API takes a prompt list to stored results in four steps, and the schedule stays on your side: create a task per prompt and model, get the webhook or poll, store the result, then run the list again from your own cron. A failed task is refunded in full, and a balance too low gets a 402 with nothing charged.
-
Step 1
Create the tasks
Loop over your prompts and models and send one task per pair. Label it in metadata and send an Idempotency-Key, so a retry after a timeout is charged once.
POST /v1/tasks -
Step 2
Get the webhook, or poll
Pass a webhookUrl and get task.completed with the result, signed with Standard Webhooks. Or read the task until its status is completed.
GET /v1/tasks/{taskId} -
Step 3
Store the result
The result stays readable for 7 days. Save the entities, sources and fan-outs your reports read, keyed by the task id and your metadata.
result.entities[] -
Step 4
Run it again
The API has no scheduler: your cron sends the next run, daily or weekly. A new day in the Idempotency-Key keeps each run apart.
0 6 * * *
Failed tasks are refunded to the balance automatically.
List
GET /v1/tasks lists your tasks with 6 filters
The Prompt Tracking API lists every task of your workspace, newest first, 50 per page and up to 100. Filter by status, model, API key, creation time with from and to, or q, a task id or words of the prompt. Each item carries its metadata but no result. Here, the morning after a run, the list finds the failed task to send again with a new key.
GET/v1/tasks
curl "https://api.apiforgeo.com/v1/tasks?status=failed&model=chatgpt&from=2026-11-02T00:00:00Z" \ -H "Authorization: Bearer $API_FOR_GEO_KEY"
200 OK
{
"items": [
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a9c",
"status": "failed",
"mode": "live",
"prompt": "which pm tool has the best time tracking",
"model": "chatgpt",
"country": "US",
"language": "en",
"metadata": {
"promptSet": "pm-tools",
"day": "2026-11-02"
},
"costMicros": 13000,
"refunded": true,
"createdAt": "2026-11-02T06:00:05Z",
"completedAt": null,
"error": {
"code": "run_failed",
"message": "The run did not complete."
}
}
],
"nextCursor": null
} | Field | Type | Description |
|---|---|---|
items[] | array | Tasks, newest first, without their results. |
nextCursor | string | null | Pass it as cursor for the next page. Null on the last page. |
| Parameter | What it does |
|---|---|
| status | queued, processing, completed or failed; running means queued or processing |
| model | One model id, such as chatgpt |
| apiKeyId | The tasks of one API key |
| from | Created at or after this time, ISO 8601 |
| to | Created before this time, ISO 8601 |
| q | A task id, or words of the prompt |
| limit | 1 to 100 tasks per page, 50 by default |
| cursor | The nextCursor of the previous page |
There is no filter on metadata: group the items by your labels on your side.
Per prompt
Your own code shows a 36.9-point gap inside one prompt list
The Prompt Tracking API returns one result per task; the mention rate per prompt is yours to compute today, and Aggregated visibility is coming soon. In this sample month of 4 prompts on 3 models in US English, 90 tasks per prompt, the brand is named in 64.8% of answers to its best prompt and 27.9% to its weakest.
| Prompt | Tasks | Brand mention rate | Average position | Brands named |
|---|---|---|---|---|
| best project management tool for creative agencies | 90 | 1.8 | Loopwork, Cadence, Northbeam | |
| project management software with client portals | 90 | 2.2 | Cadence, Loopwork | |
| alternatives to spreadsheet based studio planning | 90 | 2.6 | Northbeam, Loopwork, Cadence | |
| which pm tool has the best time tracking | 90 | 3.0 | Cadence, Northbeam, Loopwork |
The few lines that compute mention rate, share of voice and average position are on the AI Visibility Tracking API page.
Comparison
The Prompt Tracking API covers all 5 needs, a scraping API covers 1
The Prompt Tracking API returns each answer with its citations, resolved entities and positions already computed. An AI scraping API returns the raw answer and bare URLs, which leaves entity resolution and ranking to build for each engine. A GEO dashboard tool computes those layers but keeps them inside its interface, and an in-house build maintains every engine on its own.
5 of the 15 capabilities on the full comparison
| Capability | API for GEO | AI scraping API | GEO dashboard tool | In-house build |
|---|---|---|---|---|
| Raw answer text | Yes | Yes | Sometimes | Build it |
| Cited pages with domain, title and rank | Yes | URLs only | In the UI | Build it |
| Brands with stable ids across answers | Yes | No | Yes, closed | Build it |
| Position of each brand in the answer | Yes | No | Yes, closed | Build it |
| Ongoing maintenance when engines change | Ours | Partly theirs | Theirs | Yours |
Use cases
Teams build 3 products on tracked prompts: platform modules, client reports, product monitors
The Prompt Tracking API serves the three audiences of the use cases page. SEO and martech platforms embed a prompt tracker in their product, agencies run one labelled prompt list per client, and e-commerce brands track category questions market by market. Each card opens the full pattern with the endpoints it combines.
A prompt tracker inside your product
Your customers manage their prompts in your interface, and your scheduler sends them as tasks with the customer id in metadata. The payload carries no attribution requirement, so the module ships under your brand.
Read the pattern → AgenciesOne prompt list per client, labelled
Keep the client's validated prompt list in your own store and send it each week. The client and the topic go in metadata, and an Idempotency-Key per run makes a retried batch safe.
Read the pattern → E-commerce & brandsCategory prompts tracked per market
The same buying question runs as one task per country and language. Each market returns its own brands, positions and cited sources, and Rufus adds Amazon's shopping answers.
Read the pattern →Pricing
Prompt Tracking API pricing runs from $0.013 to $0.007 per task
The Prompt Tracking API is billed per task: one prompt, run once, on one model, in one country and language, with every layer included. Reading and listing tasks is free. A failed task is refunded in full, and a balance too low gets a 402 with nothing charged. There are no seats and no platform fee, and your balance never expires.
Price per task, set by the month's total volume. 200 prompts × 3 models × 30 runs = 18,000 tasks a month, $234 at $0.013
FAQ
Prompt tracking, answered
Does the API store my prompt list or run it on a schedule?
The Prompt Tracking API runs tasks; your prompt list and your schedule live on your side. Your own cron loops over the prompts and models and sends one POST /v1/tasks per pair, with your labels in metadata. Change the list in your own store, and the next run sends the new list. There is nothing to sync and no prompt id to keep.
What does a small pilot cost?
The Prompt Tracking API bills one task per prompt, per model, per run. A pilot of 80 prompts on 3 models, run 4 times in a month, is 960 tasks, which comes to $12.48 at the first tier's $0.013. Reading and listing tasks is free, and a test key runs the same code in a free sandbox first.
Can I run the same prompt several times?
The Prompt Tracking API runs each repeat as its own task, charged once. Generative answers change from one run to the next, so repeated runs give a steadier mention rate. One prompt run three times on two models is six tasks. Give each run its own Idempotency-Key, or the API returns the first task again instead of a new answer.
How do I retry without paying twice?
The Prompt Tracking API takes an Idempotency-Key header on POST /v1/tasks. A retry with the same key and the same body returns the first task, charged once, with a 200 instead of a 201. The same key with a different body gets a 409, so a bug cannot reuse a key by accident. A key per day, prompt and model works well.
How long are results kept?
The Prompt Tracking API keeps a completed task's result readable for 7 days, until its resultExpiresAt. After that the task stays in the list, but its result is null. The API keeps no history for you, so store each result when task.completed arrives. The results you store feed every trend you compute.
Can I resell prompt tracking data?
The Prompt Tracking API allows resale and white-label use at every tier. The payload carries no attribution requirement, and metadata labels each task with your end customer, so an agency or a platform can deliver the results under its own brand and at its own price. Usage per API key also splits the spend per customer.
Related GEO APIs
AI Visibility Tracking API →
Read the brands each tracked answer names, and compute mention rate across tasks.
APIFan-Out API →
Mine the searches engines run from a prompt to grow the prompt list.
APIAI Model Comparison API →
Compare results per model to decide which engines are worth the tasks.
Same topic: AI prompt tracker · Prompt tracking guide