Fiche produit Darty sur www.darty.com.
query est une URL produit sous /nav/achat/ qui se termine par .html. La réponse est un objet plat : prix, marque, vendeur, note, disponibilité et caractéristiques.
Un mot-clé ou une URL de recherche renvoie 400.
GET https://api.piloterr.com/v2/darty/product?query=https://www.darty.com/nav/achat/petit_electromenager/aspirateur-balai_main/aspirateur_balai/dyson_piston_animal.html
Exemple (URL produit) :
https://www.darty.com/nav/achat/petit_electromenager/aspirateur-balai_main/aspirateur_balai/dyson_piston_animal.html
query est obligatoire. Seul www.darty.com est accepté.
| Forme |
Exemple |
Effet |
| URL produit |
https://www.darty.com/nav/achat/petit_electromenager/aspirateur-balai_main/aspirateur_balai/dyson_piston_animal.html |
Fiche produit. Le chemin est /nav/achat/...html. |
Un mot-clé renvoie 400. Une URL de recherche renvoie 400. Un autre hôte renvoie 400. Une valeur vide renvoie 400.
| Paramètre |
Type |
Obligatoire |
Description |
query |
string |
oui |
URL produit /nav/achat/...html |
| Field |
Type |
Description |
codic |
string | null |
Darty product code |
gtin |
string | null |
GTIN-13 |
name |
string |
Product name |
brand |
string | null |
Brand |
category |
string | null |
Category |
reference |
string | null |
Model reference |
url |
string |
Canonical product URL |
description |
string | null |
Description |
image |
string | null |
Main image |
images |
string[] |
Image URLs |
rating |
number | null |
Rating out of 5 |
rating_display |
string | null |
Rating as shown |
review_count |
integer | null |
Number of reviews |
seller |
string | null |
Seller of the main offer |
condition |
string | null |
Condition of the main offer |
price |
number |
Main offer price |
price_display |
string |
Price as shown |
currency |
string |
EUR |
availability |
string | null |
Stock line |
delivery |
string | null |
Delivery line |
specifications |
array |
Rows { name, value } |
price est l'offre neuve principale, la première offre avec un prix dans l'onglet neuf. Les autres vendeurs ne sont pas mélangés dans l'objet.
availability est la ligne de stock. delivery est la date de livraison ou la ligne de livraison gratuite.
brand vient des données produit de la page.
- Vérifier si un modèle est en stock en magasin
- Récupérer le prix de vente et le prix barré quand Darty l'affiche
- Enrichir un catalogue avec GTIN, images et vendeur
| Code |
Signification |
400 |
Requête vide, hôte inconnu, mot-clé, ou URL de recherche |
403 |
Bloqué |
404 |
Fiche sans prix |
500 |
Échec de la récupération |
Darty Recherche