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

> Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.

**Category:** Government & Public Data | **Website:** [eprocurement.gov/](https://eprocurement.gov/) | **Docs:** [parse.bot/marketplace/1f3986e4-f4fb-47fc-971b-0b4b712ee748/eprocurement-gov-api](https://parse.bot/marketplace/1f3986e4-f4fb-47fc-971b-0b4b712ee748/eprocurement-gov-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-eprocurement-gov-api-1f3986e4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_active_tenders

Fetch paginated list of active tenders from the Central Public Procurement Portal. Returns up to 10 tenders per page sorted by most recently published. Each tender includes title, organisation, key dates, and a detail URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Zero-based page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_active_tenders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_cancelled_tenders

Fetch list of cancelled tenders. Returns up to 10 tenders per page. May return an empty list if no tenders are currently marked as cancelled on the portal.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Zero-based page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_cancelled_tenders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_global_tenders

Fetch international/global tenders from the portal. Returns up to 10 tenders per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Zero-based page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_global_tenders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_high_value_tenders

Fetch high-value tenders based on monetary threshold. Returns up to 10 tenders per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Zero-based page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_high_value_tenders \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_homepage_stats

Get real-time statistics from the portal dashboard including active, opening today, and closing today counts for both central and state government tenders. Returns six integer counters.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_homepage_stats \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_organisations

Retrieve the list of procuring organisations registered on the portal. Returns the full list in one call with no pagination.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_organisations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_tender_detail

Fetch details of a specific tender by its full URL. Detail pages are typically gated by image CAPTCHAs, in which case the response includes status CAPTCHA_GATED. When not gated, returns parsed key-value pairs from the detail page tables.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full tender detail URL (from detail_url field of tender list endpoints). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_tender_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_tenders_closing_today

Fetch tenders with bid submission closing on the current date. Returns up to 10 tenders per page. May return an empty list on days with no closing tenders.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Zero-based page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-eprocurement-gov-api-1f3986e4/get_tenders_closing_today \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```
