Free trial Test every endpoint on all 8 AI engines with a free trial. Start free trial →

Test the API on 8 AI engines with a free trial.

Start free trial

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"
    }
  }'

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.

What POST /v1/tasks takes
FieldTypeDescription
promptstring1 to 2,000 characters.
modelstringA model id from GET /v1/models, such as chatgpt.
countrystringTwo upper-case letters, such as US. The model must run there.
languagestringA language code, such as en.
webhookUrlstringOptional. https only. Gets task.completed or task.failed.
metadataobjectOptional. 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.

  1. 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
  2. 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}
  3. 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[]
  4. 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
}
Fields returned by GET /v1/tasks
FieldTypeDescription
items[]arrayTasks, newest first, without their results.
nextCursorstring | nullPass it as cursor for the next page. Null on the last page.
Query parameters of GET /v1/tasks
ParameterWhat 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.

Computed on your side from a month of stored tasks (fictional data)
PromptTasksBrand mention rateAverage positionBrands named
best project management tool for creative agencies 90 64.8% 1.8Loopwork, Cadence, Northbeam
project management software with client portals 90 51.2% 2.2Cadence, Loopwork
alternatives to spreadsheet based studio planning 90 38.4% 2.6Northbeam, Loopwork, Cadence
which pm tool has the best time tracking 90 27.9% 3.0Cadence, 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 GEOAI scraping APIGEO dashboard toolIn-house build
Raw answer text YesYesSometimesBuild it
Cited pages with domain, title and rank YesURLs onlyIn the UIBuild it
Brands with stable ids across answers YesNoYes, closedBuild it
Position of each brand in the answer YesNoYes, closedBuild it
Ongoing maintenance when engines change OursPartly theirsTheirsYours

See the full comparison on 15 capabilities →

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.

0 – 50k / month $0.013 per task
50k – 250k / month $0.011 per task
250k – 1M / month $0.009 per task
1M+ / month $0.007 per task

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.

Run your prompt list on 8 AI engines

Free trial · then pay per task