Recherche Amazon
Amazon Search renvoie des résultats structurés pour toute requête par mot-clé, incluant les listes organiques, les emplacements sponsorisés, les recherches associées et les métadonnées de pagination.
Endpoint
Section intitulée « Endpoint » GET https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=search
Parameters
Section intitulée « Parameters »| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | yes | Votre clé API SERP (partagée avec Amazon). |
engine | string | yes | Doit être amazon. |
type | string | yes | Doit être search. |
q | string | yes | Les mots-clés de recherche. |
domain | string | no | Domaine de la marketplace, par défaut amazon.com. |
device | desktop | mobile | no | Appareil simulé. |
page | integer | no | Numéro de la page de résultats. |
Example request
Section intitulée « Example request »curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=search&q=memory%20card"import requests
params = { "engine": "amazon", "api_key": "YOUR_API_KEY", "type": "search", "q": "memory card",}r = requests.get("https://ecom.shifter.io/v1", params=params)data = r.json()import fetch from 'node-fetch';
const url = 'https://ecom.shifter.io/v1?' + new URLSearchParams({ engine: 'amazon', api_key: 'YOUR_API_KEY', type: 'search', q: 'memory card',});
const res = await fetch(url);const data = await res.json();Example response
Section intitulée « Example response »{ "search_metadata": { "engine": "amazon", "amazon_domain": "amazon.com", "type": "search", "q": "memory card" }, "search_information": { "organic_results_state": "Results for exact spelling", "total_results": 40000, "query_displayed": "memory card" }, "search_results": [ { "position": 1, "product_id": "B08GY9NYRM", "title": "SanDisk 128GB Ultra microSDXC UHS-I Memory Card", "link": "https://www.amazon.com/dp/B08GY9NYRM", "thumbnail": "https://m.media-amazon.com/images/I/71...jpg", "price": "$16.99", "rating": { "rating": "4.8 out of 5 stars", "total_ratings": 412033 } } ], "top_sponsored": [], "related_searches": ["sd card", "micro sd card 128gb"], "pagination": { "current_page": 1, "next_page": 2 }}