Ficha de produto Darty em www.darty.com.
query é um URL de produto em /nav/achat/ que termina em .html. A resposta é um objeto plano: preço, marca, vendedor, nota, disponibilidade e características.
Uma palavra-chave ou um URL de pesquisa devolve 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
Exemplo (URL de produto):
https://www.darty.com/nav/achat/petit_electromenager/aspirateur-balai_main/aspirateur_balai/dyson_piston_animal.html
query é obrigatório. Só www.darty.com é aceite.
| Forma |
Exemplo |
Efeito |
| URL de produto |
https://www.darty.com/nav/achat/petit_electromenager/aspirateur-balai_main/aspirateur_balai/dyson_piston_animal.html |
Ficha de produto. O caminho é /nav/achat/...html. |
Uma palavra-chave devolve 400. Um URL de pesquisa devolve 400. Outro host devolve 400. Um valor vazio devolve 400.
| Parameter |
Tipo |
Obrigatório |
Descrição |
query |
string |
sim |
URL de produto /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 é a oferta nova principal, a primeira oferta com preço no separador novo. Os outros vendedores não se misturam no objeto.
availability é a linha de stock. delivery é a data de entrega ou a linha de entrega grátis.
brand vem dos dados de produto da página.
- Verificar se um modelo está em loja
- Ler o preço de venda e o riscado quando a Darty o mostra
- Enriquecer um catálogo com GTIN, imagens e vendedor
| Code |
Significado |
400 |
Pedido vazio, host desconhecido, palavra-chave ou URL de pesquisa |
403 |
Bloqueado |
404 |
Ficha sem preço |
500 |
Falha do pedido |
Darty Pesquisa