Skip to main content

How Legal Data Is Built: Statutes, Court Records and Analytics in the US, Europe and India

You run a US legal-data product. A customer with a team in India asks if you can do for Indian courts what you already do for federal ones: pull the statute, the cases that apply it, and the patterns across those cases. Where do you start?

Short answer: start with how legal data is built. It grows in three layers, and each layer needs the one below it. Primary law (statutes, regulations, court rules) is the base. Court records (dockets, orders, judgments) sit on top. Analytics counts patterns across the records. Each layer is a lookup on an ID from the layer below, so one bad ID at the bottom becomes a wrong number at the top.

The US built all three layers first, with stable IDs and federal court records in one place, but it charges for access. Europe agreed on shared IDs early, but how many court decisions get published depends on the country. India is catching up the way Europe did, with state-led programmes and new IDs. Its Supreme Court already publishes its daily orders as well as its judgments. India's gap is IDs, not coverage.

Written on 23 November 2026 by Simrandeep Parmar, founder of Siddh.ai, and edited by Vaquill for length and plain English. This is general information, not legal advice.

Disclosure. The author runs Siddh.ai, which builds a record of the Supreme Court of India's orders, benches and advocates from more than 800,000 of the Court's orders since January 2021. Statutes and bulk judgments are Vaquill's side of the problem. Orders, benches and advocates are the author's side. Vaquill sells a data API that includes Indian law, so we have a stake too.

TL;DR

  • Every layer is a lookup on an ID. A section plus a date, then a case, then a person or a bench.
  • Court records need stable IDs and full coverage. The US has both, at $0.10 a page. Germany has IDs but publishes fewer than 1% of its decisions. India's Supreme Court publishes its daily orders, but most orders carry no ID of their own.
  • India's statute layer has just moved. The 2024 criminal codes reuse old section numbers for different offences, and India Code changed every item's web address in August 2026.
  • The hard join in India is orders to cases, benches and advocates. One case can carry 3 numbers, pass through several benches, and list about 50 advocates by name only.

Three layers, three lookups

Loading diagram...
LayerWhat it holdsThe ID that links it
Primary lawStatutes, regulations, court rulesA section number, plus the date that text was in force
Court recordsDockets, orders, judgmentsA case number, plus the sections (and dates) each order cites
AnalyticsCounts and patterns across recordsThe case, bench and advocates behind each count

Vaquill's post on court records APIs and court data APIs puts it this way: records are what the court emitted, and data is what gets built on top. Analytics adds no new facts. It counts the facts in the two layers below, so every missing or wrong ID shows up as a wrong number on top.

The layers arrive in this order for a plain reason. While a legal system is small, lawyers read the law and the cases themselves. As laws, amendments and cases pile up, reading stops scaling. First people need the law in one official place, with stable section numbers. Then they need court records they can search and link to that law. Only then can anyone count across cases with confidence.

Layer 1: primary law, looked up by section and date

The ID looks simple (a section number), but it only works with a date attached, because numbers move.

US

In 2014 the Office of the Law Revision Counsel created Title 52 of the U.S. Code. Section 2 of the Voting Rights Act moved from 42 U.S.C. 1973 to 52 U.S.C. 10301. No text changed, only the citation (OLRC, Title 52).

Europe

Europe has dozens of legal systems and languages, so its fix was a shared address format. The European Legislation Identifier (ELI), set out in Council conclusions in 2012, gives legislation a stable web address in one pattern across countries (EUR-Lex ELI register).

India

India's statute layer moved twice in two years.

On 1 July 2024, the Bharatiya Nyaya Sanhita (BNS), the Bharatiya Nagarik Suraksha Sanhita (BNSS) and the Bharatiya Sakshya Adhiniyam (BSA) came into force. They replaced the Indian Penal Code (IPC), the Code of Criminal Procedure (CrPC) and the Evidence Act (Ministry of Home Affairs). The new codes reuse old numbers for different law:

SectionOld codeNew code
302IPC: murderBNS: uttering words to wound religious feelings
482CrPC: the High Court's inherent power, the usual route to quash a criminal caseBNSS: anticipatory bail

Murder moved from IPC section 302 to BNS section 103. The old codes still govern what happened before the switch, so both numbering systems will appear in orders for years. A section number alone no longer says which law you mean. The clash on 482 matters most for Supreme Court data, because two common kinds of criminal matter now share a number.

Vaquill's citation resolver does not guess here. Given "u/s 302 IPC", it returns both provisions and asks you to narrow the search, for example with a date. Its corresponding-provisions endpoint maps IPC to BNS and CrPC to BNSS. The map is copied from the table published by the Bureau of Police Research and Development, part of the Ministry of Home Affairs, and that table is not complete. The Evidence Act mapping is not live yet.

Then, in August 2026, India Code moved to a new domain and gave every item a new web address. There are no redirects, so links to the old addresses return an error. Vaquill now returns no publisher link rather than a broken one. Even the address of the law moved.

