# Darty Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/darty/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/darty-search | ## Description Search Darty by keyword or search URL and page through the listing. Each card has title, price, brand, seller, and product link. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/darty/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Aspirateur Rowenta ```json { "results": [ { "url": "https://www.darty.com/nav/achat/petit_electromenager/aspirateur-avec_sac_sans_sac/aspirateur_sans_sac/rowenta_ro4b36.html", "name": "Aspirateur sans sac Rowenta COMPACT POWER XXL Modele Parquet RO4B36EA", "badge": "Bon Plan 21%", "brand": "Rowenta", "codic": "7522991", "image": "https://image.darty.com/server?type=image&source=photos%2F2024%2F04%2F20%2F7522991A_211747457.jpg&width=230&height=345", "price": 119.99, "pickup": "Retrait dès le 05/11", "rating": 4.4, "seller": "Darty", "category": "Aspirateur sans sac", "currency": "EUR", "delivery": "Livré dès le 05/11", "position": 1, "reference": "COMPACT POWER XXL Modele Parquet RO4B36EA", "was_price": 151.99, "shipped_by": null, "review_count": 461, "price_display": "119,99 €", "rating_display": "4,4/5", "discount_display": "21%", "reparability_index": 9.8 } ], "pagination": { "next": "https://www.darty.com/nav/recherche?s=relevence&text=aspirateur&o=30", "page": 1, "per_page": 30, "total_pages": 300, "total_results": 17644 } } ``` ## Documentation ## Overview **Darty** product search on www.darty.com. `query` is a keyword or a `/nav/recherche` URL. `page` starts at 1. The response is `{ results, pagination }`. A product URL returns `400`. ## Quickstart ``` GET https://api.piloterr.com/v2/darty/search?query=aspirateur ``` ## `query` **Example (keyword):** ``` aspirateur ``` **Example (search URL):** ``` https://www.darty.com/nav/recherche?text=aspirateur ``` `query` is required. Only `www.darty.com` is accepted. `page` replaces the offset already present in a search URL. | Form | Example | What happens | |---|---|---| | Keyword | `aspirateur` | Search results for that keyword. | | Search URL | `https://www.darty.com/nav/recherche?text=aspirateur` | That results page. | A product URL returns `400`. Another host returns `400`. An empty value returns `400`. ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Keyword or `/nav/recherche` URL | | `page` | integer | no | Page number starting at 1. Example: `2` returns the next 30 products. Default 1. | ## Response fields | Field | Type | Description | |---|---|---| | `results` | array | Product cards | | `results[].position` | integer | Position on the page, from 1 | | `results[].codic` | string \| null | Darty product code | | `results[].name` | string | Product name | | `results[].brand` | string \| null | Brand | | `results[].category` | string \| null | Family shown on the card | | `results[].reference` | string \| null | Model reference | | `results[].url` | string | Product URL | | `results[].image` | string \| null | Card image | | `results[].rating` | number \| null | Rating out of 5 | | `results[].rating_display` | string \| null | Rating as shown | | `results[].review_count` | integer \| null | Number of reviews | | `results[].seller` | string \| null | Seller name | | `results[].shipped_by` | string \| null | Shipper when it differs from the seller | | `results[].price` | number \| null | Current price | | `results[].price_display` | string \| null | Price as shown | | `results[].was_price` | number \| null | Crossed-out price | | `results[].discount_display` | string \| null | Discount badge when the card has one | | `results[].currency` | string \| null | `EUR` | | `results[].badge` | string \| null | Promo label when the card has one | | `results[].delivery` | string \| null | Delivery line | | `results[].pickup` | string \| null | Store pickup line | | `results[].reparability_index` | number \| null | French repair index | | `pagination.page` | integer | Current page | | `pagination.per_page` | integer | Page size | | `pagination.total_results` | integer \| null | Result count shown by Darty | | `pagination.total_pages` | integer \| null | Last page linked by Darty | | `pagination.next` | string \| null | Next page URL | ## Notes The price is the current new-product price on the card. `was_price` is set when the card shows a crossed-out price. Refurbished offers nested under a card are not separate results. `seller` is the selling name. `shipped_by` is set when another party ships the item. `total_pages` is the last page Darty links, which can be lower than `total_results / per_page`. ## Main use cases - Watch French appliance and TV prices - See which offers are sold by Darty and which are marketplace - Resolve a keyword to a product page before calling Product ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, or a product URL | | `403` | Blocked | | `404` | No product cards | | `500` | Fetch failed | ## Related endpoints [Darty Product](https://www.piloterr.com/library/darty-product)