Skip to content

About

Decathlon Scraper API by Piloterr: product, search data from Decathlon as structured JSON. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decathlon Scraper API by Piloterr – scrape Decathlon data as JSON

Decathlon Scraper API

Discord Get API key API docs License: MIT

The Piloterr Decathlon Scraper API lets you extract public data from Decathlon as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:

  • Decathlon Product API — Read one Decathlon product from a product URL, a product path, or a keyword.
  • Decathlon Search API — Search a Decathlon shop with a keyword or a search URL.

Use it for price monitoring, assortment tracking, competitor analysis, product research or catalog enrichment.

Endpoint Path Credits What you get
Decathlon Product API /v2/decathlon/product 1 Read one Decathlon product from a product URL, a product path, or a keyword. A keyword uses the first search hit. Set region when the query does not already name the shop.
Decathlon Search API /v2/decathlon/search 1 Search a Decathlon shop with a keyword or a search URL. Choose the country with region, or let a full link pick the shop, then page through titles, prices, and product links.

Table of contents

How it works

  1. Create a free Piloterr account and copy your API key from the dashboard.
  2. Send a GET (or POST) request to https://api.piloterr.com/v2/... with the header x-api-key: YOUR_API_KEY.
  3. Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests        # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`

Every endpoint accepts both GET (query string) and POST (JSON body with the same fields).

Decathlon Product API

Read one Decathlon product from a product URL, a product path, or a keyword. A keyword uses the first search hit. Set region when the query does not already name the shop.

GET | POST https://api.piloterr.com/v2/decathlon/product · 1 credit per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Product link, a /p/... or /products/... path, or a keyword. A keyword opens the first search hit. A search link returns 400.
region string — Country shop when query is a keyword or a path. Default is fr. A full product link picks the shop.
return_page_source boolean — Set to true to get the raw page body in result.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/decathlon/product",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-dalu-recycle-bleu/330041/c98m8612536",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type DecathlonProduct = {
  sku?: string;
  url?: string;
  name?: string;
  brand?: string;
  color?: string;
  price?: number;
  images?: string[];
  rating?: number;
  region?: string;
  currency?: string;
  in_stock?: boolean;
  variants?: {
    sku?: string;
    url?: string;
    name?: string;
    color?: string;
    price?: number;
    currency?: string;
    in_stock?: boolean;
    image_url?: string;
    product_id?: string;
    price_display?: string;
  }[];
  image_url?: string;
  product_id?: string;
  breadcrumbs?: {
    url?: string;
    name?: string;
  }[];
  description?: string;
  review_count?: number;
  price_display?: string;
};

const params = new URLSearchParams({
  "query": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-dalu-recycle-bleu/330041/c98m8612536",
});

const response = await fetch(`https://api.piloterr.com/v2/decathlon/product?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as DecathlonProduct;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/decathlon/product
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-dalu-recycle-bleu/330041/c98m8612536"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "sku": "c98m8612536",
  "url": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-dalu-recycle-bleu/330041/c98m8612536",
  "name": "Gourde alu 1L avec bouchon instantané, composée à 100% d’alu recyclé, bleu",
  "brand": "QUECHUA",
  "color": "bleu canard",
  "price": 9.99,
  "images": [
    "https://contents.mediadecathlon.com/p2579584/k$6ca4ddf66bdc61cefd58225cb14ae926/picture.jpg",
    "https://contents.mediadecathlon.com/p2851411/k$c612714aa771cbc61caf653fce5a5761/picture.jpg"
  ],
  "rating": 4.58,
  "region": "fr",
  "currency": "EUR",
  "in_stock": true,
  "variants": [
    {
      "sku": "c98m8612536",
      "url": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-d-alu-recycle-bleu/330041/c98m8612536",
      "name": "Gourde alu 1L avec bouchon instantané, composée à 100% d’alu recyclé, bleu",
      "color": "bleu canard",
      "price": 9.99,
      "currency": "EUR",
      "in_stock": true,
      "image_url": "https://contents.mediadecathlon.com/p2579584/k$6ca4ddf66bdc61cefd58225cb14ae926/picture.jpg",
      "product_id": "330041",
      "price_display": "9,99 €"
    },
    {
      "sku": "c261m8914342",
      "url": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-d-alu-recycle-vert/330041/c261m8914342",
      "name": "Gourde alu 1L avec bouchon instantané, composée à 100% d’alu recyclé, vert",
      "color": "vert eucalyptus",
      "price": 9.99,
      "currency": "EUR",
      "in_stock": true,
      "image_url": "https://contents.mediadecathlon.com/p2851411/k$c612714aa771cbc61caf653fce5a5761/picture.jpg",
      "product_id": "330041",
      "price_display": "9,99 €"
    }
  ],
  "image_url": "https://contents.mediadecathlon.com/p2579584/k$6ca4ddf66bdc61cefd58225cb14ae926/picture.jpg",
  "product_id": "330041",
  "breadcrumbs": [
    {
      "url": "https://www.decathlon.fr/",
      "name": "Home"
    },
    {
      "url": "https://www.decathlon.fr/tous-les-sports",
      "name": "Tous les sports"
    }
  ],
  "description": "Résistante, en aluminium, cette gourde avec son bouchon verrouillable à ouverture rapide vous accompagnera dans vos randonnées et vos dép…",
  "review_count": 4700,
  "price_display": "9,99 €"
}

Response fields

Field Type Description
sku string
url string
name string
brand string
color string
price number
images string[]
rating number
region string
currency string
in_stock boolean
variants[] object[]
variants[].sku string
variants[].url string
variants[].name string
variants[].color string
variants[].price number
variants[].currency string
variants[].in_stock boolean
variants[].image_url string
variants[].product_id string
variants[].price_display string
image_url string
product_id string
breadcrumbs[] object[]

Decathlon Search API

Search a Decathlon shop with a keyword or a search URL. Choose the country with region, or let a full link pick the shop, then page through titles, prices, and product links.

GET | POST https://api.piloterr.com/v2/decathlon/search · 1 credit per request · Full reference

Request parameters

Parameter Type Required Description
query string ✅ Keyword, or a Decathlon search link.
region string — Country shop. Default is fr. A full link in query picks the shop, and a conflicting region returns 400.
page number — Page number starting at 1.
return_page_source boolean — Set to true to get the raw HTML in result.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/decathlon/search",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "gourde",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])

TypeScript example

type DecathlonSearch = {
  results?: {
    sku?: string;
    url?: string;
    name?: string;
    price?: number;
    rating?: number;
    region?: string;
    currency?: string;
    image_url?: string;
    product_id?: string;
    color_count?: number;
    review_count?: number;
    price_display?: string;
  }[];
  pagination?: {
    next?: string;
    page?: number;
    per_page?: number;
    total_pages?: number;
    total_results?: number;
  };
};

const params = new URLSearchParams({
  "query": "gourde",
});

const response = await fetch(`https://api.piloterr.com/v2/decathlon/search?${params}`, {
  headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);

