E-commerce and prices

How to use an Amazon product search API with Claude or any AI agent

Updated · 1ToolRing team

An Amazon product search API returns the products Amazon lists for a keyword, with price, rating and position, as JSON your agent can read. With 1ToolRing, Claude or any MCP agent calls anyapi/amazon.search for up to 20 products per search, or dataforseo/amazon/products for a ranked page of 48 with badges. You pay per call from one prepaid balance, and a failed call costs nothing.

Sellers sizing up a category and developers building shopping assistants need the same thing first: what Amazon shows a shopper for a search. Copying results by hand works for one keyword. At twenty keywords it turns into an afternoon of tabs, and the copy has no dates, so next month's check cannot be compared with this one.

The rows are also easy to misread. A search returns neighbors of your product as well as the product itself, sponsored slots sit between organic ones, and a missing price can arrive as a blank or a zero. Keep the sample small and capped, and join every row on the ASIN. Tell the agent up front that a blank price means unknown.

Paste this into your agent

Works in Claude, ChatGPT, Cursor, Codex, n8n and any MCP client. Change the placeholders, keep the row cap.

Set up 1ToolRing from 1toolring.com/install, then search Amazon US for "standing desk" and "standing desk converter" with anyapi/amazon.search. Inspect the price first and stop after 2 searches. Return one table with ASIN, title, price, rating, review count and position, drop rows with no price, mark sponsored rows if the tool flags them, and list the 5 most reviewed products separately.

First time? Set up takes one command or one connector URL:

set up 1ToolRing - https://1toolring.com/llms.txt

Paste this into your agent's chat (Claude Code, Codex, Cursor, ChatGPT, claude.ai). Your agent sets up 1ToolRing and you sign in.

Tools this workflow uses

Your agent finds these with discover_tools and reads each input schema and price with inspect_tool. Both are free. Only a successful run is charged.

ToolWhat it does herePrice
anyapi/amazon.searchReturns up to 20 products for a search or category URL, with title, price, rating and thumbnail, enough for a first shortlist.$0.00100 / unitRp18 / unit
dataforseo/amazon/productsReturns a ranked page of 48 results with price, rating and badges, for when positions and best-seller style flags matter.$0.0043 / callRp78 / call
serpapi/amazon/searchA second search source with prices and ratings, used to cross-check a page that looks odd.$0.020 / callRp353 / call
anyapi/amazon.productFetches the full record for one product URL, with brand, variants, review count and attributes, for the listings that make the shortlist.$0.0011 / unitRp19 / unit

Step by step

  1. Write the keyword like a shopper. Use the phrase a buyer would type, with size or model when it matters. A narrow query such as a size plus a product type wastes fewer rows on neighbors than a broad category word. Keep one marketplace for the whole run.
  2. Inspect before the first search. Ask the agent to run inspect_tool on the search tool it picked. That returns the input fields, the marketplace options and the price at no charge. For dataforseo/amazon/products, the free dataforseo/amazon/locations tool finds the marketplace code.
  3. Run one keyword, then the list. Run a single search and read the columns before looping. If the rows look right, give the agent the full keyword list with a cap on searches per keyword. One page per keyword is enough for most shortlists.
  4. Clean the rows. Drop rows without a price, mark sponsored rows and remove duplicates by ASIN, since one product can appear in a sponsored slot and again further down. Put products that are not what you searched for into a separate group so you can see what was removed.
  5. Read details only for the shortlist. Send the 5 to 10 listings you care about to anyapi/amazon.product for brand, variants and attributes. Fetching full records for every row of every search multiplies the calls without changing the decision.
  6. Save the date and the marketplace. Store the search date, the marketplace and the tool beside every row. Results move between pulls, and a table without a date cannot be compared with next month's.

What does an Amazon product search return?

