# Ecourtsindia — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 retrieve detailed information about court cases across India's Supreme Court, High Courts, and District Courts from a database of over 239 million cases. Find case details, track legal proceedings, and access comprehensive court records to stay informed about judicial matters across the Indian court system.

**Category:** Government & Public Data | **Website:** [ecourtsindia.com/search](https://ecourtsindia.com/search) | **Docs:** [parse.bot/marketplace/84f6eb47-8098-46b8-83f6-75037559ab89/ecourtsindia-com-api](https://parse.bot/marketplace/84f6eb47-8098-46b8-83f6-75037559ab89/ecourtsindia-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/ecourtsindia/`
**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 case detail

Retrieve comprehensive detail for a single court case by its CNR (Case Number Record). Returns full hearing history, interlocutory applications, judgment orders, FIR information, and case timeline. The CNR is available from search_cases results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cnr` | string | Yes | CNR number of the case (e.g. 'KLHC010203672022', 'SCIN010425532018'). Obtain from search_cases results. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/ecourtsindia/get-case-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cnr":"<string>"}'
```

### Get high court judgments

Retrieve judgments, eSCR, and orders from High Courts in India. Searches cases at High Courts and returns individual judgment/order documents with their metadata. Results are filtered from the general case search to include only High Court cases that have judgments or orders. Document URLs are included when available from the detail fetch (limited to first 5 cases per page for performance). Uses the same search index as search_cases but filters for High Court court codes and cases with judicial documents.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `court` | string | No | Filter by a specific High Court name (e.g. 'Kerala', 'Bombay', 'Delhi', 'Karnataka', 'Allahabad'). Partial match supported. If omitted, returns results from all High Courts. |
| `doc_type` | string | No | Filter by document type. |
| `from_date` | string | No | Filter documents issued on or after this date (ISO format YYYY-MM-DD). |
| `page` | integer | No | Page number (1-indexed) for paginated results. |
| `query` | string | No | Search query — party name, case number, offense keyword, or legal term. If omitted, defaults to 'High Court' to retrieve broad HC results. |
| `to_date` | string | No | Filter documents issued on or before this date (ISO format YYYY-MM-DD). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/ecourtsindia/get-high-court-judgments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"court":"<string>","doc_type":"<string>","from_date":"<string>","page":"<integer>","query":"<string>","to_date":"<string>"}'
```

### Search cases

Full-text search across Indian court cases. Matches party names, case numbers, offenses, and legal terms. Returns 20 case summaries per page with pagination metadata. Each CaseSummary carries a CNR suitable for point-lookup via get_case_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (1-indexed) |
| `query` | string | Yes | Search query — party name, case number, offense keyword, or legal term (e.g. 'murder', 'land dispute', 'State vs Kumar') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/ecourtsindia/search-cases \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

## Next steps

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