# Eproc2 Bihar — 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.

> Access live tender listings from the Bihar Government e-Procurement portal to search and filter government contracts by department, status, and keywords. Get detailed tender information including specifications and deadlines, plus browse the complete directory of participating government departments.

**Category:** Government & Public Data | **Website:** [eproc2.bihar.gov.in/](https://eproc2.bihar.gov.in/) | **Docs:** [parse.bot/marketplace/cf56d9c3-dccc-46f6-a407-3707605b7248/eproc2-bihar-gov-in-api](https://parse.bot/marketplace/cf56d9c3-dccc-46f6-a407-3707605b7248/eproc2-bihar-gov-in-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/eproc2-bihar/`
**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 active tenders

Retrieves all currently active/open tenders from Bihar e-Procurement. Returns the full set (typically 500-1000+) in a single response. Supports server-side filtering by department ID and client-side keyword text search against description and reference number. Each tender includes schedule dates, status, and department info but not PAC amount (use get_tender_details for full financial data).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `dept_id` | string | No | Department ID to filter tenders (e.g. '731' for Water Resources Department, '945' for Road Construction Department). Obtain IDs from get_departments endpoint. |
| `text_filter` | string | No | Keyword to filter tenders by description or reference number (client-side, case-insensitive) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/eproc2-bihar/get-active-tenders \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"dept_id":"<string>","text_filter":"<string>"}'
```

### Get cancelled tenders

Retrieves cancelled tenders. The full dataset can be very large (thousands of records); filtering by dept_id is strongly recommended to reduce response size. Includes cancellation date and reason for each tender.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `dept_id` | string | No | Department ID to filter tenders (strongly recommended to reduce response size) |
| `text_filter` | string | No | Keyword to filter tenders by description or reference number (client-side, case-insensitive) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/eproc2-bihar/get-cancelled-tenders \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"dept_id":"<string>","text_filter":"<string>"}'
```

### Get departments

Retrieves all government departments and organizations in Bihar that publish tenders. Returns a flat list with hierarchy information (parent_id, hierarchy string). Use department_id values to filter tenders in other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/eproc2-bihar/get-departments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get past tenders

Retrieves past/closed tenders whose bid end date has passed. Supports server-side pagination and filtering by department ID. Client-side keyword filtering on description and reference number. Returns a page of results with a has_more flag for continuation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `dept_id` | string | No | Department ID to filter tenders |
| `page` | integer | No | Page number (1-based) |
| `page_size` | integer | No | Number of tenders per page |
| `text_filter` | string | No | Keyword to filter tenders by description or reference number (client-side, case-insensitive) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/eproc2-bihar/get-past-tenders \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"dept_id":"<string>","page":"<integer>","page_size":"<integer>","text_filter":"<string>"}'
```

### Get tender details

Retrieves comprehensive details for a specific tender by its numeric ID, including PAC amount, NIT text, schedule dates, currency, bid configuration, and offer validity. The tender_id can be obtained from any of the listing endpoints (get_active_tenders, get_past_tenders, get_cancelled_tenders).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tender_id` | string | Yes | Numeric tender ID (e.g. '133124'). Obtain from tender listing endpoints. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/eproc2-bihar/get-tender-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tender_id":"<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.