One search returns listings in the order Amazon shows them. Each row carries an ASIN, a title, a price, a star rating and usually a review count. Depending on the tool you also get a thumbnail, a position, badges and a sponsored flag. Carry the ASIN forward: it is the product ID you use later for detail lookups, reviews and price checks.

A search page is a sample of what one shopper sees at one moment from one location. Two pulls of the same keyword an hour apart can differ, and so can two tools reading the same keyword. Pick one tool per job and keep it, so that any change in your table comes from the market.

Which Amazon product search API tool should I use?

Choose by what you need from one call. All four run on the same key and balance, so switching later is a change of tool id in the prompt.

ToolWhat one call gives youPick it when
anyapi/amazon.searchUp to 20 products from a search or category URL, with title, price, rating and thumbnailYou want a low-cost shortlist per keyword
dataforseo/amazon/productsA ranked page of 48 results with price, rating and badgesPositions and badges matter, or you track one keyword over time
serpapi/amazon/searchProduct listings with prices and ratingsYou want a second source to cross-check a page
anyapi/amazon.productOne full product record from a product URLYou already know which listings matter

How do I keep the wrong products out of the table?

A keyword search ranks by relevance, and relevant includes accessories, other sizes, bundles and the next model up. Ask the agent to check each title against what you searched for and move mismatches to a review group. When you compare prices, match on the ASIN and ignore the row position, because positions reshuffle between pulls and the third row today can be a different product next week.

  • A price of zero or an empty price means unknown. Keep it out of averages and minimums.
  • If a rating comes back as text, convert it to a number before sorting.
  • Multipacks and variants share most of a title. Keep pack size and color in their own columns.

Is a sales badge the same as a sales figure?

No. A badge such as a best-seller flag shows how listings compare on the page. None of the search fields carries units sold or revenue, so tell the agent to describe demand with what it can see: position, review count, rating, price and badges. A prompt that asks for "sales" invites the model to make a number up.

When is a search tool the wrong choice?

Known ASINs need no search at all; look the products up directly, as in Amazon ASIN lookup. Your own orders, fees and inventory sit in your seller account, out of reach of any public search. For the keywords a product ranks for, Amazon keyword research gets the list in a few calls, where search would take hundreds.

What does it cost?

Ten keywords with one search each, a ranked-page cross-check on two of them, and full records for a shortlist of 8 products.

CallToolCountUSDIDR
Searches, 10 keywordsanyapi/amazon.search10$0.0100Rp180
Ranked page cross-check, 2 keywordsdataforseo/amazon/products2$0.0086Rp156
Product details, 8 listingsanyapi/amazon.product8$0.0084Rp152
Total$0.027Rp488

Computed from list prices as of 2026-11-10. A run is held at its maximum and settled to the real cost, and a failed call is not charged. See how pricing works.

Questions

How do I connect Claude to Amazon search data?
Install 1ToolRing as an MCP server and give Claude the prompt on this page. Claude finds the Amazon tools with discover_tools, reads the inputs and price with inspect_tool, then runs the search. The same setup works in Cursor, other MCP clients and over REST.
How much does one Amazon search cost?
It depends on the tool, and the agent sees the exact price before it runs. Discovery and inspection are free, a run is charged from your prepaid balance, and a failed call costs nothing. The worked example on this page computes the total for ten keywords from current prices.
Can I search Amazon stores outside the US?
Yes. The search tools take a marketplace setting, and the free dataforseo/amazon/locations tool looks up marketplace codes by country. Keep one marketplace per run, because an ASIN from one storefront may not exist on another.
Why do two searches for the same keyword differ?
Amazon results move between pulls and by location, and each tool reads the page its own way. Small differences in order are normal. Compare runs made with the same tool, marketplace and keyword, and store the date with every row.
Does the search show which products are sponsored?
Some tools flag sponsored rows and some do not, so check the response fields with inspect_tool before you rely on the flag. Where it exists, keep sponsored and organic rows apart, then deduplicate by ASIN, since one product can appear in both.