Blog/Commerce and pricing
9 min read

How to Use the Amazon Product API in Your Agent

Get a structured Amazon product record into an agent or script, interpret missing prices, and save the result for later comparisons.

How to Use the Amazon Product API in Your Agent

Get an Amazon product record into your agent. Paste this into your agent:

Set up https://monid.ai/SKILL.md and use Monid to look up an Amazon product by ASIN, then return its title, price, rating, review count and availability. Preserve missing fields as null.

One prompt starts a product lookup.

Developers using an Amazon product API need a product record that a script can read. Opening one product page at a time and copying the visible details gives you a snapshot, but it also leaves the source, delivery context and missing values to be tracked by hand.

That manual step gets in the way when an agent needs to compare the same item later. A product identifier alone does not tell the agent whether a displayed price applies to the delivery location or whether the field was absent from the response.

This guide builds a small, repeatable lookup with Monid, the OpenRouter for agent tools: one key and one balance for calls across providers. We'll discover a product lookup, inspect its inputs, run one ASIN and turn the response into a table that preserves the gaps.

The finished example below is from one real call on November 30, 2026. Its null price is an observation, not a zero price.

FieldReturned value
ASINB09B8V1LZ3
ProductAmazon Echo Dot, 5th generation, Charcoal
Pricenull
Rating4.7 out of 5 stars
Reviews202,827
AvailabilityCannot be shipped to the selected delivery location

How to use the Amazon Product API with Monid

Use the Litescrape product lookup through Monid when you have an ASIN and want a structured response in an agent or script. An endpoint is a specific operation you call: this one accepts one product identifier and returns the product page data for that request.

Step 1. Set up your agent

Get a key at app.monid.ai, then give the key and this instruction to your agent. The instruction teaches it the discover, inspect and run workflow.

set up https://monid.ai/SKILL.md

The agent quickstart describes the setup. Keep your key in the agent's secret storage, rather than in a shared prompt or a checked-in script.

Step 2. Install the command line tool

For a human working in a terminal, install the CLI and register the key you obtained from the app. The CLI quickstart covers the same setup.

npm install -g @monid-ai/cli
monid keys add -k <your-api-key> -l main

The agent and terminal routes use the same catalog. You need only one of them to follow this example; the terminal route makes the input and response easy to inspect while you build a script.

Step 3. Find and inspect the lookup

Search first, then inspect the selected operation. Browse the wider monid.ai/tools catalog or the Amazon tools collection for related jobs. Both commands are free, and inspection shows the current input schema, billing shape and price before a paid run.

monid discover -q "amazon product api"
monid inspect -p litescrape -e /amazon/product

The lookup requires asin in query parameters. It accepts a storefront hostname, language and delivery context as optional parameters. Start with one product, as below, and add context only when it matches the comparison you intend to make.

Step 4. Run one product lookup

Use a ten-character ASIN and a storefront hostname. This request uses query parameters, so pass them with --query rather than placing them in a JSON body.

monid run -p litescrape -e /amazon/product -w --query '{"asin":"B09B8V1LZ3","amazon_domain":"amazon.com"}'

The call completed with provider response 200 and billed: true. The response reported total_time_taken of 1.870803947 seconds; that is the provider's reported time for this example, not a promise for future calls. The product record contained a title, rating, review count, availability and thumbnail, while price and description were null.

The product lookup is priced at $0.00015 per call, Verified 2026-11-30. Discover and inspect are free; the completed test was billed once. This test did not establish the charge for an empty response or a failed call.

Why does the product context matter?

A product record is a snapshot of a particular request, not a universal price for an item. The storefront, delivery context and time belong beside the ASIN if you want to compare the record with a later observation.

Treat an ASIN as an identifier

An ASIN identifies the product requested; it does not describe the circumstances in which a price was displayed. Keep the original ASIN with the returned product fields so a downstream job can join the result to its input and identify missing or mismatched records.

