AI Shopping API
The AI Shopping API brings generative engine optimization (GEO) to retail: it returns the product cards an AI answer shows, when the engine shows them, with brand, price, rating, review count, rank and every merchant offer. The sponsored cards beside the answer come too, with advertiser, format and price. It reads ChatGPT, Google AI Mode, Rufus, Alexa for Shopping and the other engines of the 8, one task at a time, at no extra cost.
ChatGPT
Gemini
Google AI Mode
AI Overviews
Microsoft Copilot
Grok
Rufus
Alexa for Shopping
Updated
Playground
One answer ranks the Scree 3 Wide 1st at $149, and a reseller offers it at $129
The AI Shopping API returns each product card in the answer, with every merchant offer on it. In this sample on ChatGPT, the Ridgeline Scree 3 Wide ranks first at the store's $149, and a reseller offers it at $129 on the same card. A reseller's ad for another Ridgeline shoe sits beside the answer. Switch to Google AI Mode or Rufus to compare.
POST/v1/tasks·GET/v1/tasks/{taskId}
prompt
best trail running shoes for wide feet
model
- Product cards
- 3
- Ads beside the answer
- 1
- Lowest offer on card 1
- $129 at trailoutfitter.com
# 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 trail running shoes for wide feet", "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 trail running shoes for wide feet", "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 trail running shoes for wide feet", "model": "chatgpt", "country": "US", "language": "en" }); // 2. read it once completed console.log(await get("/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b"));
| # | Product | Price | Rating | Merchant offers |
|---|---|---|---|---|
| 1 | Ridgeline Scree 3 Wide | $149 | 4.6 (1,284) | trailoutfitter.com $129, ridgeline.com $149 |
| 2 | Ridgeline Talus Wide GTX | $175 | 4.4 (612) | ridgeline.com $175, summitgear.shop $159 |
| 3 | Ridgeline Cirque Trail Wide | $129 | 4.2 (347) | trailoutfitter.com $99, ridgeline.com $129 |
{
"id": "task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b",
"status": "completed",
"prompt": "best trail running shoes for wide feet",
"model": "chatgpt",
"country": "US",
"language": "en",
"completedAt": "2026-10-14T09:14:05Z",
"resultExpiresAt": "2026-10-21T09:14:05Z",
"result": {
"products": [
{
"id": "prod_7d2e9a4c1f6b3e8a5c0d7f2b9e4a1c6d",
"name": "Ridgeline Scree 3 Wide",
"brand": "Ridgeline",
"entityId": "ent_5b2e8c1f9a3d4f7e8b6c0d2a4e1f3b5c",
"price": {
"amountMicros": 149000000,
"currency": "USD"
},
"rating": 4.6,
"reviewCount": 1284,
"position": 1,
"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"
}
}
]
},
{
"id": "prod_2d7b9e4a1c6f4e8b9a3d5c7e1f0b2a6d",
"name": "Ridgeline Talus Wide GTX",
"brand": "Ridgeline",
"entityId": "ent_5b2e8c1f9a3d4f7e8b6c0d2a4e1f3b5c",
"price": {
"amountMicros": 175000000,
"currency": "USD"
},
"rating": 4.4,
"reviewCount": 612,
"position": 2,
"merchants": [
{
"name": "ridgeline.com",
"url": "https://ridgeline.com/talus-wide-gtx",
"price": {
"amountMicros": 175000000,
"currency": "USD"
}
},
{
"name": "summitgear.shop",
"url": "https://summitgear.shop/talus-wide-gtx",
"price": {
"amountMicros": 159000000,
"currency": "USD"
}
}
]
},
{
"id": "prod_6f1a3c8e5b2d4f9a8c7e0b3d1a5f2c4e",
"name": "Ridgeline Cirque Trail Wide",
"brand": "Ridgeline",
"entityId": "ent_5b2e8c1f9a3d4f7e8b6c0d2a4e1f3b5c",
"price": {
"amountMicros": 129000000,
"currency": "USD"
},
"rating": 4.2,
"reviewCount": 347,
"position": 3,
"merchants": [
{
"name": "trailoutfitter.com",
"url": "https://trailoutfitter.com/cirque-trail-wide",
"price": {
"amountMicros": 99000000,
"currency": "USD"
}
},
{
"name": "ridgeline.com",
"url": "https://ridgeline.com/cirque-trail-wide",
"price": {
"amountMicros": 129000000,
"currency": "USD"
}
}
]
}
],
"ads": [
{
"position": 1,
"format": "product",
"advertiser": "Summit Gear",
"brand": "Ridgeline",
"title": "Ridgeline Talus Wide GTX, free returns",
"price": {
"amountMicros": 159000000,
"currency": "USD"
}
}
]
}
} | Field | Type | Description |
|---|---|---|
result.products[] | array | The product cards the answer shows. |
result.products[].id | string | null | The same product has the same id in every task of your workspace. |
result.products[].name | string | The product as the engine named it. |
result.products[].brand | string | null | Its brand. |
result.products[].entityId | string | null | The brand's entity id, as in entities. |
result.products[].price | object | amountMicros and currency. |
result.products[].rating | number | null | The rating shown on the card. |
result.products[].reviewCount | integer | null | The number of reviews shown. |
result.products[].position | integer | Its rank among the cards. |
result.products[].merchants[] | array | The offers on the card: name, url and price. |
| Field | Type | Description |
|---|---|---|
result.ads[] | array | The sponsored cards next to the answer. |
result.ads[].advertiser | string | null | Who paid for the ad. |
result.ads[].brand | string | null | The advertised brand. |
result.ads[].format | string | null | The ad format, as the engine names it. |
result.ads[].title | string | null | The ad's title. |
result.ads[].price | object | null | amountMicros and currency. |
result.ads[].position | integer | Its rank among the ads. |
Engines
The same product fields on each of the 8 engines that shows cards
The AI Shopping API returns the product cards of any engine that shows them, with the same fields on every engine. ChatGPT, Amazon's assistants, Google AI Mode and Copilot can each show cards for a buying question. When an answer shows none, the task returns an empty product list, at the same price per task.
ChatGPT Shopping
ChatGPT shows product cards with a price, a rating and the merchants that sell each product. The API returns each card and every merchant offer on it. See the ChatGPT Shopping API.
Amazon Rufus and Alexa for Shopping
Amazon's shopping assistants answer inside the store and recommend products from its catalogue. They run on one model, rufus, with the same product fields. See the Amazon Rufus API.
Google AI Mode
Google AI Mode can show product cards next to its answer for a buying question. The API returns them when it does, with the same fields as on ChatGPT.
Microsoft Copilot
Copilot can show products in its answer to a buying question. The API returns the cards when Copilot shows them, and an empty list when it does not.
Gemini, AI Overviews and Grok
When an answer from one of these engines shows product cards, the API returns them with the same fields. When it shows none, result.products[] is empty.
Your catalogue
One map from product id to SKU joins every task to your catalogue
The AI Shopping API gives each product an id that stays the same in every task of your workspace, and holds no SKU of yours. Map each id to your catalogue once, the first time it shows up. From then on, every task joins on that id, and you count ranks, prices and merchants across tasks on your side, on your own schedule.
// tasks: each completed task, saved when task.completed arrived const SKU = new Map([["prod_7d2e9a4c1f6b3e8a5c0d7f2b9e4a1c6d", "SKU-4471"]]); // yours, filled once per new id const rows = []; for (const task of tasks) { for (const p of task.result.products) { const offers = p.merchants.filter((m) => m.price).map((m) => m.price.amountMicros); rows.push({ sku: SKU.get(p.id) ?? null, // null: a product to map, or a card with no id model: task.model, position: p.position, price: p.price ? p.price.amountMicros / 1e6 : null, lowestOffer: offers.length ? Math.min(...offers) / 1e6 : null, }); } }
Get started
Four steps lead to the first product cards
The AI Shopping API needs no setup of its own: every task returns its product cards and ads. Sign in to the dashboard, create a key, send each buying question as a task with a model, a country and a language, then read the result. A test key runs the free sandbox and returns a sample result in about 15 seconds, so you can build the parser first.
-
Step 1
Sign in
Sign in to the dashboard with an email link or Google. The first sign-in creates your workspace.
-
Step 2
Create a key
Create an API key in the dashboard. A test key runs in the free sandbox; a live key spends the balance.
-
Step 3
Create a task
Send POST /v1/tasks with a prompt, a model, a country and a language. One task is one answer.
-
Step 4
Read the result
Poll GET /v1/tasks/{taskId}, or pass a webhookUrl and get task.completed. Keep what you need within 7 days.
Comparison
Only 1 of 4 approaches returns products, merchants and prices as data
The AI Shopping API returns products, merchant offers, prices and ratings as fields, with product ids that stay the same across your tasks. An AI scraping API hands back the raw shopping block, GEO dashboard tools rarely cover shopping answers, and an in-house build has to parse each engine's product format and keep up when it changes.
3 of the 15 capabilities on the full comparison
| Capability | API for GEO | AI scraping API | GEO dashboard tool | In-house build |
|---|---|---|---|---|
| Shopping products, merchants, prices | Yes | Raw block | Rare | Build it |
| Brands with stable ids across answers | Yes | No | Yes, closed | Build it |
| Programmatic access to the data | Yes | Yes | Export only | Yes |
Use cases
Shopping data feeds 3 decisions, one per audience
The AI Shopping API answers a different question for each audience. Platforms add a product visibility module, agencies show retail clients which merchants carry their products in the answer, and brands compare the price an engine quotes with their own. Product ids stay the same across tasks, so your counts add up. Each card opens the matching pattern.
A product visibility module
Show each retail customer which of their products the engines put in cards, and at which rank. Map each product id to the customer's catalogue once, and every later task joins on its own.
Read the pattern → AgenciesMerchant reports for retail clients
List the merchants offered on a client's product cards and the price each one shows. A reseller that undercuts the brand store becomes a line in the monthly report.
Read the pattern → E-commerce & brandsThe price the engine quotes
Watch the price on your product card in AI answers: it is not always yours. Track which merchants the card offers, resellers included, and who buys ads beside it.
Read the pattern →Pricing
AI Shopping API pricing runs from $0.013 to $0.007 per task
The AI Shopping API adds no charge of its own: every task returns its product cards and ads with the other layers, and reading the task is free. You pay per task, one prompt on one model in one country and language, from a prepaid balance. The month's total volume sets the tier, with no commitment needed to reach a lower one.
Price per task, set by the month's total volume.
FAQ
AI shopping data, answered
What does one task return for shopping?
The AI Shopping API returns result.products[], one object per product card: the name, the brand and its entity id, the price in micro-dollars with its currency, the rating, the review count, the rank and the merchant offers, each with a name, a URL and a price. result.ads[] lists the sponsored cards beside the answer, with advertiser, brand, format, title and price.
How do results join my catalogue?
The AI Shopping API gives each product an id that stays the same in every task of your workspace. The API holds no SKU or external id of yours, so you map each product id to your catalogue once, then every later task joins on that id. A card that matches no known product comes with a null id: match it by name.
Which engines show product cards?
The AI Shopping API reads product cards on any of the 8 engines, when the engine shows them. Whether an answer shows cards depends on the engine and the question. Rufus and Alexa for Shopping, Amazon's shopping assistants, answer inside the store. An answer without cards returns an empty products array, at the same price per task.
Which merchant gets the offer?
The AI Shopping API lists every merchant offer on a product card, with the merchant's name, its URL and the price it shows. Resellers appear next to the brand's own store, which shows when a reseller undercuts the store on its own product. Count the offers across tasks on your side to rank the merchants for each product.
Is shopping data billed separately?
The AI Shopping API bills nothing on top of the task. Each task costs from $0.013 down to $0.007 with every layer included, product cards and ads among them, and reading the task is free. An answer without cards costs the same task, and a failed task is refunded in full, so a weekly merchant report costs only its tasks.
How long can I read the products?
The AI Shopping API keeps each result readable for 7 days after the task completes, then it is gone: resultExpiresAt gives the exact time. Save the products and offers you need when task.completed reaches your webhook. Price history and merchant trends then run on your own copy, with your own schedule sending new tasks.
Related GEO APIs
AI Visibility Tracking API →
See how often the brand itself is named in the same answers.
APICitations API →
Read the review pages the engine cited next to the cards.
APIPrompt Tracking API →
Run the buying questions market by market, on your own schedule.
Same topic: ChatGPT Shopping API · Amazon Rufus API · AI shopping tracker
Read the products AI engines show for your buying questions
Free trial · then pay per task