# Sephora Product ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/sephora/product` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/sephora-product | ## Description Read one European Sephora product by id or product URL. Set region when you are not on the French shop. ## 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/product' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Midnight Espresso, France ```json { "id": "831955", "sku": "831955", "url": "https://www.sephora.fr/p/midnight-espresso---eau-de-parfum-au-cafe-831955.html", "name": "Midnight Espresso - Eau de Parfum", "size": "75 ml", "badge": "Nouveauté", "brand": "KILIAN PARIS", "price": 145, "images": [ "https://media.sephora.eu/content/dam/gdam/europe/digital/pim/published/K/KILIAN_PARIS/831955/410806-media_swatch-0.jpg?scaleWidth=750&scaleHeight=750&scaleMode=fit" ], "rating": 4.6, "region": "fr", "currency": "EUR", "in_stock": true, "variants": [ { "sku": "831955", "url": "https://www.sephora.fr/p/midnight-espresso---eau-de-parfum-au-cafe-831955.html", "name": "Midnight Espresso - Eau de Parfum - 75 ml", "size": "75 ml", "price": 145, "currency": "EUR", "in_stock": true, "selected": true, "price_display": "145,00 €" } ], "brand_url": "https://www.sephora.fr/marques/de-a-a-z/kilian-paris-kilia/", "master_id": "P1000215059", "unit_price": 193.33, "review_count": 237, "price_display": "145,00 €", "unit_price_display": "193,33 € / 100ml" } ``` ## Documentation ## Overview Read one Sephora product sheet. Pass a product URL or a product id such as 831955. You get the name, brand, price, size, rating, description, and the size variants. ``` https://www.sephora.fr/p/midnight-espresso---eau-de-parfum-au-cafe-831955.html ``` Shops: `fr`, `de`, `es`, `it`, `pt`, `pl`, `cz`, `ro`, `dk`, `se`, `tr`, `hr`, `gr`, `ch-de`, `ch-fr`. A full URL picks the shop. A bare id uses `region`, which defaults to France. Use `fr` or `de`. ## Quickstart ``` GET https://api.piloterr.com/v2/sephora/product?query=https://www.sephora.fr/p/midnight-espresso---eau-de-parfum-au-cafe-831955.html GET https://api.piloterr.com/v2/sephora/product?query=825955®ion=de GET https://api.piloterr.com/v2/sephora/product?query=831955®ion=fr ``` ## Parameters | Parameter | Type | Required | Placeholder | Description | |---|---|---|---|---| | `query` | string | yes | `https://www.sephora.fr/p/midnight-espresso---eau-de-parfum-au-cafe-831955.html` | Product URL, or a product id such as `831955` | | `region` | string | no | `de` | Shop when `query` is only an id. `fr` or `de`. Default France | | `return_page_source` | boolean | no | `false` | Return the rendered HTML instead of JSON | ## Response fields | Field | Type | Description | |---|---|---| | `id` / `sku` | string | Selected variant id | | `name` / `brand` | string | Product name and brand | | `price` / `price_display` | number / string | Numeric price and the label on the page | | `currency` / `region` | string | Currency code and shop | | `rating` / `review_count` | number | Average rating and review count | | `in_stock` | boolean | Selected variant availability | | `variants[]` | array | Sizes with price and URL | ## Main use cases - Open a fragrance or makeup sheet - Keep price and rating for that shop - Read the same product id in France and Germany ## Error codes | Code | Meaning | |---|---| | 400 | Missing query, bad URL, or unknown shop | | 401 | Missing API key | | 404 | The sheet could not be parsed | | 500 | The page could not be rendered | ## Related endpoints [Sephora Search](https://www.piloterr.com/library/sephora-search)