Ofertas de Amazon
Amazon Deals devuelve datos estructurados de la página “Today’s Deals” de Amazon, incluyendo ofertas por tiempo limitado, insignias de cupones y precios con descuento.
Endpoint
Sección titulada «Endpoint» GET https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=todays-deals
Parámetros
Sección titulada «Parámetros»| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | yes | Tu clave de API de SERP (compartida con Amazon). |
engine | string | yes | Debe ser amazon. |
type | string | yes | Debe ser todays-deals. |
category_id | string | yes | El ID de categoría para acotar las ofertas (por ejemplo, 15684181 para Automotive). |
domain | string | no | Dominio del marketplace, por defecto amazon.com. |
device | desktop | mobile | no | Dispositivo simulado. |
Ejemplo de solicitud
Sección titulada «Ejemplo de solicitud»curl "https://ecom.shifter.io/v1?engine=amazon&api_key=YOUR_API_KEY&type=todays-deals&category_id=15684181"import requests
params = { "engine": "amazon", "api_key": "YOUR_API_KEY", "type": "todays-deals", "category_id": "15684181",}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: 'todays-deals', category_id: '15684181',});
const res = await fetch(url);const data = await res.json();Ejemplo de respuesta
Sección titulada «Ejemplo de respuesta»{ "search_parameters": { "engine": "amazon", "amazon_domain": "amazon.com", "type": "todays-deals", "category_id": "15684181" }, "category_results": { "product_results": [ { "position": 1, "product_id": "B081T7N948", "title": "Cleaning Gel for Car, Car Cleaning Kit", "link": "/dp/B081T7N948", "price": "$5.94", "price_raw": "$9.99", "currency": "$", "rating": { "rating": "4.1 out of 5 stars", "total_ratings": 27889 }, "deal": "Limited time deal" }, { "position": 2, "product_id": "B07Q6CPQK4", "title": "Govee Interior Lights for Car", "price": "$19.99", "coupon": { "badge_text": "Save $2.00", "description": "$2.00 coupon applied at checkout" } } ] }}