Court Structure API

The Court Structure API returns the hierarchy of the Indian judiciary as eCourts organises it: states, their districts, the court complexes in each district and the courtrooms in each complex, with the codes and names at every level. Those codes drive cause-list searches, date lookups and court pickers.

GET https://webapi.ecourtsindia.com/api/partner/causelist/court-structure/*

Overview

Most cause-list and court-specific calls need codes rather than names: a state code, a district code, a court complex code, a courtroom. The Court Structure API is where those codes come from. It lets an app build a drill-down picker of state, district, complex and court, and lets a backend validate a location before searching, rather than guessing a code and getting an empty result.

There are four levels under /api/partner/causelist/court-structure: states, the districts of a state, the complexes of a district and the courts in a complex. Courts include the courtroom number, court name, division and presiding judge. High Courts appear as a special district with code HC, and the Supreme Court appears as state SC. The calls are metadata only and pair with the Cause List Search and Cause List Dates APIs.

Input
Path segments: state code, then district code, then court complex code
Returns
Lists of states, districts, court complexes and courts with codes and names
Coverage
States and union territories, their districts, court complexes and courtrooms; Supreme Court as state SC
Path
/api/partner/causelist/court-structure/* (the older /api/CauseList/court-structure/* path is no longer open to partners)
Auth
Bearer API key or OAuth via the MCP server
Register
eCourtsIndia (ecourtsindia.com)
MCP tool
get_courts
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

state / stateName

State code and name, for example DL and Delhi; SC is the Supreme Court

districtCode / districtName

District code and name; HC marks the High Court

courtComplexCode / courtComplexName

Code and name of a court complex in the district

court

Internal court identifier within the complex

courtNo

Courtroom number

courtName

Name of the court as shown on cause lists

courtDivision

Type of court, for example a motor accident claims tribunal

judgeName

Presiding officer of the court

Use cases

Court picker in an app

A legal app lets users choose a court before viewing its cause list. It calls states, then the districts of the chosen state, then complexes and courts, filling each dropdown from the previous choice. The final selection gives the exact codes the cause-list search needs.

Validating locations in a backend

A firm's system receives court names typed by staff. A nightly job loads the court structure for its states and matches names to codes, flagging anything that does not match so the cause-list and date lookups always run against valid court complex and courtroom codes.

Mapping judges to courtrooms

A litigation team wants to know which officer presides in each courtroom of a district court complex. The courts call returns judgeName with each courtroom number, giving a quick map the team uses when planning appearances and briefing new associates.

How to use it

  1. Call GET /api/partner/causelist/court-structure/states with your Bearer API key.
  2. Call .../states/{state}/districts with a state code from the first call.
  3. Call .../districts/{districtCode}/complexes, then .../complexes/{code}/courts.
  4. Use the returned code values, not the names, in Cause List Search and Cause List Dates.

Example

Request

curl "https://webapi.ecourtsindia.com/api/partner/causelist/court-structure/*" \
  -H "Authorization: Bearer eci_live_YOUR_KEY"

Response (illustrative)

// GET /api/partner/causelist/court-structure/states
[
  { "state": "DL", "stateName": "Delhi" },
  { "state": "MH", "stateName": "Maharashtra" },
  { "state": "SC", "stateName": "India" }
]

// GET .../states/MH/districts
[
  { "districtCode": "25", "districtName": "Pune" },
  { "districtCode": "HC", "districtName": "Bombay High Court" }
]

// GET .../districts/25/complexes/1150012/courts
[
  {
    "court": "4",
    "courtNo": "12",
    "courtName": "A. VERMA-Civil Judge Senior Division",
    "courtDivision": "Civil Judge Senior Division",
    "judgeName": "A. VERMA"
  }
]

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 get_courts tool.

Glossary

Court complex
A group of courts at one location within a district, usually one court building with many courtrooms. Its code sits between the district code and the individual courtroom in the hierarchy.
District court
The principal civil and criminal court of a district, together with the subordinate courts such as civil judges and magistrates. In eCourts data, each district has its own code and its courts are grouped into complexes.
State code
A two-letter code for a state or union territory, such as DL for Delhi, MH for Maharashtra or UP for Uttar Pradesh. In this structure SC stands for the Supreme Court of India rather than a state.

Good to know

  • Codes here are for cause-list endpoints; case search uses establishment codes from the enums and facet catalog.

Frequently asked questions

Is there an API listing all courts in India with codes?

Yes. The Court Structure API returns states, the districts in each state, the court complexes in each district and the courtrooms in each complex, with codes and names at every level. It is the source for the location codes that the cause-list endpoints accept.

How are High Courts represented?

Within a state, the High Court appears as a special district with districtCode HC. The Supreme Court appears in the states list as state SC with the name India. Always use the code values returned, not the display names, because names can be spelled in different ways while codes stay fixed.

Which path should I call?

Use /api/partner/causelist/court-structure/* with your Partner API token. The older /api/CauseList/court-structure/* path is no longer accessible to partners. The calls return metadata only and are meant to be used freely to discover valid filter values for the Cause List Search and Cause List Dates APIs. Authentication is the same Bearer header as every other partner call.

How does this compare with picking a court on the eCourts portal?

The portal shows dropdowns for one state and district at a time in a browser. This API gives the same hierarchy as JSON, so a program can cache it, build its own pickers, and validate court names against codes without anyone clicking through the portal.

Can an AI assistant look up court codes?

Yes. The eCourtsIndia MCP server has get_states, get_districts, get_complexes and get_courts, which walk the same hierarchy. Claude or ChatGPT can use them to find the right court before searching a cause list, instead of guessing a code and getting an empty answer back.

Are these the same codes used in case search?

Not always. Case search uses court establishment codes such as DLHC01 and two-letter state codes, which you can find with the Court Enums API or the Search Facet Catalog API. The court structure codes are for cause lists and available dates.