# Indiamart (indiamart.com) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Indiamart provides 4 callable API endpoints through the Parse marketplace.

**Category:** Business Directories | **Website:** [indiamart.com/](https://indiamart.com/) | **Docs:** [parse.bot/marketplace/bf529e43-720c-4076-b5ef-be21db4ca15f/indiamart-com-api](https://parse.bot/marketplace/bf529e43-720c-4076-b5ef-be21db4ca15f/indiamart-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-indiamart-com-api-bf529e43/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_listings

Retrieve product listings for a named category or subcategory. Functionally equivalent to search_products with the category name as the query, but echoes the category in the response for client convenience. Paginates via page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_name` | string | Yes | Category or subcategory name (e.g. 'Fresh Vegetables', 'Cotton Fabric'). |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiamart-com-api-bf529e43/get_category_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_name":"<string>","page":"<integer>"}'
```

### get_cheapest_listings

Find the lowest-priced listings for a product query. Fetches up to 3 pages internally, filters to items with a listed price, and returns up to 20 results sorted by price ascending. Useful for price benchmarking across suppliers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Product name to find the cheapest listings for (e.g. 'leather wallet'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiamart-com-api-bf529e43/get_cheapest_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### get_product_detail

Get a reference URL for a specific product by its display ID. Returns the product page URL on IndiaMART's export site. For structured product data (pricing, specs, seller), use search_products with the product name instead.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | The display ID of the product from search_products results (e.g. '2853333107462'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiamart-com-api-bf529e43/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### search_products

Full-text search across IndiaMART's export product catalog. query matches product titles and descriptions. location narrows results to sellers in a specific city or region. Paginates via page number. Each product includes pricing (MOQ-based), seller details, and key specifications. Returns an empty products array when no matches exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | City or region to filter results by (e.g. 'Kanpur', 'Mumbai'). Appended to search query. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'leather wallet', 'cotton fabric'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indiamart-com-api-bf529e43/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","query":"<string>"}'
```
