What do I send?
A product_id from a Google Shopping search result.
How many stores does it return?
The stores Google's product viewer shows, usually three to five, plus the price range Google sees across stores.
How long does a request take?
10 to 20 seconds, because a browser draws the product viewer.
What does the Google Shopping Product API return?
product_id is a search result's product_id. The response is what Google's product viewer shows for it: the stores selling it, usually three to five, each with its price, pre-discount price, stock, delivery, and returns; the price range Google sees across stores; the product's options, description, pictures, and specification table. The viewer is drawn by a browser, so a request takes 10 to 20 seconds, sometimes longer. An id Google has no product for returns 404.
How is usage counted?
You pay for the data a call returns, not for the call. Each endpoint sells one kind of item (a job, a profile, a review, a results page) at its own price per 1,000. A search that returns 40 jobs is 40 jobs; a lookup is one item. A call that returns nothing is free: not found, an empty search, a malformed request, or a failure on our side. Each response's x-items-billed and x-request-cost-usd headers say what it cost.
Is there a free tier?
Yes. The free tier is $1 of free credit across every Clair API, with no card: about 3,703 Google Shopping Products if it all goes here. It's granted once; after that you pay as you go with credit that never expires.
What happens when I run out of credit?
The API returns 429 until you top up, and nothing is billed past your credit. Topped-up credit never expires, and a plan's monthly credit is spent before it.
Does my plan cover other Clair APIs?
Yes. One key and one wallet cover every Clair API, and every call spends from the same credit at your plan's rates. Your first call starts the free tier.