# JioMart Catalogue by Subcategory & Pincode (`ikmal_suzali_atr/jiomart-catalog`) Actor

Every product on a JioMart subcategory listing per pincode: id, name, brand, price, MRP, discount, rating, stock, sponsored flag and store. Pure HTTP on the Fynd catalog API with the ad server merged in. Dual-mode: the same code runs as an ATR BullMQ worker.

- **URL**: https://apify.com/ikmal\_suzali\_atr/jiomart-catalog.md
- **Developed by:** [AtTheRate AI](https://apify.com/ikmal_suzali_atr) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## JioMart Catalogue by Subcategory & Pincode

Pulls every product on a JioMart subcategory listing, priced and stocked for the Indian pincode you give, with sponsored slots identified. Track grocery and general-merchandise assortment, pricing and paid placements on one of India's largest retailers, city by city.

### What you get

- Shelf order in `page` and `position`, with price economics in `price`, `original_price`, `discount_percent` and `pack_size`.
- A real sponsored flag: `is_sponsored`, with `ad_rank` and `ad_track_id` for the paid slots JioMart serves.
- Category context at every level: `l1_category`, `l2_category`, `l3_category`, `category_name` and `breadcrumbs`.
- Identity and merchant signals: `id`, `item_code`, `sku_code`, `name`, `brand`, `image_url`, `product_url`, `in_stock`, `seller` (1p or 3p) and `store_id`.
- Location honesty: every row carries its `pincode`, and an unserved pincode is skipped with a warning, never answered with another area's data.

### Input

Both `categories` and `pincodes` are required.

```json
{
  "categories": ["milk"],
  "pincodes": ["400001"],
  "maxPages": 0,
  "expandSubcategories": false,
  "concurrency": 2,
  "delayMs": 600,
  "callsPerSession": 150,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IN"
  }
}
```

- `categories`: leaf slugs such as `milk`, collection URLs, or wider levels written `l2:milk-milk-products` and `l1:fresh-l1`.
- `pincodes`: 6-digit Indian pincodes. `maxPages` is pages per subcategory, 0 meaning all, at 12 products a page.
- `expandSubcategories`: also crawl each subcategory's children from the category tree, around 1,061 grocery leaves.
- `proxyConfiguration`: residential country IN is the default.

### Output

One row per product, per subcategory, per pincode. The verified run above returned 12 rows for `milk` at `400001`.

```json
{
  "pincode": "400001",
  "store_id": "13641",
  "category": "l3:milk",
  "category_title": "Milk",
  "page": 1,
  "position": 1,
  "id": "490005853",
  "name": "Amul Taaza Toned Fresh Milk 500 ml",
  "brand": "Amul",
  "pack_size": "500 ml",
  "price": 28,
  "original_price": null,
  "discount_percent": null,
  "rating_count": null,
  "in_stock": true,
  "is_sponsored": false,
  "seller": "1p",
  "product_url": "https://www.jiomart.com/p/amul-taaza-toned-fresh-milk-500-ml",
  "fetched_at": "2026-09-12T10:14:02.117Z"
}
```

`rating_count` is always null: JioMart listings publish a rating but no count. `original_price` and `discount_percent` are null on undiscounted items, and `ad_rank` and `ad_track_id` are null on organic rows.

### Use cases

- Daily price and discount tracking per city from `price` and `discount_percent`.
- Ad-slot share of voice from `is_sponsored` per `brand`, with `ad_rank` for slot quality.
- Assortment and availability gaps from the `id` set and `in_stock` across pincodes, and first-party versus third-party mix through `seller`.
- Pack and price-per-unit comparisons from `pack_size` against `price`.

### Notes and limits

- Grocery coverage depends on the store serving the pincode. Listings are not store-filtered, so they come back complete either way, but sponsored slots resolve from the stores serving your exact point and can differ between two addresses in one pincode.
- A slug JioMart does not recognise yields a landing page, not a listing, reported with a warning and zero rows.
- Sponsored slots come from a separate ad request matched back to products. If it fails, the run continues and logs that the slots are unknown, so treat `is_sponsored` as unreliable for that listing.
- A pincode that is not 6 digits, or that JioMart does not serve, is reported and skipped. Sessions re-mint after 150 page fetches, with a 600 ms pause between calls.

### FAQ

**Do I need a proxy?** A residential proxy in India is recommended and is the default. JioMart answers 403 to egress it dislikes, and the run stops with that message rather than half-scraping.

**How many results can I get?** Whole subcategories, 12 per page with no cap when `maxPages` is 0. With `expandSubcategories` you can walk around 1,061 grocery leaves.

**Does it need login or an API key?** No JioMart account or key of your own is required.

**How is sponsored detected?** Paid slots are requested from JioMart's own ad server for that category and matched by product id, so `is_sponsored` reflects a real billed placement, its slot number in `ad_rank`.

# Actor input Schema

## `categories` (type: `array`):

JioMart L3 category slugs ("milk", "flavoured-milk"), collection URLs (https://www.jiomart.com/collection/milk) or "l2:milk-milk-products" / "l1:fresh-l1" for wider levels. Enable "Include subcategories" to crawl children from JioMart's category tree (~1,061 grocery leaves).

## `pincodes` (type: `array`):

Indian 6-digit pincodes. Each is resolved to coordinates and JioMart's location headers are set from them. Note: which dark store JioMart picks depends on the exact point inside the pincode — grocery listings are complete either way, but the sponsored slots come from the stores that serve the point; unresolvable or unserved pincodes are skipped with a warning. Every row carries its pincode.

## `maxPages` (type: `integer`):

0 = all (12 products per page).

## `expandSubcategories` (type: `boolean`):

Also crawl each subcategory's children from the category tree.

## `concurrency` (type: `integer`):

1–4.

## `delayMs` (type: `integer`):

Pause between page fetches.

## `callsPerSession` (type: `integer`):

Re-mint the session after this many page fetches.

## `proxyConfiguration` (type: `object`):

On the Apify platform this decides egress; a residential proxy in India is recommended. On our own servers it is ignored and our residential proxy is used.

## Actor input object example

```json
{
  "categories": [
    "milk"
  ],
  "pincodes": [
    "400001"
  ],
  "maxPages": 0,
  "expandSubcategories": false,
  "concurrency": 2,
  "delayMs": 600,
  "callsPerSession": 150,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per product.

## `summary` (type: `string`):

Counts for the run: what was requested, captured, skipped and failed.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "categories": [
        "milk"
    ],
    "pincodes": [
        "400001"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ikmal_suzali_atr/jiomart-catalog").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "categories": ["milk"],
    "pincodes": ["400001"],
}

# Run the Actor and wait for it to finish
run = client.actor("ikmal_suzali_atr/jiomart-catalog").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "categories": [
    "milk"
  ],
  "pincodes": [
    "400001"
  ]
}' |
apify call ikmal_suzali_atr/jiomart-catalog --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ikmal_suzali_atr/jiomart-catalog"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AGLdaFeKIj8XlIAgl/builds/GzZIgzgbmjTEJ3HC2/openapi.json
