blinkit-scraper
A Python scraper for Blinkit, India's 10-minute grocery app. Two jobs:
- Category listings: any category page (
/cn/chips-crisps/cid/1237/940) → name, brand, pack size, price, MRP, discount, units in stock, rating, rating count, variants and URL, for the dark store that serves your location. Real pagination: 30 products on the first page, 15 per page after that, out-of-stock products kept. - Product pages: price, MRP and stock plus the catalog sheet: FSSAI licence, shelf life, country of origin, ingredients, manufacturer, return policy and every other attribute Blinkit lists.
Output as Python dicts, JSON or CSV. One dependency (requests), no browser.
pip install blinkit-scraper
Why a plain request fails
Blinkit sits behind Cloudflare. A script gets an error page, not products:
| Request | Result |
|---|---|
requests, default or Chrome user agent |
HTTP 403, "blinkit | Error Page" |
Through Scrape.do (super=true&geoCode=in) |
200 in ~3 s, full page with the data, 5 of 5 tries |
Pages are fetched through the Scrape.do API with residential proxies in India. Blinkit requests cost 10 credits each; the free plan includes 1,000 credits a month.
Quick start
from blinkit_scraper import BlinkitScraper
scraper = BlinkitScraper(token="YOUR_SCRAPEDO_TOKEN", city="mumbai") # or lat=..., lon=...
# 3 pages = 30 + 15 + 15 = 60 products, 3 requests
rows = scraper.get_category("https://blinkit.com/cn/chips-crisps/cid/1237/940", max_pages=3)
for row in rows[:3]:
print(row["name"], row["pack_size"], row["price_inr"], row["mrp_inr"], row["inventory"], row["in_stock"])
product = scraper.get_product(rows[0]["url"])
print(product["fssai_license"], product["shelf_life"], product["country_of_origin"])
Command line
export SCRAPEDO_TOKEN=your_token
# 3 pages of a category for a Mumbai address, CSV
blinkit-scraper category "https://blinkit.com/cn/chips-crisps/cid/1237/940" --pages 3 --city mumbai -f csv -o blinkit-chips.csv
# product sheets for the first 10 products of that file
blinkit-scraper product -i blinkit-chips.csv --limit 10 --city mumbai -f csv -o blinkit-products.csv
# any address: pass its coordinates
blinkit-scraper category "https://blinkit.com/cn/chips-crisps/cid/1237/940" --lat 12.9352 --lon 77.6245
City presets: bengaluru, chennai, delhi, gurugram (Blinkit's default), hyderabad, kolkata, mumbai, pune.
Output
Listing row (from the fictional test page in tests/fixtures):
{"product_id": 1001, "name": "Example Salted Chips", "brand": "Northwind Snacks", "pack_size": "60 g",
"price_inr": 43, "mrp_inr": 70, "discount_pct": 38, "in_stock": true, "inventory": 5,
"rating": 4.31, "rating_count": 120000, "variants": 2, "merchant_id": 90001,
"image": "https://cdn.example.com/p/1001.png", "url": "https://blinkit.com/prn/example-salted-chips/prid/1001"}
Product columns: product_id, name, brand, pack_size, price_inr, mrp_inr, discount_pct, in_stock, inventory, shelf_life, fssai_license, country_of_origin, category_ids, merchant_id, url (plus ingredients, manufacturer, return_policy, images and the full attributes dict in Python/JSON).
How it works
The data is one JSON object. Blinkit renders every page on the server and puts the data in window.grofers.PRELOADED_STATE = {...}. Category pages keep the product cards in ui.plpContainer.feedData.snippets, product pages keep the catalog sheet in ui.pdp.bffPdp.bffData.tracking.le_meta.custom_data.seo. The scraper reads the object with json.JSONDecoder.raw_decode. No CSS selectors.
Each card carries the stock count. inventory is the number of units the dark store has (Blinkit stops counting at 50). rating_count arrives as text in Indian units ("7 lac" = 700,000) and is converted.
Location picks the store. Prices, assortment and stock belong to one dark store, chosen from the delivery address. Without one, Blinkit uses Gurugram. In our test the chips category listed 673 products in Gurugram (store 31719) and 524 in Mumbai (store 41649); a banana chips pack had 5 units in one and 1 in the other. Pages read the location from the gr_1_lat / gr_1_lon cookies, the listing API from lat / lon headers; the scraper sends both.
Pagination is a POST API. The page holds 30 products and a next_url for /v1/layout/listing_widgets. That endpoint returns 15 products per call (a larger limit is ignored) and the next next_url. It only answers through residential proxies, so every request uses super=true&geoCode=in. Reading a whole category of 673 products takes 44 requests.
Limits
- Credits. 10 Scrape.do credits per request: page 1 of a category, each further page of 15, each product page.
- Stock cap.
inventorytops out at 50. - Search.
/s/search pages are disallowed in Blinkit's robots.txt and not supported; use category pages. - Errors. Non-200 responses raise
ScrapeErrorwith the status code;from_targettells a Blinkit status from a Scrape.do one (a wrong token is a Scrape.do 401). A 200 without Blinkit's data is retried. Server errors, 429s and empty pages are retried twice; client errors are not.
Responsible use
The scraper reads category (/cn/) and product (/prn/) pages, which Blinkit's robots.txt allows, plus the listing API those pages call. It never touches search, cart, checkout or account paths. Product data is not personal data. Read Blinkit's terms for your use case and keep request rates modest. This is not legal advice.
Development
git clone https://github.com/bugrahansss/blinkit-scraper
cd blinkit-scraper
pip install -e .
python -m unittest discover -s tests -v
The tests run offline against fictional fixture pages.
License
MIT
Built and tested with Scrape.do, November 2026.
Metadata
Release files for blinkit-scraper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blinkit_scraper-0.1.0.tar.gz | 19.4 kB | Without provenance | Details for blinkit_scraper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blinkit_scraper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for blinkit_scraper-0.1.0-py3-none-any.whl |
Total release size: 33.9 kB
Release files / blinkit_scraper-0.1.0.tar.gz
| Download URL | blinkit_scraper-0.1.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee729c57b9c287992d8bdf0e1eb8336222c8b06589f87418b6a83cbccff30f95
|
|
BLAKE2b-256 checksum How to use checksums |
b6e948b2c935c0ef4b1f024dd99ba53f88df15a990071f3e530aef00a3ce0f27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / blinkit_scraper-0.1.0-py3-none-any.whl
| Download URL | blinkit_scraper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd36b01ef9f3d565a9284214714e331f52dcf6243baeea3d3dad82fc590072f8
|
|
BLAKE2b-256 checksum How to use checksums |
fb907eaf04acb7bcfcdbfc56e836d0a1e523dd61d340efad2099472266684e37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for blinkit-scraper 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.