
How to Scrape ASOS Data: Complete Guide for 2026
Learn how to scrape ASOS product data using Python and Node.js with AlterLab’s API. Covers anti‑bot handling, structured extraction, pricing, and best practices for 2026.
AlterLab handles this automatically — scrape any URL with one API call. No infrastructure required.
Try it freeThis guide covers extracting publicly accessible data. Always review a site's robots.txt and Terms of Service before scraping.
TL;DR
To scrape ASOS with AlterLab, send a request to the API using your preferred language (Python, Node.js, or cURL). For most product pages, start at Tier 1 and let the API auto‑escalate if needed. Use Cortex to extract typed JSON fields like title, price, and rating without writing CSS selectors. Respect robots.txt, limit request rates, and handle pagination responsibly.
Why collect e‑commerce data from ASOS?
ASOS hosts a constantly changing catalog of fashion items, making it a valuable source for:
- Price monitoring: Track discounts and competitor pricing across categories.
- Market research: Identify trending styles, brand performance, and inventory levels.
- Data analysis: Feed product attributes into recommendation engines or trend forecasting models.
These use cases rely on fresh, structured data from publicly visible product listings and detail pages.
Technical challenges
E‑commerce sites like ASOS deploy common anti‑bot protections:
- Rate limiting based on IP or request frequency.
- Header validation (User‑Agent, Accept, Referer).
- Lightweight JavaScript challenges or cookie checks.
- Occasionally, CAPTCHAs on high‑traffic endpoints.
Raw HTTP requests often fail because the server returns a challenge page or blocks the IP. AlterLab’s Smart Rendering API abstracts this complexity: it rotates residential proxies, adjusts headers, and upgrades to a headless browser when JavaScript rendering is required. The service remains compliant—it interacts with the same public endpoints a regular browser would, just at scale.
Quick start with AlterLab API
See the Getting started guide for installation details. Below are ready‑to‑run examples that scrape a sample ASOS product page.
import alterlab
client = alterlab.Client("YOUR_API_KEY")
response = client.scrape("https://www.asos.com/women/dresses/cat/?cid=2609")
print(response.text[:500]) # first 500 chars of HTMLimport { AlterLab } from "alterlab";
const client = new AlterLab({ apiKey: "YOUR_API_KEY" });
const response = await client.scrape("https://www.asos.com/women/dresses/cat/?cid=2609");
console.log(response.text.substring(0, 500));curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-d '{"url": "https://www.asos.com/women/dresses/cat/?cid=2609"}'These snippets return the raw HTML of the page. AlterLab automatically selects the lowest tier that succeeds—typically T1 or T2 for ASOS category pages—and promotes to T3 if a lightweight challenge appears.
Extracting structured data
Once you have the HTML, you can parse it with libraries like BeautifulSoup (Python) or cheerio (Node.js). Example using Python:
from bs4 import BeautifulSoup
import alterlab
client = alterlab.Client("YOUR_API_KEY")
html = client.scrape("https://www.asos.com/product/12345678").text
soup = BeautifulSoup(html, "html.parser")
title = soup.select_one("h1[data-auto-id='product-title']").get_text(strip=True)
price = soup.select_one("span[data-auto-id='product-price']").get_text(strip=True)
rating = soup.select_one("span[data-auto-id='review-average']").get_text(strip=True)
print({"title": title, "price": price, "rating": rating})Node.js equivalent:
import { AlterLab } from "alterlab";
import cheerio from "cheerio";
const client = new AlterLab({ apiKey: "YOUR_API_KEY" });
const html = await client.scrape("https://www.asos.com/product/12345678");
const $ = cheerio.load(html);
const title = $("h1[data-auto-id='product-title']").text().trim();
const price = $("span[data-auto-id='product-price']").text().trim();
const rating = $("span[data-auto-id='review-average']").text().trim();
console.log({ title, price, rating });These selectors target publicly visible data points on ASOS product pages: product title, sale price, and average rating. Adjust the CSS paths if the page layout changes.
Structured JSON extraction with Cortex
For a more robust solution, use AlterLab’s Cortex extraction API to request typed JSON directly. This eliminates the need for custom parsing and handles page variations automatically.
import alterlab
client = alterlab.Client("YOUR_API_KEY")
result = client.extract(
url="https://www.asos.com/product/12345678",
schema={
"type": "object",
"properties": {
"title": {"type": "string"},
"price": {"type": "number"},
"rating": {"type": "number"},
"description": {"type": "string"},
"available_sizes": {"type": "array", "items": {"type": "string"}}
},
"required": ["title", "price"]
}
)
print(result.data) # Typed JSON outputCortex returns a validated JSON object matching the schema. If the page lacks a field, the API returns null for that key, simplifying downstream processing.
Cost breakdown
AlterLab’s pricing is usage‑based, with automatic tier escalation. You only pay for the tier that successfully returns the data.
| Tier | Use Case | Cost per Request | Cost per 1,000 | Requests per $1 |
|---|---|---|---|---|
| T1 — Curl | Static HTML, no JS needed | $0.0002 | $0.20 | 5,000 |
| T2 — HTTP | Standard pages with headers | $0.0003 | $0.30 | 3,333 |
| T3 — Stealth | Protected pages, anti-bot active | $0.002 | $2.00 | 500 |
| T4 — Browser | Full JS rendering required | $0.004 | $4.00 | 250 |
| T5 — CAPTCHA | CAPTCHA solving + JS rendering | $0.02 | $20.00 | 50 |
For ASOS, most category and product pages succeed at T1 or T2. If a page presents a JavaScript challenge, the API may promote to T3. Note: AlterLab auto‑escalates tiers — start at T1 and the API promotes automatically if a lower tier fails. You only pay for the tier that succeeds.
See the full pricing details at AlterLab pricing.
Best practices
- Rate limiting: Even with AlterLab’s proxy pool, keep a reasonable request rate (e.g., 2‑5 requests per second per IP) to avoid triggering anti‑bot thresholds.
- robots.txt: Check
https://www.asos.com/robots.txtfor any disallowed paths. Though AlterLab accesses public pages, respecting the file demonstrates good faith. - Headers: AlterLab sends a realistic browser‑like User‑Agent. Do not override it with a bot‑identifying string unless necessary.
- Error handling: Retry failed requests with exponential backoff. Treat HTTP 429 or 403 as signals to slow down.
- Data freshness: For price monitoring, schedule scrapes during off‑peak hours when site traffic is lower, reducing the chance of encountering challenges.
Scaling up
When you need to scrape thousands of ASOS pages:
- Batch requests: Use the API’s
/v1/scrape/batchendpoint to send up to 100 URLs per HTTP call, reducing connection overhead. - Scheduling: Leverage AlterLab’s Cron‑based scheduling to run recurring scrapes (e.g., every 6 hours) and store results in your data warehouse.
- Handling large datasets: Stream responses to disk or a database instead of loading all HTML into memory. For structured extraction, request JSON output and append each record as it arrives.
- Responsible scaling: Monitor your API spend via the dashboard and set daily budget alerts. Adjust concurrency based on the observed success rate and cost per request.
Was this article helpful?
Frequently Asked Questions
Related Articles

