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.
- 01create tasks
- 02get the result
- 03store it
- 04join to your own data
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
// 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 section | From |
|---|---|
| p.01Visibility vs 3 competitors | result.entities[] |
| p.02Per-engine breakdown | result.entities[] |
| p.03Sentiment and stance | result.entities[] |
| p.04Citation opportunities | result.sources[] |
| p.05Content briefs | result.fanOuts[] |
| p.06Verbatim evidence | result.answer |
| p.07Spend per client | GET /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?".
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.
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.
first in 21 of 30 tasks · $129.00first in 9 of 30 tasks · $149.00Start from an endpoint
AI Visibility Tracking API →
The brands each answer names, with rank and sentiment.
APIAI Model Comparison API →
One task per model, for the per-engine tab.
APIPrompt Tracking API →
Run your prompts as labelled tasks.
APIFan-Out API →
Turn the model's web searches into briefs.
APICitations API →
The sources behind each answer, for the client report.
APIAI Shopping API →
Products and merchants in shopping answers.
APIThemes & Perception API →
Coming soon: how each brand is framed, theme by theme.
Free trialStart free trial →
Every endpoint, every engine.