API & integration guide

Chinese Case Law API: Document Structure, Fields, and Integration Patterns for Legal AI Teams

Every legal AI team that expands jurisdiction coverage eventually hits the same wall: Chinese court judgments do not look like common-law opinions, and parsers tuned for US or UK reporters mis-segment them. China Judgements Online had published roughly 143 million effective judgments by December 2023, according to figures cited in SPC press briefings — the largest public collection of court decisions in the world.

This guide is a working anatomy of that corpus: the case-number (案号) system, the four-level court hierarchy, the cause-of-action (案由) taxonomy, and how the fixed sections of a PRC judgment map to the fields a Chinese case law API should expose.

It is written for the teams making integration decisions: legal AI product engineers, law-firm knowledge management, and data teams evaluating PRC court judgments as structured data.

Why PRC court judgments need their own data model

Two background facts shape every technical decision here. The first is scale: roughly 143 million judgments published through December 2023, with cumulative site visits above 108.1 billion, per SPC figures. The second is supply: annual publication fell from 19.2 million documents in 2020 to 14.9 million in 2021, 10.4 million in 2022, and about 5.11 million in 2023, per a December 2023 SPC press briefing; it partially recovered to more than 9.69 million in 2024 (up 92.7%) and about 10.98 million in 2025, per the March 2026 SPC work report — still only about 57% of the 2020 peak. Since January 2024, the complete national judgment database has been accessible only inside the court system.

Three engineering consequences follow:

For the full supply curve and its market implications, see The state of Chinese case law data, 2026.

Anatomy of a Chinese court judgment: the segments that matter

PRC judgments are strikingly formulaic. Courts at every level follow essentially the same template — exactly what makes structuring 170M+ documents feasible, provided the data model understands the conventions.

Start with the case number (案号), printed in the header of every document. A schematic example, (2023)京01民终NNNN号, decodes as:

Case numbers are how Chinese lawyers and courts cite decisions; for a data team they are the native primary key, encoding court, region, year, case type, and procedural posture for free. Court codes sit on a four-level hierarchy — basic people's courts, intermediate courts, provincial high courts, and the Supreme People's Court, plus specialized IP, internet, maritime, and financial courts — so court level is a first-class ranking and filtering signal.

SegmentChinese markerWhat it contains
Header判决书 / 裁定书 / 调解书Court name, document type (judgment, ruling, mediation statement), case number
Parties当事人Each party with its procedural role — 原告 plaintiff, 被告 defendant, 上诉人 appellant — plus counsel
Procedural history审理经过How the case reached this court, including prior case numbers
Claims and defenses诉辩主张What each side asked for and argued
Facts found经审理查明The facts the court treats as established
Reasoning本院认为"This court holds" — the legal analysis and statute application
Disposition判决如下Numbered holdings, outcome, fee allocation, appeal rights

One more court-assigned label matters: the cause of action (案由), a hierarchical taxonomy maintained by the Supreme People's Court — a sales-contract dispute sits under the contract-disputes branch. Court-assigned rather than model-inferred, it is unusually reliable as a retrieval facet.

From anatomy to API fields: making 170M+ judgments machine-usable

A Chinese case law API earns its keep by exposing that anatomy as queryable fields rather than one undifferentiated text blob. The core schema:

FieldDerived fromWhat it unlocks
case_number案号Citation, deduplication, joins across procedural stages
court, court_level, regionHeader + court codeJurisdiction filters, hierarchy-aware ranking
decision_dateDocument tailTime-sliced corpora, leakage-free eval splits
document_type判决书 / 裁定书 / 调解书Judgment vs. ruling vs. mediation statement
procedureCase-type code (初/终/再/执)First instance, appeal, retrial, enforcement
cause_of_action案由 taxonomy pathAnalogous-case retrieval without semantic guesswork
parties[] with roles当事人 blockEntity workflows, individual vs. organization handling
statutes_cited[]Citations in the reasoningStatute-centric citation graphs
sections经审理查明 / 本院认为 / 判决如下Facts / reasoning / disposition for semantic-role chunking

Section-boundary segmentation is the highest-leverage field for retrieval quality. Fixed-window chunking mixes boilerplate party recitals into the same vectors as legal reasoning; chunking on 本院认为 boundaries yields embeddings that actually represent legal analysis.

Procedural linkage matters almost as much: an appeal judgment references its first-instance case number, so a structured corpus can collapse one dispute into a single timeline for deduplication and outcome-chain analysis.

Four integration patterns for a Chinese case law API

Across legal AI teams working with PRC court judgments as structured data, four patterns recur:

  1. RAG retrieval layer. Hybrid retrieval beats pure dense search here: pre-filter by cause of action, court level, region, and date, then run embedding retrieval over reasoning sections only. Grounded answers cite case numbers users can verify — that loop is what builds trust with lawyer users.
  2. Citator-style linking. PRC law has no stare decisis, so a US-style "cited by" graph is the wrong model. The useful edges are case-to-statute, case-to-case along procedural lineage, and alignment against the curated reference layers: SPC Guiding Cases and the People's Court Case Library, which opened to the public on February 27, 2024 with 3,711 cases and had grown to about 5,327 by January 2026. The curated layer is tiny next to a 170M+ corpus — the corpus supplies the statistical depth behind it.
  3. Eval set construction. Structured metadata enables stratified sampling by cause of action, court level, region, and year for outcome-prediction, statute-retrieval, and fact-extraction benchmarks, with decision dates supporting leakage-free temporal splits. One caution: documents from the 2021–2023 publication trough are underrepresented on the public web, so web-scraped eval sets skew. A full snapshot lets you stratify against the actual distribution.
  4. Agent tools and MCP. Agents need two primitives: deterministic fetch-by-case-number and parameterized search over the fields above. SinoVerdict exposes both through a REST API, bulk dataset, and MCP server, so MCP-compatible clients can call Chinese case law as a tool — see how access works.

