API for GEO: the AI Visibility API that returns answers already structured
Get AI answers already scored, from one AI Visibility API
The AI visibility API for teams building generative engine optimization (GEO) into their product: every answer parsed, every brand ranked and scored.
If your team bills by the hour, start with Loopwork.
The data infrastructure behind API for GEO already measures AI visibility for
Integration
One POST, every layer
One POST creates the task. One GET, or a webhook, returns the answer with every layer: brands, sources, fan-outs and products. A retry with the same Idempotency-Key returns the same task, charged once.
- aREST + JSON, one result per task
- bEvery layer included in each task
- cSame data reachable from Claude or Cursor via the MCP server*
* The MCP server is coming soon.
Browse the APIs →# 1. create the task curl -X POST https://api.apiforgeo.com/v1/tasks \ -H "Authorization: Bearer $API_FOR_GEO_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }' # 2. read it once completed curl https://api.apiforgeo.com/v1/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b \ -H "Authorization: Bearer $API_FOR_GEO_KEY"
import os, requests API = "https://api.apiforgeo.com/v1" H = {"Authorization": f"Bearer {os.environ['API_FOR_GEO_KEY']}"} # 1. create the task requests.post(f"{API}/tasks", headers=H, json={ "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }, timeout=30) # 2. read it once completed r = requests.get(f"{API}/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b", headers=H, timeout=30) print(r.json())
const API = "https://api.apiforgeo.com/v1"; const auth = { Authorization: `Bearer ${process.env.API_FOR_GEO_KEY}` }; const post = (path, body) => fetch(API + path, { method: "POST", headers: { ...auth, "Content-Type": "application/json" }, body: JSON.stringify(body) }).then((r) => r.json()); const get = (path) => fetch(API + path, { headers: auth }).then((r) => r.json()); // 1. create the task await post("/tasks", { "prompt": "best project management tool for creative agencies", "model": "chatgpt", "country": "US", "language": "en" }); // 2. read it once completed console.log(await get("/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b"));
Computed layer
The answer is the raw material. The computed layer is the product.
Every task is parsed and scored before you read it. Each brand the answer names gets its position, mention count, sentiment and stance. The cited pages, the web searches and the product cards come as arrays. You call one endpoint instead of building an NLP pipeline.
Citations
Every page the answer cites, with its URL, domain, title and rank. Source categories and the brand flag are coming soon.
Entities & ranking
Every brand, company and person the answer names, with its position and mention count. Each one keeps the same id across your tasks. Alias merging is coming soon.
Sentiment
A score from -1 to +1 and a stance per brand, per answer: chosen, described, named, dismissed or criticized. Trends are coming soon.
Themes & perception coming soon
Theme clusters across answers (price, support, integrations), and how each brand is framed inside each theme.
Shopping & social
Product cards with brand, price, rating and merchant offers, plus the ads beside them. YouTube citations are coming soon.
Compare
What a scraping API leaves you to build
Scraping APIs cost less per call. Add the brand extraction, ranking and sentiment you would build on top, then compare.
Enrichment pipeline
Six stages between your POST and the result
One prompt, followed from the task you create to the result your product reads.
- Task · ChatGPTbest pm tool for agencies01
Task
One prompt, one model, one country and language. POST /v1/tasks answers 201 with the task queued.
- Runchatgpt · US · en ✓02
Run
The model answers the prompt in that country and language. A failed task is refunded in full.
- Parse3 sources · 2 web searches03
Parse
The answer text, every cited page with its domain, title and rank, and the web searches the model ran.
- ExtractLoopwork #1 · 2 mentions04
Extract
Every brand, company and person the answer names, with its position and mention count. Each keeps one id across your tasks.
- ScoreLoopwork · chosen05
Score
Sentiment from -1 to +1 and a stance for each brand. Share of voice and themes across tasks are coming soon.
- Result{ "status": "completed" }06
Result
Read it with GET /v1/tasks/{taskId}, or get task.completed on your webhook. Keep it within 7 days.
APIs
One task, every layer
One POST sends a prompt to an engine. One GET, or a webhook, returns the answer with every layer below, so every number traces back to an answer you can quote.
Prompt Tracking API →
One task per prompt, model and market, with your own labels. Poll it, or get a webhook when it completes.
result.entities[]AI Visibility Tracking API →
Every brand, company and person an answer names, with its rank, mention count, sentiment from -1 to +1 and stance.
result.sources[]Citations API →
Every page the answer cites, with its URL, domain, title and rank.
result.fanOuts[]Fan-Out API →
The web searches the model ran while it answered, in the order it ran them.
result.products[]AI Shopping API →
The product cards in the answer, with brand, price, rating and merchant offers, plus the ads beside them.
GET /v1/modelsAI Model Comparison API →
The models for sale, their price and the countries each one runs in. Run one prompt on each to compare them.
By need: the AI brand visibility API benchmarks one brand against its competitors, and the Google AI Overviews API reads Google's AI answers as data.
coming soon Themes & Perception API, Sentiment API, Social Citations API and MCP server.
Who builds on it
Ship a GEO product within a sprint
Three integration patterns, each built on the same two calls: create a task, read its result. Read the patterns →
Add a GEO module to your platform
Add AI visibility to an existing rank-tracking product in a sprint. Your customer's id on every task, no branding in the payload, resale allowed.
Read the pattern → AgenciesClient reporting that survives an audit
One API key per client, per-model results and cited pages piped straight into your reporting stack or a sheet.
Read the pattern → E-commerce & brandsKnow which merchant wins the recommendation
Product cards, merchant offers and prices from shopping answers. Each product keeps one id, so you map it to your SKU once.
Read the pattern →Free trial
Try every endpoint with a free trial
Create an account, get your key and run your own prompts on every engine. No sales call.
Every endpoint on every engine, with your own prompts and brands.
Start free trial Key in your dashboard right after sign-upPricing
Pay per task. One task is one enriched answer.
A task covers one prompt, on one model, in one country and language: brands, sources, sentiment, fan-outs and shopping included. One task costs $0.013. Above 50,000 tasks a month the price falls to $0.011, then to $0.009 above 250,000 and $0.007 above 1,000,000, applied automatically. No per-metric upsell, no seat licence.
Pay-as-you-go from a prepaid balance. Your balance never expires, top-ups start at $5 and tiers apply automatically. Every account starts with a free trial. Committing to volume? Talk to us →
FAQ
Generative Engine Optimization, defined
What is an AI visibility API?
An AI visibility API sends a prompt to AI engines and returns what each answer says about brands, as data: the brands it names, their rank, their sentiment and the sources it cites. API for GEO returns all of it as structured JSON in one task, on 8 engines, so you can store it, chart it and resell it.
What does GEO mean in API for GEO?
GEO means generative engine optimization: the work of making a brand appear, rank and be described well in the answers of AI engines such as ChatGPT or Google AI Mode. It has nothing to do with geolocation or maps. API for GEO returns the data that work needs, prompt by prompt.
What is GEO (Generative Engine Optimization)?
GEO is the practice of making a brand appear, rank and be described favourably inside AI-generated answers, on ChatGPT, Gemini, Google AI Mode and the rest. It is measured per prompt, the way SEO is measured per keyword.
What is a GEO API?
A GEO API returns structured data about AI answers for a prompt: which brands are mentioned, in what order, with what sentiment, which sources are cited, and which web searches the model ran. API for GEO returns all of it in the result of one task, so you can store, aggregate and resell it.
How is this different from an AI answer scraping API?
Scraping APIs stop at the answer text. Everything expensive comes after: finding every brand the answer names, giving each one a stable id, counting position, scoring sentiment, extracting shopping offers. That layer is the product here. See the full comparison.
Which AI models and markets are covered?
8 AI engines (ChatGPT, Gemini, Google AI Mode, AI Overviews, Microsoft Copilot, Grok, Rufus and Alexa for Shopping) across 40+ countries and 25+ languages. Availability depends on the model and the country. GET /v1/models lists the countries of each model, so you can check a request before you spend your balance.
Can I resell the data to my own customers?
Yes. The API is built for embedding: one workspace, your own labels on every task, an API key per customer if you want its spend apart, no branding in the payload, and no clause preventing you from putting the numbers in your own product.
What does the free trial include?
Every endpoint and every engine, on your own prompts. Once the trial is used, you top up your balance and pay per task at the public rates. Test keys stay free: they return a sample result in about 15 seconds.
How fast do I get a key?
Right after your first sign-in, which creates your workspace. You create the key in the dashboard, then send your first task.