The input schema accepts ten uppercase letters or digits. Validate that shape before sending a batch, but do not assume a valid-looking identifier guarantees a product result. For a closer look at identifying an item before requesting its details, see how to do an Amazon ASIN lookup.

Keep delivery context with the observation

Our response said the item could not be shipped to the selected delivery location, and its price was null. Those two returned values belong together: a consumer of the table should not infer that the item costs nothing, is globally unavailable, or has no price in another location.

The schema offers delivery_zip and shipping_location for requests where location matters. Record whichever values you supply along with the storefront; otherwise two rows from different contexts can look comparable when they answer different questions. The example above supplied neither option, so it does not establish what a different destination would return.

Preserve the original value

The rating arrived as the string 4.7 out of 5 stars, and the review count arrived as (202,827). Save those strings before parsing them. A separate numeric column is useful for sorting, but retaining the original makes a parsing error visible and lets you repair it without repeating the request.

Similarly, store null as null. An empty field is a distinct state from an observed value of zero, and a later report should count it as missing rather than include it in a price average.

How to choose an Amazon product detail feed

Choose the route based on whether you need a single observation, a recurring feed, or direct control over collection. A product page is the source material; the practical decision is how the data reaches the next step in your workflow.

Use a tool through one key

Monid exposes the product lookup to an agent or CLI with discover, inspect and run. This is useful when the agent already has an ASIN and needs a structured response without adding a separate provider integration to its workflow. You still own the choice of input, interpretation of fields and storage of the output.

Maintain your own collection script

A custom script gives you control over scheduling, normalization and storage. It also makes your team responsible for adapting its collection and extraction logic when the source changes. A collector and a data model are separate pieces of work: even a successful page fetch needs a reliable way to extract the fields your report requires.

How to choose whether to buy or build an ASIN feed

An Amazon product detail feed can fit a team that already has ASIN records delivered into its systems. A buy versus build decision weighs the ongoing maintenance of an Amazon detail scraper, the product catalog and a structured feed of prices, availability, ratings and images. Check that the identifiers, geography, update schedule and fields match the task before building your comparison around it. For a list of ASINs, the walkthrough for automating Amazon product detail lookups explores a scheduled table. The buy versus build guide for ASIN feeds develops that decision in more detail.

RouteBilling or effortBest fitLimitation
Monid lookupPer callAn agent needs one product recordThis lookup takes one ASIN per request
Own collectorEngineering and operating workCustom extraction and storageYour team maintains the collector
Existing feedDepends on the agreementData already integrated into a workflowIts field and refresh coverage must fit the job
Manual page reviewStaff timeInspecting a small number of itemsCopying and context tracking are manual

How to read and save the result

Read product_results as a set of observed fields and keep the request metadata beside it. The sample returned one product record, not a list of independently requested products.

The response also contained a related_products array. Those entries are not the requested product record: they have their own ASINs and their own displayed values. Do not merge their prices or titles into the row for the input ASIN, and do not treat the count of related items as the number of product lookups completed.

For the requested record, use product_results.asin as the join key and retain search_parameters.amazon_domain. Keep search_metadata separately for status and provider-reported timing. This separation lets a report show the product while an operational log records how it was obtained.

Save the response before transforming it

The installed CLI can return the run record as JSON. Replace the example run ID with the one from your own run and redirect the output to a file:

monid runs get -r <run-id> -j > product-run.json

A run ID is a reference to that execution, not a product identifier. Save the raw response with a timestamp and input alongside any derived table. When a field is missing, the raw record lets you distinguish a missing source field from a transformation that removed it.

Turn one observation into a useful row

Create columns for the requested ASIN, returned title, original price, rating, review count, availability, storefront and retrieval time. Add normalized numeric columns only after validating the strings. Mark a missing price as null and route it to a review queue instead of replacing it with zero.

For the example, the immediate business conclusion is narrow: this observation cannot support a price comparison because it contains no product price. The rating and review count are usable as returned observations, but they do not fill the price gap. A dashboard that needs a price should show the gap and its delivery context to its reader.

How to build a repeatable product feed

A repeatable Amazon product detail feed turns a list of ASINs into structured product records with price, rating and availability, with explicit handling for missing values. Start with one known ASIN, then apply the same request and storage rules to a short list before increasing its size.

Prepare and check the input list

Use one ASIN per row, remove accidental duplicates and keep the desired storefront and destination in explicit columns. Duplicate removal prevents a repeated input from masquerading as two separate products. If two rows intentionally use different delivery contexts, retain both and give each context its own key.

A small initial list makes it easier to compare the returned ASINs to the inputs. Count requested items, completed responses and records requiring review separately. That count is an accounting control, not a claim that every requested product will return every field.

Run and store each observation

The inspected schema takes one asin, so a list workflow issues a separate request for each item. Capture the run ID and response for each request, and include the query parameters in the stored record. A list-oriented workflow keeps each response associated with its input.

Use the current per-call price from the lookup's tool page to budget the intended number of requests. The sample's billed status establishes the charge for this completed call; it does not establish how every failure or empty result is billed. Inspect the current details before designing retry rules.

Compare like with like

For a price change report, join observations on ASIN, storefront and the delivery context you supplied. Compare two observed numeric prices only after checking their currency and time. If either price is null, label the comparison incomplete instead of calculating a change.

The same rule applies to ratings and review counts: preserve each retrieval time and display the original values. This gives an analyst a traceable observation rather than an unsupported conclusion about why a number changed. A schedule is something your own agent or job runner sets; the lookup itself is a request, not a scheduler.

Which endpoint for which job?

The tested Litescrape lookup covers the product-record job in this guide. Its input is a single ASIN and the result is a product observation with the fields returned for that request.

Use caseBest endpointWhy?
Look up one Amazon product by ASINlitescrape /amazon/productOne product request with optional storefront and delivery context; $0.00015 per call, Verified 2026-11-30.

When should you use something else?

Use an existing contracted product feed when your task requires a defined delivery agreement, a particular set of fields or a refresh schedule that your team has already arranged. This is the Monid blog, and Monid provides access to third-party tools; the choice should still follow your data requirements.

The tested lookup accepts one ASIN per request. It returned a null price for our example, so a workflow that requires a price on every row needs a way to handle missing observations. A direct provider integration or an existing feed can fit an organization that already operates that connection and does not need another routing layer.

Conclusion

You now have a one-product lookup, a real result table and a rule for preserving the missing price. Run the same process for a small list, save the request context with each response, and expand only after your downstream table handles gaps; your next comparison will have evidence you can trace back to each product observation.

FAQ

Can I use an Amazon product API in an agent?

Yes. Give the agent a Monid key and the setup instruction, then ask it to discover, inspect and run a product lookup using an ASIN.

Is the lookup free?

Discover and inspect are free; the product run is billed per call. The current tool page lists the price, which was $0.00015 per call, Verified 2026-11-30.

Do I need to write code?

No. An agent can follow the setup prompt and perform the lookup; a script is useful when you want to control storage and repeated processing yourself.

How many products can I request at once?

The tested lookup accepts one ASIN in each request. For a list, send separate requests and keep the response associated with its input.

What happens when the price is missing?

Keep the price as null and mark the comparison incomplete. The example response returned null alongside a delivery restriction, so it does not establish a price for that item.

Are failed or empty requests charged?

The completed example was billed, but this test did not establish billing for failed or empty requests. Inspect the current lookup details before setting retry rules.

Can I schedule a product lookup?

Yes, using your own agent or job scheduler to issue requests at the times you choose. Store the retrieval time and request context with every result.

Is collecting product data legal?

Rules vary by location and use, so check the rules that apply to your situation.

Published November 2026.

amazon product apiamazonproduct data