Amazon Product Variations API
List related child ASINs and their size, colour and style attributes. Set include_details to fetch each variant's current price and availability (maximum 10 per request). Without it, only the selected variant has product details. Costs 10 credits. No Amazon sign-in required. Prices and availability reflect the marketplace and delivery location; unavailable fields are null.
POST
/v1/amazon/product/variations Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| asin | body | string | No | Amazon product ASIN. |
| cursor | body | string | No | next_cursor from a prior response using the same filters and marketplace. |
| include_details | body | boolean | No | — |
| limit | body | integer | No | Maximum results in this response. |
| marketplace | body | string | No | Amazon marketplace. Defaults to the product URL's marketplace, or amazon.com. |
| page | body | integer | No | Starting upstream page. Prefer cursor to retain unused results and avoid duplicates. |
| postal_code | body | string | No | Delivery postal code. The request fails if Amazon cannot apply it; responses include the displayed delivery location. |
| url | body | string | No | Product URL on a supported Amazon marketplace. |
Response Structure
Async kickoff response
Polled run result response
Sync response
Declared output schema
Code Examples
Async + polling
RUN=$(curl -s -X POST "https://api.browsable.app/v1/amazon/product/variations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.amazon.com/dp/B0C3HCD34R"}')
RUN_ID=$(echo "$RUN" | jq -r '.run_id')
POLL_DELAY=3
while true; do
RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api.browsable.app/v1/runs/$RUN_ID")
STATUS=$(echo "$RESULT" | jq -r '.run_status')
if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
echo "$RESULT"
break
fi
sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
[ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
doneSync
curl -X POST "https://api.browsable.app/v1/amazon/product/variations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.amazon.com/dp/B0C3HCD34R","_run":{"async":false}}'