Source: https://legiscore.in/docs/states/west_bengal/court-cases

# District Court Cases by Party Name (eCourts) (West Bengal)

Pending and disposed cases naming a person in every court complex of a West Bengal district, read from the district court’s own site year by year.

Status: LIVE. Source status: No recent runs. Typical time: up to 12 min. state: `west_bengal`, search_type: `court_cases`.



## What you get

Each case with its court, number, parties and CNR, and where the site shows them its status, nature of disposal, hearings and orders, plus a PDF.

## Request parameters

Keys of `params`. A value "from lookup" is a code you get by searching for the item by name first (https://legiscore.in/docs/api/lookups).



| Name | Type | Required | Example | Comes from |
| --- | --- | --- | --- | --- |
| `party_name` | string | required | Ratan Kumar Saha | field "party_name" |
| `district` | string | required | from lookup "district" | west_bengal_court_district lookup (https://legiscore.in/docs/api/lookups#west_bengal-west_bengal_court_district) |
| `from_year` | string | optional | 2024 | field "from_year" |
| `to_year` | string | optional | 2024 | field "to_year" |

## Field details

| Field | Type | Notes |
| --- | --- | --- |
| `party_name` (Party Name) | text | Petitioner or respondent, at least 3 letters. Max 100 characters. |
| `district` (District Court) | lookup | Kolkata has three: City Civil Court, City Sessions Court and Presidency Small Causes Court. |
| `from_year` (From Year) | year |  |
| `to_year` (To Year) | year |  |

## Resolve names to codes

| Field | Lookup | Needs first |
| --- | --- | --- |
| district | west_bengal_court_district | - |

q is required (2+ characters), at most 10 matches.

## Example request

Replace each <...> with the value from its lookup match.

**curl**

```bash
curl -X POST "https://legiscore.in/api/v1/search" \
  -H "Authorization: Bearer lsk_your_api_key" \
  -H "Idempotency-Key: los-case-8841" \
  -H "Content-Type: application/json" \
  -d '{
  "state": "west_bengal",
  "search_type": "court_cases",
  "params": {
    "party_name": "Ratan Kumar Saha",
    "district": "<district.value>",
    "from_year": "2024",
    "to_year": "2024"
  },
  "label": "District Court Cases by Party Name (eCourts) - case 8841"
}'
```

**Python**

```python
import requests

resp = requests.post(
    "https://legiscore.in/api/v1/search",
    headers={"Authorization": "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841"},
    json={
      "state": "west_bengal",
      "search_type": "court_cases",
      "params": {
        "party_name": "Ratan Kumar Saha",
        "district": "<district.value>",
        "from_year": "2024",
        "to_year": "2024"
      },
      "label": "District Court Cases by Party Name (eCourts) - case 8841"
    },
)
resp.raise_for_status()
print(resp.json())
```

**Node**

```js
const resp = await fetch("https://legiscore.in/api/v1/search", {
  method: "POST",
  headers: { Authorization: "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841", "Content-Type": "application/json" },
  body: JSON.stringify({
    "state": "west_bengal",
    "search_type": "court_cases",
    "params": {
      "party_name": "Ratan Kumar Saha",
      "district": "<district.value>",
      "from_year": "2024",
      "to_year": "2024"
    },
    "label": "District Court Cases by Party Name (eCourts) - case 8841"
  }),
});
if (!resp.ok) throw new Error(await resp.text());
console.log(await resp.json());
```

## Sample responses

202 Accepted, at submit:

```json
{
  "data": {
    "searches": [
      {
        "id": "SRCH-2026-A1B2C3D4",
        "state": "west_bengal",
        "search_type": "court_cases",
        "label": "District Court Cases by Party Name (eCourts) - case 8841",
        "status": "queued",
        "progress": 0,
        "note": null,
        "found": null,
        "records": null,
        "record_count": null,
        "documents": [],
        "error": null,
        "refunded": false,
        "replayed": false,
        "batch_id": null,
        "recovery_of": null,
        "source": "api",
        "created_at": "2026-10-05T10:00:00Z",
        "completed_at": null
      }
    ],
    "rejected": [],
    "replayed": {
      "free": 0,
      "billed": 0,
      "idempotent": 0
    },
    "batch_id": null
  }
}
```

200 OK, GET /api/v1/search/{id} once finished:

```json
{
  "data": {
    "id": "SRCH-2026-A1B2C3D4",
    "state": "west_bengal",
    "search_type": "court_cases",
    "label": "District Court Cases by Party Name (eCourts) - case 8841",
    "status": "succeeded",
    "progress": 100,
    "note": null,
    "found": true,
    "records": [
      {
        "...": "one object per row the source returned; shape varies by search"
      }
    ],
    "record_count": 1,
    "documents": [
      {
        "filename": "result.pdf",
        "content_type": "application/pdf",
        "bytes": 184233,
        "withheld": false
      }
    ],
    "error": null,
    "refunded": false,
    "replayed": false,
    "batch_id": null,
    "recovery_of": null,
    "source": "api",
    "created_at": "2026-10-05T10:00:00Z",
    "completed_at": "2026-10-05T10:03:12Z"
  }
}
```
