# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/tradeindia/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/tradeindia/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/tradeindia/get-supplier-contact \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/tradeindia/get-tradeshow-cities \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/tradeindia/get-tradeshow-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/tradeindia/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/tradeindia/search-tradeshows \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.