Court Case Search API

The Court Case Search API is a full-text search over 350M+ Indian court and tribunal case records. You query by party, advocate, judge, court, case type, status, act, state or date and get matching cases with their CNRs, plus facet counts that show how results split by type, status, year and statute.

GET https://webapi.ecourtsindia.com/api/partner/v2/search

Overview

Most people looking for litigation do not have a case number. They have a company name, a person, an advocate or a statute. The Court Case Search API turns those starting points into a list of real cases across the Supreme Court, all 25 High Courts, district courts and 18 tribunal types. Due diligence teams, lenders, HR verification vendors, law firms and legal tech builders use it to answer questions such as which cases name this company, or which cheque bounce matters are pending in Pune.

Each result carries the CNR, case type, status, filing and decision dates, next hearing date, parties, advocates, judges, court code and the acts and sections the court recorded. Version 2 of the endpoint, the recommended path, also tells you in facetMode whether facet counts were computed for the result set. Pass a CNR from the results to the Case Details API for the full file, or to the order endpoints for the text of individual orders.

Input
Free text and filters: litigants, advocates, judges, courtCodes, stateCodes, case types, statuses, act keys, date ranges
Returns
Paged case list with CNR, parties, status, dates and court, plus facet counts
Coverage
Supreme Court, all 25 High Courts, district courts and 18 tribunal types; 350M+ (35 crore+) case records
Source
Court records harvested from official eCourts and court portals
Paging
Up to 200 results per page
Auth
Bearer API key or OAuth via the MCP server
Register
eCourtsIndia (ecourtsindia.com)
MCP tool
search_cases
Data source
Public court records published by the Supreme Court, High Courts, district courts and tribunals, harvested daily and refreshed on demand.

What it returns

results[].cnr

The 16-character Case Number Record of each matching case

results[].petitioners / respondents

Party names on each side, as plain string arrays

results[].petitionerAdvocates

Advocates appearing for the petitioner side

results[].caseType / caseStatus

Case type code (for example RFA, WP_C) and status code (for example PENDING, DISPOSED)

results[].courtCode

Court establishment code, such as DLHC01 for the Delhi High Court

results[].filingDate / decisionDate

Date the case was filed and, if decided, the decision date

results[].nextHearingDate

Next listed hearing date recorded for the case

results[].actsAndSections

Acts and sections as the court wrote them

totalHits

Number of matching cases (a lower bound of 100000 when facets were skipped for size)

facetMode

v2 only: counted when facet counts were computed, full when the result set was too large

facets

Counts by field such as caseType, caseStatus, filingYear and provisionPath

enumDescriptions

Plain-English labels for the codes used in the results

Use cases

Counterparty due diligence

Before signing a supply contract, a legal team searches the counterparty name with the litigants filter, restricted to pending cases. The results show every live matter naming the company across courts and tribunals, with CNRs they can open in the Case Details API to read the orders before deciding whether to proceed.

Advocate and judge research

A litigation consultant wants to know how often a particular advocate appears before the Delhi High Court. They search with the advocates filter and courtCodes=DLHC01, then read the caseType and filingYear facets to see the mix of matters and how the practice has grown over the years.

Statute-led research

A researcher studying cheque dishonour cases uses provisionPaths=1881/26|s|138 with a state and district filter, sorted by filing date. The facet counts show filings per year in that district, which feeds a chart in the study, and the CNRs lead to individual orders that the researcher reads to classify outcomes.

Portfolio discovery for lenders

A credit team screening a borrower group runs one search with several litigants values, which are OR-ed together. They export the matching CNRs into their monitoring list and later check each case for upcoming hearings with the CNR Hearing Check API.

How to use it

  1. Get an API key and send it as Authorization: Bearer eci_live_... on every request to https://webapi.ecourtsindia.com.
  2. If you need an exact court, district or act filter value, look it up with the Search Facet Catalog API or the Court Enums API.
  3. Call GET /api/partner/v2/search with query and filters; repeat a key such as litigants to match any of several names.
  4. Read data.facetMode: if it says full, narrow the filters or sort by a date field to get counted facets.
  5. Page with page and pageSize (up to 200), and open interesting CNRs with the Case Details API.

Parameters

NameInDescription
query query Free text across parties, advocates, subject and acts. Supports "phrases", AND, OR, NOT and trailing wildcards. Example: cheque bounce
litigants query Party name; repeat to match any of several names. Example: Ramesh Kumar
advocates query Advocate name; repeatable. Example: Rahul Sharma
judges query Judge name; repeatable.
courtCodes query Court establishment code(s). Example: DLHC01
stateCodes query Two-letter state code(s). Example: MH
sortBy query Relevance or a date field, e.g. filingDate desc. Example: filingDate desc
page / pageSize query Paging, up to 200 per page. Example: 1 / 20

