Commerce5 min readBy Purrkey teamUpdated

How to fetch an Amazon product's full details by URL

Get a normalized product record from an Amazon product URL for listing comparison or shortlist enrichment

On this page

You have 25 Amazon product URLs from a category shortlist and need consistent titles, brands, prices, ratings, and review counts before deciding which models to stock. The deliverable is a table that feeds a price-versus-rating comparison and flags listings that are out of stock. No run has been executed for this guide, so the table below is a design, not a result

Task and deliverable table design

The worksheet has one row per product URL. It carries the fields you need for the stocking decision plus a stock decision column you add after reading the output. Values here are placeholders showing the shape

URLTitleBrandPriceCurrencyRatingReviewsCountInStockSellerNameStock decision
https://www.amazon.com/dp/B0D1ABC123(title or empty)(brand or empty)(number)(symbol or code)(0-5)(integer)true or false(seller or empty)stock, review or skip

The URL in the row is an invented example; replace it with your real Amazon product URLs. For a comparison layout that uses a product table, see the espresso machine comparison. The stock decision column is yours: set it from inStock and price after the tool returns the record

Input the tool takes

anyapi.amazon.product is called through POST /v1/runs with toolId anyapi.amazon.product that fetches product details from a product URL. The required field is url: the full Amazon product URL from a product page. The optional field requireFields takes an array naming category, condition or variantAsins when the request must be able to return those output fields. Omit it and routing is unchanged, with the cheapest source serving. Fields you do not name are still returned whenever the serving source has them

Naming a field can raise your price. When the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a product that genuinely lacks it. A requireFields combination that no single source can return together is refused as invalid input, with no charge. That refusal is an input outcome, not a product result

Read the output fields for a stock decision

The response has found and data. found is true when the product was found. data is the product wrapper, or null when the URL resolved to no product. When found is true, data.items carries the product detail record for the requested URL with fields such as title, brand, price, currency, rating, reviewsCount, inStock, sellerName, asin, url, category, condition, variantAsins, image, images, features and description. The item requires title, url and asin; fields such as brand are populated whenever the provider has data for the entity

Use these fields to fill the decision columns. inStock is true when the product is purchasable. price is the current buy-box price as a numeric amount, and it is 0 when the listing has no buyable price, which the contract ties to out of stock. rating runs from 0 to 5 and is 0 when unrated. reviewsCount is 0 when there are no reviews. sellerName names the seller fulfilling the buy box. variantAsins is null when the serving source does not publish variations, so a null value cannot fill a variant list. A found: false row cannot fill title, brand, price, rating or reviewsCount because there is no product record

When found is false, reason is present with the value not_found. The contract says that answer is a successful call, not an error, and that costUsd is what it actually cost. Record the reason and stop that row. For a found row, compare price against rating and set the stock decision column to stock, review or skip according to your stocking rule

The agent prompt

The prompt below asks the agent to check the live input schema and price before it runs. It returns the table shape above. Replace the example URL with your 25 URLs

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch Amazon product details for the URLs below. Check the current inputs and price of anyapi.amazon.product before running anything. Call the tool once per URL. Return a table with url, title, brand, price, currency, rating, reviewsCount, inStock, sellerName and a stock decision column. If found is false, leave the product fields empty and put the reason in the table. Do not invent product data. Do not set requireFields unless I ask.

Example URL (replace with your 25 real Amazon product URLs):
https://www.amazon.com/dp/B0D1ABC123

The example ASIN is invented. Use real Amazon product URLs from your shortlist. Keep the first run to five URLs if you want to see the response shape before spending on 25 calls

Estimated tool cost

Prices are from the Purrkey catalog, read November 13, 2026. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
25-product details refreshcalls x max priceup to $0.0101 per call25$0.2525
100-URL shortlist enrichmentcalls x max priceup to $0.0101 per call100$1.01

The 25-call refresh is the plan for the shortlist in this guide. The 100-call row is the larger shortlist scenario. A requireFields request that routes to a dearer source can be quoted above the listed maximum, and the catalog says you are charged that quoted price. Model fees for the agent are not counted

Next action

Open the Amazon product details tool page to check the current input schema and price before you run the 25 URLs. Swap the invented ASIN for a real product URL first

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Amazon.
Explore Amazon tools and pricing

FAQ

How do I fetch Amazon product details by URL?

Run each Amazon product URL through anyapi.amazon.product and read the data.items record for title, brand, price, rating and reviewsCount. A found false answer means no product record.

What inputs does anyapi.amazon.product take?

It takes a required url and an optional requireFields array. The url is the full Amazon product URL from a product page.

How do I know if an Amazon listing is out of stock?

Read inStock and price from the data.items record. inStock is true when the product is purchasable, and price is 0 when the listing has no buyable price.

What happens when the Amazon product URL is not found?

The response has found false and a reason of not_found. The contract says that is a successful call, not an error, and costUsd is what it actually cost.

What does requireFields do in anyapi.amazon.product?

It names output fields such as category, condition or variantAsins that the request must be able to return. It can raise the price when the cheapest source cannot return a named field.

Can I request category, condition and variantAsins together?

A requireFields combination that no single source can return together is refused as invalid input, with no charge. The refusal is an input outcome, not a product result.

How much does it cost to fetch details for 25 Amazon product URLs?

At the listed maximum of $0.0101 per call, 25 calls are at most $0.2525. Successful runs settle at the actual AnyAPI charge.

Next step

Try this with Amazon

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Amazon tools

Share this article