Niche.com Data API: Extract Structured JSON in 2026
Learn how to build a niche.com data api pipeline to extract structured reviews, ratings, and category data into typed JSON using AlterLab's Extract API.
Herald Blog Service

How to Scrape Zalando Data: Complete Guide for 2026
Learn how to scrape Zalando data efficiently using Python and Node.js. This technical guide covers anti-bot bypass, structured extraction, and scaling.
Herald Blog Service

How to Scrape Otto Data: Complete Guide for 2026
<compelling meta description, 150-160 chars, include 'scrape otto'>
Herald Blog Service
Popular Posts
Recommended

How to Scrape AliExpress: Complete Guide for 2026

Why Your Headless Browser Gets Detected (and How to Fix It)

AlterLab vs Firecrawl: In-Depth Review with Benchmarks & Code Examples

How to Scrape Twitter/X Data: Complete Guide for 2026

How to Scrape Cloudflare-Protected Sites in 2026
Newsletter
Scraping insights and API tips. No spam.
Recommended Reading

How to Scrape AliExpress: Complete Guide for 2026

Why Your Headless Browser Gets Detected (and How to Fix It)

AlterLab vs Firecrawl: In-Depth Review with Benchmarks & Code Examples

How to Scrape Twitter/X Data: Complete Guide for 2026

How to Scrape Cloudflare-Protected Sites in 2026
Stay in the Loop
Get scraping insights, API tips, and platform updates. No spam — we only send when we have something worth reading.
Explore AlterLab
Anti-Bot Handling API
Automatic challenge handling for protected sites — works out of the box.
JavaScript Rendering API
Render SPAs and dynamic content with headless Chromium.
Pricing
5-tier pricing from $0.0002/page. 5,000 free requests to start.
Documentation
API reference, SDKs, quickstart guides, and tutorials.
Web Scraping API Resources
Part of the Web Scraping API Documentation cluster
Complete API reference with 5-tier auto-escalation — Curl to challenge resolution.
Pillar pageConfigure Tier 4 browser rendering for SPAs and dynamic content.
Scrape pages behind login using session management.
Real success rates and cost data across all 5 tiers.
MCP Server, Python SDK, and Firecrawl-compatible API for AI agent workflows.