# Intersport Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/intersport/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/intersport-search | ## Description Search Intersport by keyword and page the sports grid. Cards include title, price, 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/intersport/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Nike search, first card ```json { "results": [ { "url": "https://www.intersport.fr/bleu_marine-maillot_de_football_enfant_equipe_de_francestadium_domicile_26-nike-p-IB5129~6Y9/", "brand": "NIKE", "image": "https://media.intersport.fr/is/image/intersportfr/IB5129_6Y9_Q1?$produit_m$&$product_grey$", "price": 84.99, "title": "Maillot de football enfant Équipe de France Stadium Domicile 26 bleu marine", "rating": 4, "currency": "EUR", "position": 1, "product_id": "IB5129 6Y9", "color_count": 1, "review_count": 30, "price_display": "84,99 €" } ], "pagination": { "next": "https://www.intersport.fr/search/?text=nike&page=1", "page": 1, "per_page": 40, "total_pages": 25, "total_results": 7701 } } ``` ## Documentation ## Overview **Intersport** product search on www.intersport.fr. `query` is a keyword or a listing URL on intersport.fr. The response is `{ results, pagination }`. Each card has the title, the brand, the Intersport reference, the image, and the current price. `price` is the amount as a number. `price_display` is the same amount in euros, with cents written out (`84,99 €`, `1 649,99 €`). A product URL (path ending in `-p-{id}`), an empty query, or another domain returns `400`. A page with no product card returns `404`. ## Quickstart ``` GET https://api.piloterr.com/v2/intersport/search?query=nike GET https://api.piloterr.com/v2/intersport/search?query=nike&page=2 GET https://api.piloterr.com/v2/intersport/search?query=https://www.intersport.fr/nike-produits/ ``` `page` starts at 1. Intersport's own `page` query is zero-based, so page 2 is sent as `page=1`. ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Keyword or an intersport.fr listing URL. A product URL returns `400`. | | `page` | integer | no | Page number, from 1. Default `1`. Page 2 is sent as `page=1`. | | `return_page_source` | boolean | no | When `true`, returns `{"result": "..."}` instead of the parsed JSON. Default `false`. | ## Response fields | Field | Type | Description | |---|---|---| | `results` | array | Product cards on this page. The example keeps the first card of a live page. | | `results[].position` | integer | Place on the page, from 1. | | `results[].title` | string | Name printed on the card, including the color when the card shows it. | | `results[].brand` | string or null | Brand. | | `results[].product_id` | string | Intersport reference, for example `IB5129 6Y9`. | | `results[].url` | string | Product URL. | | `results[].image` | string or null | Main image URL. | | `results[].price` | number | Current price in euros. | | `results[].price_display` | string | Same amount, fully written, for example `84,99 €`. | | `results[].currency` | string | `EUR`. | | `results[].color_count` | integer or null | Number of colors on the card. | | `results[].rating` | integer or null | Filled stars, from 0 to 5. Null when the card has no rating. | | `results[].review_count` | integer or null | Number of reviews. Null when the card has none. | | `results[].original_price` | number | Present only when the card shows a second, higher amount. | | `results[].original_price_display` | string | That second amount, fully written. Omitted when there is no second price. | | `pagination.page` | integer | Page, from 1. | | `pagination.per_page` | integer | Cards parsed on this page. | | `pagination.total_results` | integer or null | Count from the page heading, for example `7701`. | | `pagination.total_pages` | integer or null | Last page number in the pager. | | `pagination.next` | string or null | Next page URL, or null on the last page. | `total_results` comes from the heading and `total_pages` from the pager. On a large search the heading can be higher than `total_pages * per_page`, because the pager stops at the last linked page. ## Example Live call for `query=nike`, first card: ```json { "results": [ { "url": "https://www.intersport.fr/bleu_marine-maillot_de_football_enfant_equipe_de_francestadium_domicile_26-nike-p-IB5129~6Y9/", "brand": "NIKE", "image": "https://media.intersport.fr/is/image/intersportfr/IB5129_6Y9_Q1?$produit_m$&$product_grey$", "price": 84.99, "title": "Maillot de football enfant Équipe de France Stadium Domicile 26 bleu marine", "rating": 4, "currency": "EUR", "position": 1, "product_id": "IB5129 6Y9", "color_count": 1, "review_count": 30, "price_display": "84,99 €" } ], "pagination": { "next": "https://www.intersport.fr/search/?text=nike&page=1", "page": 1, "per_page": 40, "total_pages": 25, "total_results": 7701 } } ``` ## Main use cases - Monitor shoes, skis, and team-sport prices - Page a brand or a sport - Resolve a keyword to a product URL ## Error codes | Code | Meaning | |---|---| | `400` | Empty query, unknown host, a product URL, or `page` below 1. | | `403` | Blocked. | | `404` | No product card on the page. | | `500` | The page could not be fetched. | ## Related endpoints [Intersport Product](https://www.piloterr.com/library/intersport-product): one product page from its URL.