Example

Request

curl "https://webapi.ecourtsindia.com/api/partner/v2/search?query=cheque%20bounce&litigants=Ramesh%20Kumar" \
  -H "Authorization: Bearer eci_live_YOUR_KEY"

Response (illustrative)

{
  "data": {
    "results": [
      {
        "cnr": "DLHC010123452024",
        "caseType": "CS",
        "caseStatus": "PENDING",
        "filingDate": "2024-03-11",
        "nextHearingDate": "2026-12-04",
        "judges": ["Justice A. Verma"],
        "petitioners": ["Example Traders Pvt Ltd"],
        "respondents": ["Sample Logistics LLP"],
        "petitionerAdvocates": ["R. Kumar"],
        "actsAndSections": ["Code of Civil Procedure, 1908 - Section 9"],
        "courtCode": "DLHC01"
      }
    ],
    "totalHits": 42,
    "page": 1,
    "pageSize": 20,
    "facetMode": "counted",
    "facets": {
      "caseStatus": { "values": { "PENDING": 17, "DISPOSED": 25 }, "facetType": "categorical" }
    }
  },
  "meta": { "request_id": "req_example001" }
}

Authenticate with Authorization: Bearer eci_live_…. Every response field is documented in the eCourtsIndia API documentation. Assistants can also call this through the eCourtsIndia MCP server as the search_cases tool.

Glossary

CNR (Case Number Record)
The unique 16-character identifier eCourts gives every case. It is a six-character court establishment code such as DLHC01, a six-digit case number and the four-digit filing year, so DLHC010351552024 is Delhi High Court case 035155 of 2024.
Court establishment code
A code that identifies one court or bench in search filters. High Court codes need their bench suffix, so DLHC01 works and DLHC returns nothing. NCLT benches end in 0, such as NCLTDL0 for New Delhi.
Facet
A count of matching cases grouped by one field, such as case type, status, filing year or act. Facets let you see the shape of a result set, for example how many matches are pending, without paging through every case.

Good to know

  • Search results have no case title field; build one from petitioners and respondents.
  • The actsAndSections filter needs the exact stored text and has limited coverage; use query or provisionPaths instead.
  • In v2, broad free-text searches sorted by relevance may skip facets; totalHits is then a lower bound of 100000.

Frequently asked questions

Is there an API to search Indian court cases by party name?

Yes. The Court Case Search API accepts a litigants parameter that matches both petitioners and respondents, plus separate petitioners and respondents filters. Repeat the key to search several names at once; the values are OR-ed. A nameMatchMode option controls whether every token, any token, an exact phrase or a fuzzy match is required.

Can I find a case if I do not know the CNR?

Yes. That is the main job of this endpoint. Search by party, advocate, judge, keyword or statute, narrow by court, state, status or dates, and each result gives you the CNR. Use that CNR with the Case Details API to load the full case file.

How is this different from searching the eCourts portal by hand?

The government eCourts portal searches one court establishment at a time, usually behind a captcha, and needs exact inputs. This API searches the whole indexed corpus in one request, across courts and tribunals, with filters, sorting, facet counts and paging, and returns structured JSON you can store or feed into other systems.

Why does my search return zero results?

The most common cause is a wrong code. Case type and court codes must match the live enums exactly: DLHC returns nothing, DLHC01 works, and generic words like CIVIL or WRIT are not case type codes. Check codes with the Court Enums API or the Search Facet Catalog API before filtering.

Can I search for cases under a specific section, such as IPC 420 or NI Act 138?

Yes. Use provisionPaths with an India Code act key, unit and number, for example 1860/45|s|420 for IPC 420 or 1881/26|s|138 for cheque dishonour. An act key alone matches every section of that act. A plain query such as IPC 302 also works as free text.

Can an AI assistant like Claude or ChatGPT run these searches?

Yes. The eCourtsIndia MCP server exposes this search as the search_cases tool. Once connected, you can ask an assistant in plain language, for example to list pending cases naming a company in the Bombay High Court, and it calls the tool and reads the results.

Should I use v1 or v2 of the search endpoint?

Use v2 at /api/partner/v2/search. The parameters are identical to v1, which is marked deprecated soon. The difference is that v2 computes facet counts only when the result set is small enough, and tells you which happened in data.facetMode. Moving over means changing the URL and reading that one extra field.