JioMart Departments API
Read JioMart's main catalogue departments and their IDs.
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
| Field | Type | What it is | Example |
|---|---|---|---|
| items[].name | string | Product, brand, department, collection or content name as returned for the selected endpoint. | Groceries |
| items[].logo | object | The logo image. | 2 fields |
| items[].logo.type | string | The kind of record or suggestion, where JioMart gives one. | image |
| items[].logo.url | string | Link to the image. | https://cdn1.jiomartjcp.com/v2/jio-mart-2/MOluAr/original/jioma… |
| items[].priority_order | integer | The order JioMart shows it in. | 1 |
| items[].slug | string | Product, brand or collection slug returned by JioMart for the sampled record. | groceries |
| items[].uid | integer | Brand or collection identifier returned by JioMart for directory records. | 1 |
| items | array | The entries returned. | 1 records |
| raw | object | JioMart's own response, as it came back. | 1 fields |
| raw.items | array | The entries returned. | 1 records |
| raw.items[].logo | object | The department's logo image. | 2 fields |
| raw.items[].name | string | The department's name, such as Groceries. | Groceries |
| raw.items[].priority_order | integer | The order JioMart shows the department in. | 1 |
| raw.items[].slug | string | The department's name as used in JioMart links. | groceries |
| raw.items[].uid | integer | JioMart's ID for the department. | 1 |
What this endpoint covers
- Use the returned department names, slugs and IDs to browse categories and products.
- Departments describe how the catalogue is organised, not delivery or stock at a place.
Call it from your code
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "jiomart.departments.list", "input": {}}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "jiomart.departments.list", "input": {}}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "jiomart.departments.list", "input": {}}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "raw": { "items": [ { "name": "Groceries", "priority_order": 1, "slug": "groceries", "uid": 1, "logo": { "type": "image", "url": "https://cdn1.jiomartjcp.com/v2/jio-mart-2/MOluAr/original/jiomarty0/department/pictures/square-logo/original/nNNDA0Cu--department.png" } } ] }, "items": [ { "name": "Groceries", "priority_order": 1, "slug": "groceries", "uid": 1, "logo": { "type": "image", "url": "https://cdn1.jiomartjcp.com/v2/jio-mart-2/MOluAr/original/jiomarty0/department/pictures/square-logo/original/nNNDA0Cu--department.png" } } ]}
More JioMart endpoints
The same API key runs every one of them.
The same data from other platforms
-
Greenhouse List the public department hierarchy and job counts for a Greenhouse board. Departments1 credit per call
-
SmartRecruiters List the public department taxonomy for a SmartRecruiters company. Departments1 credit per call
JioMart Departments API FAQ
The short answers. The docs have the long ones.
How much does the JioMart Departments API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Every input is optional; the input fields below list what each one does.
Do I need a JioMart login?
No. It reads public JioMart data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds jiomart.departments.list, checks its price and runs it with the same credits as the REST API.