Skip to content

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASOS Scraper API by Piloterr – scrape ASOS data as JSON

ASOS Scraper API

Discord Get API key API docs License: MIT

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

  • ASOS Product API — Read an ASOS product, including the selling price and sizes in stock.
  • ASOS Search API — Search ASOS by keyword and return product cards with the current selling price.

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

Endpoint Path Credits What you get
ASOS Product API /v2/asos/product 1 Read an ASOS product, including the selling price and sizes in stock.
ASOS Search API /v2/asos/search 1 Search ASOS by keyword and return product cards with the current selling price.

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).

ASOS Product API

Read an ASOS product, including the selling price and sizes in stock.

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

Request parameters

Parameter Type Required Description
query string ✅ ASOS product URL (/prd/{id}) or a numeric product id.
country string — Store used when query is a numeric id. fr (default), gb, uk, es, de, au, dk, it, nl, pl, us, se. A full URL keeps its own store.
return_page_source boolean — Return the page HTML instead of the parsed product.

Python example

import json
import os
import requests

response = requests.get(
    "https://api.piloterr.com/v2/asos/product",
    headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
    params={
        "query": "https://www.asos.com/fr/asos-design/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/prd/209342097",
    },
    timeout=120,
)
response.raise_for_status()
data = response.json()

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

TypeScript example

type AsosProduct = {
  sku?: string;
  url?: string;
  brand?: string;
  image?: string;
  price?: number;
  sizes?: {
    sku?: string;
    size?: string;
    is_in_stock?: boolean;
    is_low_in_stock?: boolean;
  }[];
  title?: string;
  colour?: string;
  images?: string[];
  country?: string;
  currency?: string;
  product_id?: number;
  description?: string;
  colour_way_id?: number;
  price_display?: string;
  compare_at_price?: unknown;
  product_group_id?: number;
};

const params = new URLSearchParams({
  "query": "https://www.asos.com/fr/asos-design/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/prd/209342097",
});

const response = await fetch(`https://api.piloterr.com/v2/asos/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 AsosProduct;

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

{"query": "https://www.asos.com/fr/asos-design/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/prd/209342097"}

Output example

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

{
  "sku": "150530032",
  "url": "https://www.asos.com/fr/asos-design/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/prd/209342097",
  "brand": "ASOS DESIGN",
  "image": "https://images.asos-media.com/products/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/209342097-1-black",
  "price": 37.99,
  "sizes": [
    {
      "sku": "150530034",
      "size": "XS - EU 32-34",
      "is_in_stock": true,
      "is_low_in_stock": false
    },
    {
      "sku": "150530036",
      "size": "S - EU 36-38",
      "is_in_stock": true,
      "is_low_in_stock": false
    }
  ],
  "title": "ASOS DESIGN - Robe courte à motif fleuri floqué avec manches évasées - Noir",
  "colour": "Noir",
  "images": [
    "https://images.asos-media.com/products/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/209342097-1-black",
    "https://images.asos-media.com/products/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/209342097-2"
  ],
  "country": "fr",
  "currency": "EUR",
  "product_id": 209342097,
  "description": "Robes par ASOS DESIGN Encolure bateau Manches évasées Coupe classique",
  "colour_way_id": 209342103,
  "price_display": "37,99 €",
  "compare_at_price": null,
  "product_group_id": 210770058
}

Response fields

Field Type Description
sku string
url string
brand string
image string
price number
sizes[] object[]
sizes[].sku string
sizes[].size string
sizes[].is_in_stock boolean
sizes[].is_low_in_stock boolean
title string
colour string
images string[]
country string
currency string
product_id integer
description string
colour_way_id integer
price_display string
compare_at_price object
product_group_id integer

ASOS Search API

Search ASOS by keyword and return product cards with the current selling price.

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

Request parameters

Parameter Type Required Description
query string ✅ Keyword or an ASOS search URL.
country string — Store. fr (default), es, de, au, dk, it, nl, pl, us, se. gb and uk are the UK store with no path prefix.
page number — Page number, starting at 1. Overrides the page already present in a search URL.
return_page_source boolean — Return the page HTML instead of the parsed search.

Python example

import json
import os
import requests

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

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

TypeScript example

type AsosSearch = {
  results?: {
    url?: string;
    image?: string;
    price?: number;
    title?: string;
    currency?: string;
    product_id?: number;
    colour_way_id?: number;
    price_display?: string;
    compare_at_price?: unknown;
  }[];
  pagination?: {
    next?: string;
    page?: number;
    per_page?: number;
    total_pages?: number;
    total_results?: number;
  };
};

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

const response = await fetch(`https://api.piloterr.com/v2/asos/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 AsosSearch;

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

{"query": "robe"}

Output example

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

{
  "results": [
    {
      "url": "https://www.asos.com/fr/asos-design/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/prd/209342097",
      "image": "https://images.asos-media.com/products/asos-design-robe-courte-a-motif-fleuri-floque-avec-manches-evasees-noir/209342097-1-black/?$n_480w…",
      "price": 37.99,
      "title": "ASOS DESIGN - Robe courte à motif fleuri floqué avec manches évasées - Noir",
      "currency": "EUR",
      "product_id": 209342097,
      "colour_way_id": 209342103,
      "price_display": "37,99 €",
      "compare_at_price": null
    }
  ],
  "pagination": {
    "next": "https://www.asos.com/fr/search/?page=2&q=robe",
    "page": 1,
    "per_page": 72,
    "total_pages": 299,
    "total_results": 21485
  }
}

Response fields

Field Type Description
results[] object[]
results[].url string
results[].image string
results[].price number
results[].title string
results[].currency string
results[].product_id integer
results[].colour_way_id integer
results[].price_display string
results[].compare_at_price object
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 — ASOS 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 ASOS?

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/asos/product 1, /v2/asos/search 1. See the Piloterr website for plans.

What data does the ASOS API return?

Each endpoint returns structured JSON: ASOS Product — sku, url, brand, image, price, sizes[]; ASOS Search — results[], results[].url, results[].image, results[].price, results[].title, results[].currency.

How do I paginate ASOS results?

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

Can I target a specific country or language?

Yes, use country — 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.

Official SDKs

Use Piloterr from your own language with a typed client:

SDK Package Install
Node.js @piloterr/sdk npm install @piloterr/sdk
Python piloterr pip install piloterr
Go piloterr-go go get github.com/piloterr/piloterr-go
.NET Piloterr dotnet add package Piloterr
Ruby piloterr gem install piloterr
PHP piloterr/sdk composer require piloterr/sdk
Java piloterr-java build from source, see its README
CLI @piloterr/cli npm install -g @piloterr/cli
MCP server @piloterr/mcp npx -y @piloterr/mcp

Related scrapers

Support


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

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

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors