glimglim.shdocs
Tools

Amazon product API for agents

Use the glim.sh Amazon product API to compare listings in one marketplace, then read the product page for an item on your shortlist. Search returns product URLs and ASINs so you can look up the same listing through MCP or REST.

Amazon product API pricing

  • POST /api/v1/amazon/search or glim_amazon_search costs $0.005 per search.
  • POST /api/v1/amazon/get or glim_amazon_get costs $0.01 per product lookup.

Use a glim.sh API key for the REST examples, or pay per call with a wallet. You do not need Amazon Associates credentials to use these tools.

Search Amazon products by keyword

Choose the marketplace with tld. These requests search for mechanical keyboards in the US store. Each result can include a price, currency, rating and review count.

REST request
curl -X POST https://glim.sh/api/v1/amazon/search \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"mechanical keyboard","tld":"com"}'
MCP tools/call parameters
{
  "name": "glim_amazon_search",
  "arguments": {
    "query": "mechanical keyboard",
    "tld": "com"
  }
}

To browse bestsellers, send category_slug in place of query. To compare frequently reviewed items, sort_by: "most_reviewed" ranks the results on the current page by review count.

Get product details by ASIN or URL

For REST, copy the listing's asin and use the same tld as the search. For MCP, pass the listing's full url as ref. The URL tells the tool which marketplace to read.

REST request
curl -X POST https://glim.sh/api/v1/amazon/get \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asin":"B08Z6X4NK3","tld":"com","response_format":"detailed"}'
MCP tools/call parameters
{
  "name": "glim_amazon_get",
  "arguments": {
    "ref": "https://www.amazon.com/dp/B08Z6X4NK3",
    "format": "json"
  }
}

Product details can include stock, a delivery estimate, ratings and top reviews as the page shows them. Delivery and availability reflect the location glim.sh loads the page from, not your address. When other offers are visible, other_offers_from_price gives their starting price.

Amazon MCP server

Connect your MCP client to https://glim.sh/mcp. To load only product search and lookup, use https://glim.sh/mcp?tools=glim_amazon_search,glim_amazon_get.

Claude Code
$ claude mcp add -s user -t http glim https://glim.sh/mcp
Codex
$ codex mcp add glim --url https://glim.sh/mcp
OpenCode
$ opencode mcp add
Interactive: choose remote, paste https://glim.sh/mcp
Wallet
$ npx x402-proxy mcp add glim https://glim.sh/mcp
No account: your agent pays per call in USDC (x402) from a local wallet, auto-generated on first run.

Compared with the Product Advertising API

Amazon directs Product Advertising API 5.0 users to the Creators API in its migration guide, which requires new Creators API credentials. glim.sh needs no Amazon credentials and reads the public product page over REST or MCP.

Good to know

  • Search supports com, co.uk, de, fr, es and it. The default is com. A bare ASIN works for REST lookup with that default. For MCP lookup, include the marketplace in the URL.
  • price_gross is the displayed price. Where VAT applies, price_net is an estimate using the standard rate configured for the marketplace.
  • MCP returns compact text by default. Use format: "json" for structured product data, including images and featured-offer details when available. The corresponding REST option is response_format: "detailed".
  • An unknown ASIN or category returns a not-found error with a suggestion. Use search to find a valid ASIN first.

FAQ

Can I use this as an Amazon reviews API?

Product lookup includes top reviews when the product page displays them. There is no endpoint to page through every customer review.

Can I get historical prices or place an order?

No. Both tools read product listings. They do not provide a price history, manage a cart or place orders.