Blinkit API workflow: check coverage first
Start with coverage, so that later calls are made only for places that are served.
- Send
body.pincode, orbody.latwithbody.lon, toblinkit-store. - Read
serviceablein the reply and stop when it shows that Blinkit does not deliver to the place. - Note
eta_minutesand themerchant_idof each entry instores. - Reuse the same location inputs in every later call of the workflow.
The dark store behind a location decides the catalogue, the prices and the stock, so a changed location starts a new set of figures.
Choose the call that answers your question
Each operation answers a different question, so pick the call by the question:
blinkit-store: whether Blinkit delivers to the place, how many minutes it promises and which dark stores serve itblinkit-search: which products match a keyword at the place, with price, MRP, stock, rating and rankblinkit-product: the detail of one product at the place, with shelf life, attributes and the other pack sizes
Only blinkit-search returns a list of products, and a product_id for blinkit-product can be taken from one of its rows.
Search a keyword and open one product
A search shows many products at once, and the detail call opens one of them.
- Call
blinkit-searchwithbody.queryand the location, for example atta and PIN code 400020. - Choose an entry of
resultsand copy itsproduct_id. - Call
blinkit-productwith that value asbody.product_idand the same location. - Read
price,mrp,inventoryandavailable_at_storeinsideproduct.
The detail call adds fields that a search row does not carry, such as shelf_life, country_of_origin, manufacturer and attributes.
Compare one product across PIN codes
Price and stock depend on the dark store, so read the product once per location.
- Keep
body.product_idfixed and change onlybody.pincode, once for each PIN code you compare. - Read
available_at_storefirst, because it shows whether the dark store serving that PIN code sells the product at all. - Store
price,mrp,discount_percentandinventorytogether with the PIN code of the call. - Compare
priceonly with thepriceof the samepack_size, and readcurrencybeside each figure.
price_text carries the text form of the price when the figure is needed as text.
Page through search results
Search results arrive in pages, and every page is a separate call with the same query and location.
- Call
blinkit-searchwithoutbody.page, or with 1, to read the first page. - Read
has_next; when it shows that another page follows, send the next number inbody.page, up to 5. - Skip entries whose
repeated_from_earlier_pagemarks them as already read. - Use
exact_match_countandsimilar_resultto separate direct matches from the items appended after them.
A page holds about 12 rows, so the window of one query is five pages.
Track stock and price over time
A history of prices and stock comes from repeated reads of the same product and location.
- Note the
product_idof each product you follow and one location for each dark store you follow. - Call
blinkit-productfor each pair on your own schedule, sending the same location every time so that the stored rows describe one dark store. - Save
price,mrp,discount_percent,inventoryandin_stockwith the time of the call. - Compare the saved rows: a change in
inventoryorin_stockshows a stock movement, and a change inpriceordiscount_percentshows a price movement.
When you follow a keyword rather than a product, blinkit-search returns the same price, mrp and inventory fields in every row.
Read sponsored rows and rank for a brand
To see how one brand appears for a keyword at a location:
- Search the keyword with
blinkit-searchand the location. - For each entry of
results, readbrand,rank,sponsoredandin_stock. - Group the entries by
brandand keep the ones thatsponsoredmarks apart from the rest. - Repeat for the next page when
has_nextshows one.
Entries with similar_result were appended after the direct matches, so keep them apart from direct matches when you count the presence of a brand.
How Blinkit works
A dark store is a small fulfilment warehouse that serves online orders and is closed to walk-in shoppers. Delivery apps such as Blinkit send orders from the dark store nearest the customer, within a few kilometres of homes and offices.
In India the maximum retail price, or MRP, is the price set by the manufacturer and printed on the product, and sellers can sell for less than it. An Indian PIN code is a six-digit India Post postal code whose first digit marks one of nine postal zones.
[
{
"body": {
"query": "atta",
"pincode": "400020"
}
},
{
"body": {
"product_id": "68482",
"pincode": "400020"
}
}
]{
"body": {
"lat": 19.0176,
"lon": 72.8562
}
}[
{
"body": {
"product_id": "68482",
"pincode": "400020"
}
},
{
"body": {
"product_id": "68482",
"pincode": "110001"
}
},
{
"body": {
"product_id": "68482",
"pincode": "560001"
}
}
]{
"body": {
"query": "atta",
"pincode": "400020",
"page": 2
}
}Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/blinkit/blinkit-product' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"pincode":"400020","product_id":"68482"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Blinkit API overview and prices · Read the API reference · Try it in the playground