Here is what that does to analytics. Ask how many murder cases reach the Supreme Court each year. Orders name the offence as text, such as "Section 302 IPC". A counter that matches on "302" mixes murder with a speech offence, and misses every murder charged under the new code. The counting is fine. The ID was wrong two layers down.

Layer 2: court records, looked up by case

Court records need two things before anyone can count them: every decision published, and a stable ID on each one. Each region got them in a different order.

US: both, at a price

The Judicial Conference set up PACER in 1988 (PACER). Electronic filing reached bankruptcy courts in 2001 and district courts in 2002 (US Courts). Each case has a docket number, unique within its court. Its parties, attorneys, judge and filing dates sit in fixed fields. Cases are usually assigned to a judge at random (Federal Judicial Center). Access costs $0.10 a page, capped at $3 a document (PACER fees).

Europe: IDs first

The European Case Law Identifier (ECLI), set out in Council conclusions in 2011, gives a decision one citation format across countries: country, court, year and number. The Court of Justice's 2005 judgment in Schempp (C-403/03) is ECLI:EU:C:2005:446 (Court of Justice).

Open-data laws then began to open the decisions themselves. France's Digital Republic Act of 2016 made open data the default for public data (French Ministry of Justice). But an ID does not help if the decision is never published. A study by Hanjo Hamann, reported by Legal Tribune Online in 2021, found that fewer than 1% of German court decisions are published (LTO).

India: coverage first

The Supreme Court publishes its daily orders as well as its judgments, and the state is paying to digitise the rest. The third phase of the eCourts programme, approved in 2023, has ₹7,210 crore (roughly US$0.8 billion) for digitised case records and paperless courts (Ministry of Law and Justice).

Judgments have IDs. The Supreme Court began assigning neutral citations, such as 2023 INSC 1, in 2023, and has back-filled older judgments. Vaquill's India case-law API uses them as its Supreme Court IDs, for example 2020_INSC_548. Orders do not have them, and orders are most of the record.

By Siddh.ai's count, the Supreme Court listed 12,263 matters in the 30 days to 20 November 2026 and delivered 77 judgments. That is about 1 judgment for every 160 matters listed.

What one case looks like

Subhasindu Das v. Bacchu Ranjan Das is a dispute over the running of a charitable society. It was decided on 19 November 2026. The case figures in this post come from its page on Siddh.ai.

  • 3 identifiers. Diary No. 34148/2022 from the day it was filed, Civil Appeal No. 841/2023 once it was registered, and a national case number (CNR) from eCourts.
  • 4 matters in one judgment. Two of them were filed only in 2026.
  • 14 hearings over 4 years, before 5 different judges.
  • About 50 advocates' names across its orders.
Loading diagram...

Three things make this layer harder in India than in the US:

  • Benches change. A Supreme Court case goes before whichever bench the roster picks on the day, so one case can pass through several benches. Count by bench and by hearing, not by "the judge on the case".
  • Volume. About 5.64 crore (56.4 million) cases are pending across Indian courts, the Law Minister told the Rajya Sabha (Free Press Journal, 24 July 2026). When Siddh.ai counted the Supreme Court's cause list for Monday 16 November 2026, 17 benches sat and most had 50 matters listed for that one day.
  • Thin IDs for lawyers. The Court's list of Advocates-on-Record gives each one a code (the CC code), but orders do not print it. Other advocates, Senior Advocates included, are not on that list. Indian advocates also may not advertise beyond a few basic details online, so there are few public profiles to match a name against. The same advocate can appear under several spellings.

What a joined record looks like

Every value below except read_as_at comes from the public record for that case. read_as_at is the date at which to read the cited law. The work is in filling these fields for every order, every day.

{
  "case": {
    "diary_no": "34148/2022",
    "case_no": "C.A. No. 841/2023",
    "cnr": "SCIN010341482022",
    "decided_with": ["C.A. No. 842/2023", "SLP (C) No. 9345/2026", "SLP (C) No. 9774/2026"]
  },
  "order": {
    "date": "2026-11-19",
    "kind": "judgment",
    "bench": ["Vikram Nath", "Sandeep Mehta", "Aparesh Kumar Singh"]
  },
  "cites": [
    { "act": "Code of Civil Procedure, 1908", "section": "92", "read_as_at": "2026-11-19" }
  ]
}

The cites entry is where law and court records meet. It holds a section and a date, which is exactly what a statute API needs to return the right text.

Layer 3: analytics, looked up by people and benches

US

Analytics in the US grew straight out of the dockets. Lex Machina grew out of work at Stanford and was bought by LexisNexis in November 2015 (RELX). It could clean PACER data rather than create it, because the IDs and the coverage were already there.

India

Analytics is just starting. In the US, PACER opened court records to the public in 1988, and analytics companies came much later. In India, court records are going digital and the first analytics tools are appearing at the same time. Before any Indian number means anything, you have to decide what you are counting: cases, orders or hearings. The two counts builders reach for first, by bench and by advocate, are where most mistakes happen.

What goes wrong when you count by bench

A bench is not a fixed unit. In the Supreme Court it is the set of judges sitting together on a given day, and the roster reshuffles those sets. So decide first what you are counting: one exact combination of judges, or every bench a judge sat on. Then decide which bench a case belongs to.

The case above went before 5 different judges over 14 hearings. Credit only the bench that delivered the judgment and you erase the benches that heard it earlier. Credit every bench and you count the case several times.

Two more traps inflate the numbers:

  • A listing is not a hearing. Many listed matters are not reached, are adjourned, or go before the Registrar (a court officer) instead of judges.
  • One order can cover dozens of connected matters. Keep them together, or one order counts as 40 cases.

What goes wrong when you count by advocate

  • Identity comes first. If one advocate's name is spelt 3 different ways, a simple count treats them as 3 people, each with only part of their cases. Two different advocates with the same name get counted as one.
  • Role comes next. An order lists everyone who appeared for a side: the Senior Advocate who argued, the Advocate-on-Record who filed, and the juniors who attended. An appearance is not an argument.
  • Volume follows the kind of practice. Government counsel appear in thousands of matters because the state is a party to so many.
  • A result belongs to the whole side, not to one name on it.

A count of appearances tells you how often someone appeared in a kind of matter. It does not tell you how well.

US, Europe and India side by side

Stable IDs in court recordsCoverage of court recordsAnalytics
USDocket numbers, one assigned judge, attorneys in fixed fields (PACER 1988; e-filing 2001 and 2002)Federal court records, paid by the pageMature: Lex Machina, bought by LexisNexis in 2015
EuropeECLI for decisions (2011), ELI for legislation (2012)Depends on the country: Germany publishes fewer than 1%Limited by what is published
IndiaNeutral citations for judgments (2023, back-filled); orders keyed only by diary, case and CNR numbersSupreme Court daily orders and judgments, freeJust starting

The US had both IDs and coverage before analytics arrived. Europe agreed its IDs first and is still opening its decisions. India has the coverage at its Supreme Court, and is now adding the IDs, as Europe did.

If you are adding India to a US product

  • Map old criminal-code sections to new ones, with dates. Resolve every citation with the date it applied.
  • Start with the Supreme Court. Its judgments carry neutral citations and its orders are free. High Court neutral citations follow one pattern (year, court code, number) with different court codes and start dates.
  • Treat orders as the record, not judgments. Join every order to its case through all of its numbers: diary, case and CNR.
  • Choose your unit before you count. Cases, orders or hearings, with connected matters kept together.
  • Resolve names, do not key on them. Use the AoR code where one exists, and match every other name to a person before you count by person.
Check the count
Question 1 of 4

You count murder cases in Supreme Court orders from 2025 by searching the text for "302". What goes wrong?

For Indian statutes through one API, see Vaquill's India legislation API.

FAQ

What is a neutral citation in India?

A citation the court assigns to its own judgment, independent of any law report. Supreme Court judgments carry them in the form 2023 INSC 1. High Courts use the same shape with their own codes: the Delhi High Court's look like 2024:DHC:9260 and the Kerala High Court's like 2025:KER:48272.

Why does section 302 mean two different things in India now?

Murder was IPC section 302 and is now BNS section 103. BNS section 302 is a different offence: uttering words to wound religious feelings. The old code still governs conduct before 1 July 2024, so a citation needs a date or a code name to be read correctly.

What is the difference between a diary number and a case number?

A diary number is given when a case is filed in the Supreme Court. A case number, such as Civil Appeal No. 841/2023, is given once the case is registered. Orders may use either, so a join needs both.

Where can I get Supreme Court of India orders and judgments?

The Court publishes daily orders and judgments on its own website, sci.gov.in, case by case. For judgments in bulk, Vaquill's India case-law API holds more than 12.8 million Supreme Court and High Court judgments.

Where can I get Indian statutes in machine-readable form?

India Code is the official source for central and state Acts. Its web addresses changed in August 2026 with no redirects, so saved links may fail. For section-by-section access through an API, see the India legislation API linked above.

Do European courts publish their decisions?

It depends on the country. The shared ECLI format makes decisions easy to cite across borders, but it does not make them public. Germany publishes fewer than 1% of its decisions, according to a study reported in 2021. France's 2016 Digital Republic Act made open data the default for public data.

Further reading

About the author. Simrandeep Parmar is the founder of Siddh.ai.

Legal data built for your AI agents.
Vaquill AI is a legal data lab. US case law via REST and MCP, and every US statute, regulation, constitution and executive order via REST, MCP or SQL: 6M+ statute sections with section-level citations and links to the official source. Plus a free open statutes dataset.
17 min read

New legal AI guides, weekly.

Simrandeep Parmar

Founder, Siddh.ai

Simrandeep is the founder of Siddh.ai, which builds a record of Supreme Court of India orders, benches and advocates. This is a guest post, edited by Vaquill for length and plain English.

Cookie preferences

Choose what Vaquill may use on this browser. You can change this at any time from “Cookie settings” in the footer.

Details in the Cookie Policy.