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

Integration patterns

Three ways teams put GEO data to work

Three ways teams build generative engine optimization (GEO) data into their work. Each pattern below is the same four-step loop (create tasks, get the result, store it, join it to your own data) wired to a different consumer.

  1. 01create tasks
  2. 02get the result
  3. 03store it
  4. 04join to your own data
Pattern 01

SEO platforms: ship a GEO module

Your customers already ask where they stand in ChatGPT. Building the answer means 8 scrapers, a brand extractor and a sentiment pipeline. Buying it means one POST per prompt and model.

  • Each task carries your customer's id in metadata, so every result files itself.
  • No branding in the payload; the numbers appear as your own metrics.
  • Resale is explicitly allowed, so pricing stays your decision.
  • An Idempotency-Key makes a retried night safe: the same task comes back, charged once.

Endpoints used

4 calls
  • POST/v1/tasks// one per prompt and model, nightly
  • GET/v1/tasks/{taskId}// or task.completed on your webhook
  • GET/v1/models// models and countries for the settings tab
  • GET/v1/usage// spend by day, model and key
worker.js
// nightly worker: one task per prompt and model
for (const ws of await customers()) {
  const models = ws.plan === "pro"
    ? ["chatgpt", "gemini", "google-ai-mode", "copilot"]
    : ["chatgpt"];

  for (const p of ws.prompts) for (const model of models) {
    await post("/tasks", {
      prompt: p.text, model,
      country: ws.country, language: ws.language,
      webhookUrl: "https://geo.example.com/hooks/afg",
      metadata: { customer: ws.id, topic: p.topic },
    }, { "Idempotency-Key": `${ws.id}:${night}:${p.id}:${model}` });
  }
}

// on task.completed: the event carries the task and its result
const task = event.data;
await store(task.metadata.customer, task.model, task.result);

The monthly deliverable, generated

client-report.pdf · 7 sections
Report sectionFrom
p.01Visibility vs 3 competitorsresult.entities[]
p.02Per-engine breakdownresult.entities[]
p.03Sentiment and stanceresult.entities[]
p.04Citation opportunitiesresult.sources[]
p.05Content briefsresult.fanOuts[]
p.06Verbatim evidenceresult.answer
p.07Spend per clientGET /v1/usage

Each task returns one answer's layers; you count them across tasks, by brand and by model. Every number in the deck traces back to an answer you stored and can quote verbatim, which is what survives the client asking "how do you know?".

Pattern 02

Agencies: reporting that survives an audit

GEO reporting done by hand is a screenshot exercise: someone asks ChatGPT the same ten questions and pastes the answers. It cannot be aggregated or trended, and it does not hold up when a client asks for the method.

One API key per client, a metadata label per service line, one task per prompt and model each reporting period, and the report pulls itself into your BI tool, a sheet or a slide generator.

  • GET /v1/usage splits spend by day, model and key, so each client's cost is one row.
  • Label tasks by market in metadata to bill per country.
  • Your balance never expires, so a paused client does not burn budget.
  • Each result carries the answer verbatim. Store it within 7 days as evidence for any claim.
Prompt Tracking API →
Pattern 03

E-commerce: win the recommendation before the click

When an engine answers "best trail shoes for wide feet" with three products and two merchants, that is the whole funnel. Shopping answers carry products, prices, ratings and the merchants behind each offer.

  • Map each product id to your SKU once: the id stays the same across your tasks.
  • See which merchants each product card offers, resellers included.
  • Watch price positioning: the engine quotes a price, and it is not always yours.
  • Coming soon: per-theme perception, to tell whether you are the "premium" or the "cheap" option.

GET/v1/tasks/{taskId}

200 OK · completed
// GET /v1/tasks/{taskId}, model "rufus"
{
  "status": "completed",
  "result": {
    "products": [
      { "id": "prod_7d2e9a4c1f6b3e8a5c0d7f2b9e4a1c6d",
        "name": "Ridgeline Scree 3 Wide",
        "brand": "Ridgeline", "position": 1,
        "price": { "amountMicros": 149000000,
                   "currency": "USD" },
        "rating": 4.6, "reviewCount": 1284,
        "merchants": [
          { "name": "trailoutfitter.com",
            "url": "https://trailoutfitter.com/scree-3-wide",
            "price": { "amountMicros": 129000000,
                       "currency": "USD" } },
          { "name": "ridgeline.com",
            "url": "https://ridgeline.com/scree-3-wide",
            "price": { "amountMicros": 149000000,
                       "currency": "USD" } }
        ] }
    ]
  }
}

The uncomfortable finding

In this sample, the brand's own store is not the first offer on the card, and the reseller quotes a lower price. Counted over 30 tasks you stored, the gap holds. That is a merchandising decision you can only make if the merchant layer is in your data warehouse.

trailoutfitter.comresellerfirst in 21 of 30 tasks · $129.00
ridgeline.comown storefirst in 9 of 30 tasks · $149.00

Prototype your pattern with a test key first

Free trial · then pay per task