const data = (await response.json()) as DecathlonSearch;

console.log(JSON.stringify(data, null, 2).slice(0, 2000));
POST variant
POST https://api.piloterr.com/v2/decathlon/search
x-api-key: YOUR_API_KEY
Content-Type: application/json

{"query": "gourde"}

Output example

Example response from the API reference, abridged — real values depend on the page you scrape.

{
  "results": [
    {
      "sku": "c98m8612536",
      "url": "https://www.decathlon.fr/p/gourde-alu-1l-avec-bouchon-instantane-composee-a-100percent-dalu-recycle-bleu/330041/c98m8612536",
      "name": "Gourde alu 1L avec bouchon instantané, composée à 100% d’alu recyclé, bleu",
      "price": 9.99,
      "rating": 4.6,
      "region": "fr",
      "currency": "EUR",
      "image_url": "https://contents.mediadecathlon.com/p2579584/k$6ca4ddf66bdc61cefd58225cb14ae926/picture.jpg?format=auto&f=3000x0",
      "product_id": "330041",
      "color_count": 3,
      "review_count": 4700,
      "price_display": "9,99 €"
    }
  ],
  "pagination": {
    "next": "https://www.decathlon.fr/search?Ntt=gourde&from=40&size=40",
    "page": 1,
    "per_page": 40,
    "total_pages": 25,
    "total_results": 5274
  }
}

Response fields

Field Type Description
results[] object[]
results[].sku string
results[].url string
results[].name string
results[].price number
results[].rating number
results[].region string
results[].currency string
results[].image_url string
results[].product_id string
results[].color_count integer
results[].review_count integer
results[].price_display string
pagination object
pagination.next string
pagination.page integer
pagination.per_page integer
pagination.total_pages integer
pagination.total_results integer

Code examples in other languages

Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.

Language Product Search
cURL (Bash) product search
PHP product search
C# product search
Go product search
Java product search
Ruby product search
Node.js product search

Practical use cases

  • Price monitoring — Track prices, promotions and availability over time to react to competitors.
  • Assortment & catalog tracking — Follow new products, delisted items and category changes.
  • Competitor analysis — Benchmark ranges, brands and positioning across retailers.
  • Product research — Spot best-sellers and trends from search results.
  • Catalog enrichment — Pull titles, images and attributes into your PIM or marketplace listings.

Why Piloterr?

  • No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
  • Structured JSON — stable, documented fields instead of brittle HTML selectors.
  • Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
  • One API key, hundreds of sources — Decathlon plus many other e-commerce, search and company data endpoints in the Piloterr library.
  • Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.

FAQ

Is it legal to scrape Decathlon?

Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.

Do I need proxies or a headless browser?

No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.

How much does a request cost?

Credits per call: /v2/decathlon/product 1, /v2/decathlon/search 1. See the Piloterr website for plans.

What data does the Decathlon API return?

Each endpoint returns structured JSON: Decathlon Product — sku, url, name, brand, color, price; Decathlon Search — results[], results[].sku, results[].url, results[].name, results[].price, results[].rating.

How do I paginate Decathlon results?

Use the page parameter and keep requesting while the response indicates more results.

Can I target a specific country or language?

Yes, use region — see the parameter tables above for accepted values.

Can I get the raw HTML instead of JSON?

Yes. Set return_page_source=true and the response becomes {"result": "..."} with the page source.

Which languages are supported?

Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.

Related scrapers

Support


Piloterr
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.

Decathlon is a trademark of its respective owner. This repository is not affiliated with or endorsed by Decathlon. Examples are released under the MIT license.

About

Decathlon Scraper API by Piloterr: product, search data from Decathlon as structured JSON. Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby examples.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors