Reference, enums & coverage·Explainer·1:60 video

Court complex and police station codes in India: how to get them right, every time

To get the exact code for an Indian court complex or police station, use reference data instead of a hand-kept table. The Court Structure API returns states, districts, court complexes and courtrooms with their codes, and the Police Station Catalog API lists every police station with FIRs on record, by state and district, with its code and the years covered.

Chapters
  1. 0:00Why does a wrong court code return nothing?
  2. 0:10Who keeps the codes right?
  3. 0:20What goes wrong with hand-kept code tables?
  4. 0:31How do you build a court picker?
  5. 0:43How do you turn a name into a filter?
  6. 0:58Which police station registered the FIR?
  7. 1:12Which office keeps land records in each state?
  8. 1:25Why stop keeping code tables by hand?
  9. 1:39What does one clean map make possible?
  10. 1:49Explore the APIs

Why does a wrong court complex or police station code return nothing?

Indian court and police systems do not search by names. A cause list is fetched by state, district, court complex and courtroom code. A case search filters by court and district codes. An FIR is found by state, police station code, number and year. Get one code wrong and the search comes back empty, with no error to tell you why.

Ananya Rao, the engineering lead at Lexline, a fictional case app for lawyers, sees this every week. A user in Hyderabad picks Nampally Criminal Court, the app sends a stale code, and the screen says 0 cases found. The user assumes there is nothing listed. In practice, one wrong row in a code table can mean a missed hearing.

How are Indian courts organised, from state to courtroom?

The district judiciary is organised the way eCourts presents it on its portals. Each state or union territory has districts. Each district has one or more court complexes, usually a court building with many courtrooms. Each complex has courtrooms, each with a number, a court name such as Civil Judge Senior Division, and a presiding officer. High Courts appear within their state as a special district, and the Supreme Court is listed on its own.

On the official portal you walk that tree through dropdowns, one state and district at a time, in a browser. That works for one lookup. It does not give a product a code list it can store, validate against or keep in step when a court moves, a complex is renamed or a new courtroom opens.

How do you build a court picker with the right codes?

Ask for the court structure. The Court Structure API answers four calls: the states, the districts of a state, the court complexes of a district and the courts in a complex. Each level fills the next dropdown, and the last pick is the exact code the search needs.

On Lexline, a user tracking a new case picks Telangana, then Hyderabad, then City Civil Court, code TS••05, then Court 4, Civil Judge, code ••04. The app never stores a name as the key; it stores the code that came back. A nightly job can reload the structure and flag any saved court that no longer matches.

Each courtroom also comes with its court name, its division, such as a motor accident claims tribunal or a civil judge's court, and the presiding officer as shown on the cause list. A litigation team can use that to see who sits in which courtroom of a complex before planning appearances, and an app can show the court the way lawyers actually speak of it, while still storing the code underneath.

How do you turn a name like Pune into an exact filter value?

People type names. Search needs codes. The Search Facet Catalog API takes the words a user typed and returns the matching filter values with their context. A user types Pune; the catalogue returns district 25 in Maharashtra, with the unique key MH/25, because district numbers repeat across states. The same works for courts, case types and acts.

The Court Enums API supplies the other half: live lists of case status, case type, court, High Court, state and bench type codes, each with a plain-English description. WP_C becomes Writ Petition (Civil), BA becomes Bail Application and DISPOSED becomes Disposed, so reports never show raw codes and filters are checked before they are sent. The lists are served live and cached for an hour, so nobody has to edit a spreadsheet when a new case type appears.

How do you find the right police station code?

Station names repeat. A station called Civil Lines exists in Delhi, in Prayagraj and in Raipur, among others, each with its own code, here shown masked as ••0417, ••1182 and ••0935. A name alone cannot tell an FIR search which one you mean.

The Police Station Catalog API returns every state, district and police station with FIRs on record, each with its code, the number of FIRs held and the years covered. It is rebuilt every hour. An app loads it once, shows state, then district, then station, and passes the chosen code to the FIR Lookup and FIR PDF Download APIs.

That also answers the question of which police station registered an FIR. The FIR itself names the station, the district, the number and the year; with the station's code, a lookup confirms the FIR exists and says whether a copy can be downloaded. A station name that fits more than one place comes back with the candidates instead of a guess, so the user picks the right one.

Which source keeps land records in each state?

Land records are the third map a lender or property team needs. Each state names its record of rights differently: RTC in Karnataka, 7/12 in Maharashtra, khatauni in Uttar Pradesh, jamabandi in Punjab. Registration, encumbrance, maps and circle rates often sit on separate portals.

The Land Record Sources API lists the government source for each kind of record in each state, with the records it holds, its languages and its status, and with a state it explains that state's record names, administrative hierarchy down to the plot and a glossary. A lender entering Karnataka sees that the local record is the RTC, which source keeps it, and when it was last read. The Land Data Coverage API then shows what is actually held for that state, by kind of record, with the date of the last run.

What are the limits of court and police station reference codes?

Codes have scope. The court structure codes drive cause list and court date lookups; case search uses establishment codes from the enums and the facet catalogue. High Court codes in the enums are base codes such as DLHC, while search needs the bench form, such as DLHC01, which the facet catalogue returns. District numbers repeat across states, so always keep the state with the district.

The police catalogue lists stations with FIRs on record, not every police post in the country, and Sikkim and Nagaland are not offered. Land coverage varies by state and by kind of record, so check coverage before you promise it to a customer. Land records are information from public sources, not proof of title.

Who uses court complex and police station codes?

Legal apps build court and station pickers that never go stale. Litigation teams map courtrooms to presiding officers before planning appearances. Verification firms match station names typed by field staff to exact codes overnight. Lenders and property teams learn each state's land record before they enter it.

AI agents use the same map over MCP: before an agent searches cases or FIRs, it turns a name into the exact code, so it does not guess and come back empty. One integration covers courts, police stations, case codes and land sources for all of India, with codes kept current and coverage that carries a date.

For a team that has kept code tables by hand, the change is simple: stop editing spreadsheets, load the lists from the source on a schedule, and store codes rather than names. The map stays right, and the team gets back to building the product. The two-minute video above walks through each of these lookups.

QuestionAPIWhat you get
Which court complex and courtroom?Court Structure APIStates, districts, complexes and courtrooms with codes, court names and presiding officers
What is the filter value for this name?Search Facet Catalog APIExact filter values with parent state or court level, such as MH/25
What does this case code mean?Court Enums APICase status, case type, court and bench codes with plain-English labels
Which police station?Police Station Catalog APIEvery station with FIRs on record, by state and district, with code, count and years
Who keeps this state's land records?Land Record Sources APIGovernment sources by kind of record, local record names, hierarchy and glossary
What is held for this state?Land Data Coverage APIRecords held by state and kind of record, with the date of the last run

Which reference API answers which question

Step by step

  1. 1

    Load the court tree

    Call the Court Structure API for states, then districts, complexes and courtrooms, and keep the codes, not the names.

  2. 2

    Resolve typed names

    Send what the user typed to the Search Facet Catalog API to get the exact filter value, such as MH/25 for Pune.

  3. 3

    Label codes in plain English

    Load the Court Enums API once an hour to validate filters and print readable labels for case types and statuses.

  4. 4

    Pick the police station

    Load the Police Station Catalog API, choose state, district and station, and pass the station code to FIR lookups.

  5. 5

    Know each state's land record

    Call the Land Record Sources and Land Data Coverage APIs with a state before building on its land data.

APIs used in this guide

Frequently asked questions

How do I get the code for a court complex in India?

Call the Court Structure API: it returns the states, the districts of a state, the court complexes of a district and the courtrooms in each complex, with the code and name at every level. Those codes drive cause list searches and court pickers.

Why does a court case search return zero results?

Usually because a filter code is wrong or out of date. A wrong code returns nothing rather than an error. The Court Enums and Search Facet Catalog APIs give the live codes and turn names such as Pune or Delhi High Court into the exact filter value.

Which portal keeps land records in each Indian state?

It differs by state: RTC in Karnataka, 7/12 in Maharashtra, khatauni in Uttar Pradesh, jamabandi in Punjab. The Land Record Sources API lists the government source for each kind of record in each state, with the local record names. Records are information from public sources, not proof of title.

How many court complexes does a district have?

Every district has at least one court complex, and most larger districts have several, such as separate civil, criminal and family court buildings. The Court Structure API lists all the complexes of a district with their codes.

Are High Courts in the court structure?

Yes. A High Court appears within its state as a special district with the code HC, and the Supreme Court is listed separately. For case search, use the bench form of the High Court code from the facet catalogue.

Is there a list of police stations with codes for all of India?

The Police Station Catalog API lists every state, district and police station with FIRs on record, with codes, FIR counts and years covered, rebuilt every hour. Sikkim and Nagaland are not offered.

Can AI agents use these reference codes?

Yes. The same reference data is available to AI agents over MCP, so an agent can turn a court, district or station name into the exact code before it searches, instead of guessing.

Video transcript

Which court complex? Which police station? Get one code wrong, and your search comes back empty.

Ananya Rao builds Lexline, a case app for lawyers. Every screen starts with one choice: which court.

Her team kept code tables by hand. Names repeat across districts, courts move, and one stale row means a missed hearing.

How do you build a court picker? Ask for the court structure. State, district, complex and courtroom, each with its exact code.

How do you turn a name into a filter? A user types Pune. The catalogue returns district twenty five, Maharashtra, and labels every code in plain English.

Which police station registered the FIR? Every station with FIRs on record, by state and district, with its code and years covered. Rebuilt every hour.

Which office keeps land records in each state? A lender sees the local record names, their sources and what is covered, before entering a state.

Why stop keeping code tables by hand? One call covers all of India, codes stay current, coverage comes with a date, and AI agents use the same map.

Courts, police stations, businesses and land, joined on one clean map of India. Under every product you build.

Billion Insights Ventures. Explore the APIs at billioninsightsventures dot com slash APIs.

Records shown are information from public sources, read as published. They are not a legal opinion, proof of title or a background verdict. Names and identifiers in examples are fictional.