ChatGPT Shopping API
The ChatGPT Shopping API captures the product cards ChatGPT shows for a shopping prompt, for generative engine optimization (GEO) in retail: each product with its brand, price, rating, rank and every merchant offer, plus the sponsored cards beside the answer. You get structured JSON, one task per prompt, market and run.
ChatGPT
Gemini
Google AI Mode
AI Overviews
Microsoft Copilot
Grok
Rufus
Alexa for Shopping
Updated
ChatGPT Shopping
What ChatGPT Shopping shows: 3 product cards for one buying question
For a buying question, ChatGPT can answer with product cards: each one shows a product, its price, its rating and the merchants that sell it. OpenAI says these results are not ads. Sponsored cards can appear beside the answer. In this sample, ChatGPT shows three trail shoes, and a reseller's ad for one of them sits beside the answer.
The cards are one layer of the AI shopping API, which reads them on every engine that shows them. OpenAI's statement is on its help page, Shopping with ChatGPT search (checked 25 November 2026).
Fields
Fields returned: 9 per product card, 6 per ad
Each product card comes with its id, name, brand and the brand's entity id, its price, rating, review count and rank, and every merchant offer on it, each with a name, a URL and a price. Each ad comes with its advertiser, brand, format, title, price and rank. Product ids stay the same across your tasks.
| Field | Type | Description |
|---|---|---|
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[].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. |
Over time
Tracking a product or merchant over time, week by week
Run the same buying question as a task every week and store each result. The product id is the same in every task, so a few lines give the product's rank week by week and the merchant with the lowest offer. The API returns each answer; the history is yours, computed on your own copy.
// tasks: the ChatGPT tasks you stored for one buying question, one per week const PRODUCT = "prod_7d2e9a4c1f6b3e8a5c0d7f2b9e4a1c6d"; // the id stays the same in every task const weeks = tasks.map((task) => { const card = task.result.products.find((p) => p.id === PRODUCT); const offers = card ? card.merchants.filter((m) => m.price) : []; const lowest = offers.sort((a, b) => a.price.amountMicros - b.price.amountMicros)[0]; return { week: task.completedAt.slice(0, 10), position: card ? card.position : null, // null: ChatGPT left the product out lowestOffer: lowest ? { merchant: lowest.name, price: lowest.price.amountMicros / 1e6 } : null, }; });
Example
Example request and response: the Scree 3 Wide ranks 1st at $149
Create a task on chatgpt with the buying question, the country and the language, then read it once it completes, or get it by webhook. In this sample, ChatGPT ranks the Ridgeline Scree 3 Wide first at the brand store's $149, while a reseller offers it at $129 on the same card.
GET/v1/tasks/{taskId}
# 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 its result 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 its result 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 its result console.log(await get("/tasks/task_0193f2a7c1d84e6f9b2a5c7d3e1f4a6b"));
200 OK
{
"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[].name | string | The product as the engine named it. |
result.products[].price | object | amountMicros and currency. |
result.products[].position | integer | Its rank among the cards. |
result.products[].merchants[] | array | The offers on the card: name, url and price. |
result.ads[].advertiser | string | null | Who paid for the ad. |
OpenAI
Official OpenAI options vs this API: 3 needs, 1 API that reads the cards
OpenAI's commerce tools serve merchants who want ChatGPT to show their products: a product feed, and a checkout on the merchant's own site. None of them returns what ChatGPT shows for a buying question. To read the cards, the ranks and the competing offers, you run the question, which is what this API does.
| Need | OpenAI offers | ChatGPT Shopping API |
|---|---|---|
| Get my products shown in ChatGPT | A product feed that merchants send to OpenAI | Not its job: it reads what ChatGPT shows |
| Sell from ChatGPT | Checkout on the merchant's own site, since March 2026 | Not its job |
| See the cards, ranks and offers ChatGPT shows | No API: the web search tool returns sources and citations only | result.products[] and result.ads[], per task |
Sources: OpenAI's product feed schema, its post on product discovery in ChatGPT (24 March 2026), and the web search tool guide.
Pricing
ChatGPT Shopping API pricing runs from $0.013 to $0.007 per task
The ChatGPT Shopping API adds no charge of its own: every ChatGPT task returns its product cards and ads with the other layers. You pay per task, from a prepaid balance, and an answer without cards costs the same task. Every account starts with a free trial, and reading a task is free.
Price per task, set by the month's total volume.
FAQ
ChatGPT shopping data, answered
Does OpenAI have a ChatGPT Shopping API?
No. OpenAI offers no API that returns the product cards ChatGPT shows (checked 25 November 2026). Its web search tool returns sources and citations, not shopping cards. Its commerce tools work the other way round: merchants send their product feed so that ChatGPT can show their products.
Are ChatGPT product results ads?
OpenAI says its product results are not ads. The ads come apart: when ChatGPT shows a sponsored card beside the answer, the API returns it in result.ads[], with the advertiser, the brand, the format and the price, so you can keep organic and paid apart.
Does every shopping prompt return product cards?
No. Whether ChatGPT shows cards depends on the question. A task without cards returns an empty result.products[] at the same price, which is a result in itself: it tells you which buying questions ChatGPT answers in text only.
How long can I read the products?
Each result stays readable for 7 days after the task completes. Save the products and offers you need when task.completed reaches your webhook, then build price and rank history on your own copy.
Related GEO APIs
AI Shopping API →
The AI Shopping API hub: the same product fields on every engine that shows cards.
APIAmazon Rufus API →
The products Amazon's shopping assistant recommends, in 14 countries.
APICitations API →
The review pages ChatGPT cited next to its product cards.
Same topic: AI Shopping API · Amazon Rufus API · AI shopping tracker