Decathlon
API produit Decathlon
La fiche produit Decathlon complète en JSON : description, images, SKU, GTIN, variantes de coloris, prix avec prix barré, note, nombre d'avis, catégorie et fil d'Ariane. Prend en charge les 7 domaines nationaux (FR, ES, IT, IN, UK, PT, NET). Coûte 2 crédits par requête.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonproduct_urlstringURL produit complète ou relative, depuis n'importe quel domaine Decathlon. À privilégier par rapport à product_id.
Example: /p/chaussures-running-route-polyvalente-homme-kiprun-kipcore-premium-gris-vert/353370/c169c132c141m8958672
product_idstringIdentifiant numérique du produit Decathlon (le nombre de 5 chiffres ou plus présent dans l'URL).
Example: 353370
countrystringrequiredDomaine national : "fr" (France), "es" (Espagne), "it" (Italie), "in" (Inde), "uk" (Royaume-Uni), "pt" (Portugal), "net" (international).
Example: fr
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
product = client.decathlon.product(
product_url="/p/chaussures-running-route-polyvalente-homme-kiprun-kipcore-premium-gris-vert/353370/c169c132c141m8958672",
country="fr"
)
p = product["data"]
price_eur = p["price"] / 100 if p["price"] else None
print(p["name"], p["brand"], f"{price_eur:.2f} EUR")
print(f" Rating: {p['rating']}/5 ({p['review_count']} reviews)")
print(f" Category: {p['category']}")
for bc in p["breadcrumbs"]:
print(f" {bc['position']}. {bc['name']}")Response