# TradeIndia — 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.

> Search and discover products, suppliers, and their contact information on TradeIndia's B2B marketplace. Browse product categories, find supplier profiles, and explore upcoming tradeshows and industry events — including locations, dates, venues, and organizer details.

**Category:** Business Directories | **Website:** [tradeindia.com/](https://tradeindia.com/) | **Docs:** [parse.bot/marketplace/7d847017-8987-436e-a0c8-afb978102a06/tradeindia-com-api](https://parse.bot/marketplace/7d847017-8987-436e-a0c8-afb978102a06/tradeindia-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-tradeindia-com-api-7d847017/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Get related categories (keyword suggestions) for a specific search term. Returns an array of related keywords with product counts, useful for refining product searches or discovering sub-categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Keyword to find related categories for (e.g. 'safety shoes', 'textile machinery') |

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

### get_supplier_contact

Retrieve phone number and email for a specific supplier profile. Returns contact details including whether the number is masked and whether the supplier is a verified (paid) member. The profile_id is obtained from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `profile_id` | string | Yes | The profile_id of the supplier, obtained from search_products results (e.g. '41039615') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradeindia-com-api-7d847017/get_supplier_contact \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"profile_id":"<string>"}'
```

### get_tradeshow_cities

List cities that host tradeshows on TradeIndia, sorted by number of fairs. Returns city names, IDs, image URLs, and fair counts. Also includes filter arrays for cities and tradeshow categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max number of cities to return in the cities array |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradeindia-com-api-7d847017/get_tradeshow_cities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### get_tradeshow_details

Get full details for a specific tradeshow including organizer info, visitor/exhibitor profiles, dates, venue, entry fee, and event description. The fair_id is obtained from search_tradeshows results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fair_id` | string | Yes | The fair_id of the tradeshow, obtained from search_tradeshows results (e.g. '147448') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradeindia-com-api-7d847017/get_tradeshow_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fair_id":"<string>"}'
```

### search_products

Full-text search over TradeIndia product listings by keyword. Returns paginated product results with supplier details, pricing, stock status, and business type. Each result carries a profile_id usable to fetch the supplier's contact details. Pagination metadata (total_pages, has_next) is included but page advancement is manual via the page parameter. The upstream API requires limit to be greater than 10.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. Must be greater than 10. |
| `page` | integer | No | Page number to retrieve |
| `query` | string | Yes | Product keyword to search for (e.g. 'safety shoes', 'textile machinery') |

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

### search_tradeshows

Search for tradeshows and expos by keyword. Returns tradeshow listings with dates, venues, categories, and logo paths. Pagination metadata (total_count) is included but page advancement is manual via the page parameter. The upstream API requires limit to be greater than 10.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. Must be greater than 10. |
| `page` | integer | No | Page number to retrieve |
| `query` | string | No | Keyword for tradeshow search (e.g. 'india', 'textile', 'pharma') |

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