# Ecourtsindia — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ecourtsindia-com-api-84f6eb47/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-ecourtsindia-com-api-84f6eb47/get_case_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-ecourtsindia-com-api-84f6eb47/get_high_court_judgments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-ecourtsindia-com-api-84f6eb47/search_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
