
How to Scrape Flipkart Data: Complete Guide for 2026
How to Scrape Flipkart Data: Complete Guide for 2026 This guide covers extracting publicly accessible data. Always review a site's robots.txt and Terms of...
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.
Run a live request from this page. No sign-up needed.
TL;DR
Scrape Flipkart product pages using AlterLab's API with automatic anti-bot handling. Start with T1/T2 tiers for static content, escalate to T3 for JS-protected pages. Extract structured data via CSS selectors or Cortex AI for typed JSON output. Costs begin at $0.0002/request.
Why collect e-commerce data from Flipkart?
Flipkart hosts over 150 million products across categories like electronics, fashion, and home goods. Engineering teams scrape this public data for:
- Price intelligence: Track competitor pricing fluctuations for dynamic pricing models
- Market research: Analyze product availability, category trends, and seasonal demand patterns
- Data enrichment: Enhance internal catalogs with standardized product attributes from public listings
Technical challenges
Flipkart employs layered anti-bot protections common to major e-commerce sites:
- Rate limiting based on IP and request patterns
- Header validation (User-Agent, Accept, Referer checks)
- Occasional JavaScript rendering requirements for dynamic content
- Bot detection via behavioral analysis and fingerprinting
Raw HTTP requests frequently receive 403/429 responses or altered HTML. AlterLab's Smart Rendering API manages these challenges through:
- Automatic proxy rotation with residential IPs
- Realistic browser fingerprinting
- Header normalization and cookie handling
- Tiered rendering escalation (curl → browser) without code changes
Quick start with AlterLab API
Begin by installing the SDK and making your first request. See the Getting started guide for detailed setup.
Python example
from alterlab import AlterLabSync
client = AlterLabSync("YOUR_API_KEY")
response = client.scrape("https://www.flipkart.com/apple-iphone-15-pro-max-black-titanium-256-gb/p/itmdc5308fa78822")
print(response["content"][:500]) # First 500 chars of HTMLNode.js example
import { AlterLab } from "alterlab";
const client = new AlterLab({ apiKey: "YOUR_API_KEY" });
const response = await client.scrape({ url: "https://www.flipkart.com/apple-iphone-15-pro-max-black-titanium-256-gb/p/itmdc5308fa78822" });
console.log(response.text.slice(0, 500));cURL example
curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.flipkart.com/apple-iphone-15-pro-max-black-titanium-256-gb/p/itmdc5308fa78822"}'Note: Flipkart product pages typically succeed at T2/T3 tiers. The API auto-escalates if initial attempts fail—you only pay for the successful tier.
Extracting structured data
Parse relevant data points using CSS selectors in your post-processing layer. Common Flipkart selectors:
| Data Point | CSS Selector | Example Value |
|---|---|---|
| Product Title | h1 span.B_NuCI | Apple iPhone 15 Pro Max |
| Price | div._30jeq3._16Jk6d | ₹1,44,900 |
| Rating | div._3LWZlK._1BLPMq | 4.5 |
| Availability | div._16FRp0 | In Stock |
| Image URL | img._396cs4._3exPp9 | https://rukminim2.flixcart.com/... |
Extract these in Python:
from parsel import Selector
selector = Selector(text=response.text)
data = {
"title": selector.css("h1 span.B_NuCI::text").get(),
"price": selector.css("div._30jeq3._16Jk6d::text").get(),
"rating": selector.css("div._3LWZlK._1BLPMq::text").get(),
"in_stock": "In Stock" in selector.css("div._16FRp0::text").get()
}Structured JSON extraction with Cortex
For guaranteed typed output without selector maintenance, use AlterLab's Cortex AI extraction. Define a JSON schema and receive validated data:
from alterlab import AlterLabSync
client = AlterLabSync("YOUR_API_KEY")
result = client.scrape(
url="https://www.flipkart.com/apple-iphone-15-pro-max-black-titanium-256-gb/p/itmdc5308fa78822",
extraction_schema={
"type": "object",
"properties": {
"title": {"type": "string"},
"price": {"type": "number"}, # Converted from string like "₹1,44,900" → 144900
"rating": {"type": "number"},
"availability": {"type": "string"},
"brand": {"type": "string"},
"storage": {"type": "string"}
},
"required": ["title", "price"]
}
)
print(result["filtered_content"])
# Output: {"title": "Apple iPhone 15 Pro Max", "price": 144900, "rating": 4.5, ...}Cortex handles:
- Currency/number parsing
- Missing field normalization
- Schema validation and type coercion
- Fallback to traditional selectors when AI confidence is low
Cost breakdown
Flipkart's anti-bot landscape typically requires T2-T3 tiers. AlterLab auto-escalates from T1—you pay only for the tier that successfully retrieves 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 |
View detailed pricing including volume discounts. Example monthly cost for 100K Flipkart product scrapes (avg T3): $200.
Best practices
- Rate limiting: Start with 1 request/second per IP, adjust based on response headers
- Robots.txt compliance: Check
https://www.flipkart.com/robots.txtfor disallowed paths - Error handling: Implement
Was this article helpful?
Frequently Asked Questions
Related Articles

Oxylabs Alternative: Practical Developer Guide for Web Scraping Pipelines
Build reliable scraping pipelines with anti-bot handling, auto-escalation, and monitoring using a practical AltLab-compatible solution. Follow the 3-step setup, integrate with your existing workflow, and control costs at $0.0002 per request.
Herald Blog Service

Python aiohttp vs. httpx for High-Throughput Web Scraping
A benchmark‑driven comparison of aiohttp and httpx for asynchronous scraping, with concrete numbers, code snippets, and guidance on when to choose each library.
Herald Blog Service

MCP Servers Explained: How AI Tools Access the Real-Time Web in 2026
Learn how Model Context Protocol servers enable AI agents to fetch live data via scraping APIs, with architecture, code examples, and best practices for 2026.
Herald Blog Service
Popular Posts
Recommended

Selenium Bot Detection: Why You Get Flagged and How to Fix It

How to Scrape AliExpress: Complete Guide for 2026

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

Mastering Playwright Stealth for Agentic Web Workflows

Playwright Bot Detection: What Actually Works in 2026
Newsletter
Scraping insights and API tips. No spam.
Recommended Reading

Selenium Bot Detection: Why You Get Flagged and How to Fix It

How to Scrape AliExpress: Complete Guide for 2026

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

Mastering Playwright Stealth for Agentic Web Workflows

Playwright Bot Detection: What Actually Works 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. Up to 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.