Why raw HTML scraping fails — and what a structured snapshot solves

Teams sometimes budget China coverage as "a crawler plus a parser." Three realities argue against that plan:

A structured snapshot inverts the equation: documented coverage of 170M+ judgments through 2023, one normalized schema across the archive, provenance you can show procurement and counsel, and incremental updates available on request. For commercial structures and diligence questions, see the guide to licensing Chinese court data.

How PRC judgment data differs from English case law data

If your stack was designed around US or UK case law, five structural differences deserve attention:

DimensionEnglish case lawPRC judgments
IdentifierReporter and neutral citationsCourt-issued case number (案号) encoding year, court, and case type
PrecedentBinding stare decisis, deep citation chainsStatutes govern; curated reference layers are persuasive, not binding
Opinion formDiscursive prose, concurrences and dissentsOne fixed template; no published dissents
Editorial layerPublisher-built headnotes and key-number systemsNo equivalent at scale — structure must come from the data model
Party dataPractices vary by jurisdictionNames retained; identifiers such as ID numbers and addresses redacted under SPC publication rules

Language is the sixth difference, and the decisive one. Primary PRC case law is in Chinese, and English-language coverage from incumbent providers is thin at corpus scale. As of mid-2026: LexisNexis's China law collection (LNCHNL) comprises roughly 3,000 English-translated documents; vLex — acquired by Clio for $1 billion in November 2025, claiming 110 jurisdictions and more than a billion documents — lists international collections and secondary commentary on its public China page, while mainland China does not appear in its primary-law jurisdiction list; and the Westlaw China site is currently unreachable.

The practical conclusion: at corpus scale you work in Chinese, joining on case numbers and statutes rather than precedent chains. Plan for cross-lingual embeddings or translate-at-query, statute-aware citators, and parsers that resolve 案号 formats.

Compliance notes for cross-border use (informational, not legal advice)

The following is informational background only, not legal advice. Engage qualified PRC counsel before structuring any data transaction.

The buyer-side takeaway: usage scope belongs in the license text, compliance documentation in diligence — the licensing guide above lists the questions to ask.

This article is informational only and does not constitute legal advice. Figures are drawn from publicly reported sources, including Supreme People's Court press briefings and work reports.

Frequently asked questions

What fields should a Chinese case law API expose?

At minimum: case number, court with level and region, decision date, document type, procedural stage, cause of action, parties with roles, cited statutes, and full text segmented into facts, reasoning, and disposition. These mirror the fixed template of PRC judgments, so they can be populated consistently at corpus scale.

How are Chinese court judgments cited?

By case number (案号), a court-issued identifier combining the docket year, a court code, a case-type code, and a serial number. A number containing 京01 and 民终, for example, indicates a civil appeal before the Beijing No. 1 Intermediate People's Court. There is no reporter or neutral-citation system, so the case number serves as the primary key for retrieval and citation.

Can we scrape China Judgements Online instead of licensing structured data?

A crawl started today cannot reconstruct historical coverage: annual publication in 2025 was roughly 57% of the 2020 peak according to SPC work-report figures, and the complete national judgment database launched in January 2024 is internal to the courts. Public pages also carry no machine-readable fields, so the full normalization burden falls on your team. Most teams that cost this out license a structured snapshot instead.

Does China follow precedent the way common-law systems do?

No. PRC courts decide under statutes, and prior judgments are not formally binding, so citation networks are statute-centric rather than precedent-centric. The Supreme People's Court maintains curated reference layers — Guiding Cases and the People's Court Case Library, which opened in February 2024 with 3,711 cases and held about 5,327 by January 2026 — that courts consult for consistency.

How current is the SinoVerdict dataset?

SinoVerdict licenses a structured snapshot of 170M+ Chinese court judgments with documented coverage through 2023, delivered as a bulk dataset, REST API, and MCP server. Incremental updates are available on request under enterprise arrangements, and a trial API key is available for evaluation.

Is licensed Chinese judgment data usable cross-border?

Published judgments are redacted under Supreme People's Court rules — party names are retained while identifiers such as ID numbers and addresses are removed — and PRC law defines specific pathways for cross-border transfers. License agreements typically exclude providing data to foreign judicial or law-enforcement authorities, consistent with Article 36 of the Data Security Law. This is general information, not legal advice; review any specific arrangement with qualified PRC counsel.

Test the structure against your own stack

Request a trial API key or a coverage report broken down by year, region, court level, and cause of action — and evaluate the schema on real PRC judgments before you commit.

Request trial access