Amazon storefront products
Beta GET /v1/amazon/shop
GET /v1/amazon/shop
Products featured on an Amazon creator storefront, each ASIN once, with the lists, photos and videos that feature it in extra.posts. The first page also carries the creator's trending picks (with prices) and parent: the creator's profile with socials, curations and lists. 20 posts a page. Creator storefronts only (amazon.com/shop/<name>); brand stores (amazon.com/stores/...) are not supported. The creator's affiliate tags are removed from every URL.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Storefront URL (amazon.com/shop/<name>). Accepted hosts: amazon.com, amazon.co.uk, amazon.ca, amazon.de, amazon.fr, amazon.com.au, amzn.to. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl -G "https://api.socialscrape.io/v1/amazon/shop" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "url=https://www.amazon.com/shop/sydneydelrey"import os
import requests
params = {
"url": "https://www.amazon.com/shop/sydneydelrey",
}
res = requests.get(
"https://api.socialscrape.io/v1/amazon/shop",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/amazon/shop");
url.search = new URLSearchParams({
"url": "https://www.amazon.com/shop/sydneydelrey"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Amazon storefront products",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/amazon/shop",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.amazon.com/shop/sydneydelrey"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_b0a80ba0c3ad1abab9cca8df",
"data": {
"object": "list",
"items": [
{
"object": "product",
"platform": "amazon",
"id": "B0HFW6KYLX",
"url": "https://www.amazon.com/dp/B0HFW6KYLX",
"title": null,
"description": null,
"price": {
"amount": 28.49,
"currency": "USD",
"original_amount": null,
"display": "$28.49"
},
"seller": null,
"rating": null,
"review_count": null,
"sold_count": null,
"image_urls": [
"https://m.media-amazon.com/images/I/41mAxS-NXqL._AC_.jpg"
],
"category": null,
"in_stock": null,
"location": null,
"published_at": null,
"extra": {
"deal": true,
"trending": true
}
},
{
"object": "product",
"platform": "amazon",
"id": "B0GVB89C8J",
"url": "https://www.amazon.com/dp/B0GVB89C8J",
"title": null,
"description": null,
"price": {
"amount": 24.29,
"currency": "USD",
"original_amount": null,
"display": "$24.29"
},
"seller": null,
"rating": null,
"review_count": null,
"sold_count": null,
"image_urls": [
"https://m.media-amazon.com/images/I/31g+NpKanGL._AC_.jpg"
],
"category": null,
"in_stock": null,
"location": null,
"published_at": null,
"extra": {
"deal": true,
"trending": true
}
}
],
"cursor": "eyJoIjoic3lkbmV5ZGVscmV5IiwiZCI6Ind3dy5hbWF6b24uY29tIiwidCI6InYyX1d6QXNNVGM1TWpReU16RTBORGd6T0N3aVlXMTZiakV1YVdSbFlYTXVNVTlEUVRoUVZ6UkRUa3BhTWlKZCJ9",
"has_more": true,
"parent": {
"object": "profile",
"platform": "amazon",
"id": "sydneydelrey",
"handle": "sydneydelrey",
"name": "sydney del rey",
"headline": null,
"url": "https://www.amazon.com/shop/sydneydelrey",
"kind": "creator",
"bio": "sharing all of my favorite Amazon finds ᥫ᭡ click the icons below to follow me on socials! all photo & video content is also shoppable x",
"avatar_url": "https://m.media-amazon.com/images/I/71D+tmgGHHL._CR0%2C0%2C972%2C972_._US500_SCLZZZZZZZ_.jpg",
"banner_url": null,
"verified": null,
"is_private": null,
"external_url": null,
"links": [
{
"title": null,
"url": "https://vm.tiktok.com/ZTFrowSpg/"
},
{
"title": null,
"url": "https://www.youtube.com/channel/UCWvW1JOQ-nsAinO1jLFgrVA"
},
{
"title": null,
"url": "https://www.pinterest.com/sydneydelrey"
}
],
"location": null,
"category": null,
"created_at": null,
"stats": {
"followers": null,
"following": null,
"posts": null,
"likes": null,
"views": null
},
"extra": {
"curations": [
{
"id": "amzn1.curation.bdca11e0-6920-4402-ac72-2f2016ed1e36",
"image_url": "https://m.media-amazon.com/images/I/31eFzhWptZL._US225_SCLZZZZZZZ_.jpg",
"post_count": 14,
"title": "SHOES ✨",
"url": "https://www.amazon.com/shop/sydneydelrey/curation/bdca11e0-6920-4402-ac72-2f2016ed1e36"
},
{
"id": "amzn1.curation.71fad634-5787-4ee1-bc3c-6e3ca23e5eae",
"image_url": "https://m.media-amazon.com/images/S/shoppable-media-external-prod-iad-us-east-1/8d48ee6a-0c49-4441-b385-a50fb9d86618/3254e-2233-46c9-89bd-434412530._SX225_SCLZZZZZZZ_.jpeg",
"post_count": 109,
"title": "f/w fit try ons",
"url": "https://www.amazon.com/shop/sydneydelrey/curation/71fad634-5787-4ee1-bc3c-6e3ca23e5eae"
},
{
"id": "amzn1.curation.7e16f5d6-99a7-4277-b498-caffddd25cd5",
"image_url": "https://m.media-amazon.com/images/I/41gq2G5kbDL._US225_SCLZZZZZZZ_.jpg",
"post_count": 12,
"title": "fall by category 🍂",
"url": "https://www.amazon.com/shop/sydneydelrey/curation/7e16f5d6-99a7-4277-b498-caffddd25cd5"
}
],
"lists": [
{
"hearts": 129,
"id": "amzn1.ideas.35KWG9X334D4Q",
"image_url": "https://m.media-amazon.com/images/I/712Uqa2XjhL._AC_._US550_SCLZZZZZZZ_.jpg",
"item_count": 195,
"title": "thanksgiving fitspo",
"url": "https://www.amazon.com/shop/sydneydelrey/list/35KWG9X334D4Q"
},
{
"hearts": 303,
"id": "amzn1.ideas.3C0MB7YWND2K7",
"image_url": "https://m.media-amazon.com/images/I/71noBGE95aL._AC_._US550_SCLZZZZZZZ_.jpg",
"item_count": 59,
"title": "my amazon boot collection",
"url": "https://www.amazon.com/shop/sydneydelrey/list/3C0MB7YWND2K7"
},
{
"hearts": 516,
"id": "amzn1.ideas.16P4Z5SKOB7EG",
"image_url": "https://m.media-amazon.com/images/I/61vyqQAiYXL._AC_._US550_SCLZZZZZZZ_.jpg",
"item_count": 126,
"title": "my amazon shoe collection",
"url": "https://www.amazon.com/shop/sydneydelrey/list/16P4Z5SKOB7EG"
}
],
"top_creator": true
}
}
},
"cursor": "eyJoIjoic3lkbmV5ZGVscmV5IiwiZCI6Ind3dy5hbWF6b24uY29tIiwidCI6InYyX1d6QXNNVGM1TWpReU16RTBORGd6T0N3aVlXMTZiakV1YVdSbFlYTXVNVTlEUVRoUVZ6UkRUa3BhTWlKZCJ9",
"has_more": true
}Response#
A list of Product objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "not_found",
"message": "The platform says this profile, post or item does not exist.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_e9b8143e1ea1b533953dd339"
}