# Sephora Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/sephora/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/sephora-search | ## Description Search a European Sephora shop by keyword. Region defaults to France. Page through makeup and skincare cards. The US site is a different page and is not included. ## 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/sephora/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Mascara, France, page 1 ```json { "results": [ { "id": "836334", "url": "https://www.sephora.fr/p/vertigo---coffret-vertigo-mascara-836334.html", "name": "Vertigo", "size": "10 ml + 3.9 ml + 3.9 ml", "badge": "Nouveauté", "brand": "ARMANI", "image": "https://media.sephora.eu/content/dam/gdam/europe/digital/pim/published/A/ARMANI/836334/414410-media_swatch-0.jpg?scaleWidth=3840&scaleMode=fit", "price": 95, "rating": 4.7, "region": "fr", "currency": "EUR", "subtitle": "Coffret Vertigo mascara", "review_count": 454, "price_display": "95,00 €", "call_to_action": "Ajouter au panier" } ], "pagination": { "next": "https://www.sephora.fr/recherche/?q=mascara&page=2", "page": 1, "per_page": 24, "total_pages": 9, "total_results": 215 } } ``` ## Documentation ## Overview Search Sephora for makeup, skincare, fragrance, and hair. Pass a word such as mascara, or paste a search URL from a Sephora shop. You get a page of product cards with the brand, name, size, price, rating, and product link. Shops: `fr`, `de`, `es`, `it`, `pt`, `pl`, `cz`, `ro`, `dk`, `se`, `tr`, `hr`, `gr`, `ch-de`, `ch-fr`. The default shop is France. A full URL picks the shop. When you pass a keyword, set `region` to `fr` for France or `de` for Germany. ## Quickstart ``` GET https://api.piloterr.com/v2/sephora/search?query=mascara GET https://api.piloterr.com/v2/sephora/search?query=mascara®ion=fr&page=2 GET https://api.piloterr.com/v2/sephora/search?query=mascara®ion=de GET https://api.piloterr.com/v2/sephora/search?query=https://www.sephora.fr/recherche/?q=mascara ``` ## Parameters | Parameter | Type | Required | Placeholder | Description | |---|---|---|---|---| | `query` | string | yes | `mascara` | A product word, or a full Sephora search URL | | `region` | string | no | `fr` | Shop code. `fr` is France, `de` is Germany. Ignored when `query` is a URL | | `page` | integer | no | `2` | Page number, starting at 1. Page 2 is the next set of products | | `return_page_source` | boolean | no | `false` | Return the rendered HTML instead of JSON | ## Response fields | Field | Type | Description | |---|---|---| | `results[].id` | string | Product id | | `results[].name` / `brand` | string | Product name and brand | | `results[].price` / `price_display` | number / string | Numeric price and the label on the card | | `results[].currency` / `region` | string | Currency code and shop | | `results[].rating` / `review_count` | number | Average rating and number of reviews | | `results[].url` | string | Product page URL | | `pagination.page` / `per_page` | integer | Current page and how many cards came back | | `pagination.total_results` / `total_pages` | integer | Totals read from the page | | `pagination.next` | string or null | URL of the next page | ## Main use cases - Track mascara or serum prices in France and Germany - Build a beauty assortment per country shop - Take a product id into Product ## Error codes | Code | Meaning | |---|---| | 400 | Missing query, bad page, or unknown shop | | 401 | Missing API key | | 404 | The page had no product cards | | 500 | The page could not be rendered | ## Related endpoints [Sephora Product](https://www.piloterr.com/library/sephora-product)