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

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"
200 OK · completed · 3 products, 1 ad
#ProductPriceRatingMerchant 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
The product fields of GET /v1/tasks/{taskId}
FieldTypeDescription
result.products[]arrayThe product cards the answer shows.
result.products[].idstring | nullThe same product has the same id in every task of your workspace.
result.products[].namestringThe product as the engine named it.
result.products[].brandstring | nullIts brand.
result.products[].entityIdstring | nullThe brand's entity id, as in entities.
result.products[].priceobjectamountMicros and currency.
result.products[].ratingnumber | nullThe rating shown on the card.
result.products[].reviewCountinteger | nullThe number of reviews shown.
result.products[].positionintegerIts rank among the cards.
result.products[].merchants[]arrayThe offers on the card: name, url and price.
The ad fields of GET /v1/tasks/{taskId}
FieldTypeDescription
result.ads[]arrayThe sponsored cards next to the answer.
result.ads[].advertiserstring | nullWho paid for the ad.
result.ads[].brandstring | nullThe advertised brand.
result.ads[].formatstring | nullThe ad format, as the engine names it.
result.ads[].titlestring | nullThe ad's title.
result.ads[].priceobject | nullamountMicros and currency.
result.ads[].positionintegerIts 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.

  1. Step 1

    Sign in

    Sign in to the dashboard with an email link or Google. The first sign-in creates your workspace.

  2. 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.

  3. Step 3

    Create a task

    Send POST /v1/tasks with a prompt, a model, a country and a language. One task is one answer.

  4. 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 GEOAI scraping APIGEO dashboard toolIn-house build
Shopping products, merchants, prices YesRaw blockRareBuild it
Brands with stable ids across answers YesNoYes, closedBuild it
Programmatic access to the data YesYesExport onlyYes

See the full comparison on 15 capabilities →

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.

0 – 50k / month $0.013 per task
50k – 250k / month $0.011 per task
250k – 1M / month $0.009 per task
1M+ / month $0.007 per task

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.

Read the products AI engines show for your buying questions

Free trial · then pay per task