Law

Overview & coverage

Building Endpoints below are specified; the index is being built. Shapes are final, parameter details may shift slightly. The playground unlocks per endpoint as each ships.

CorpusScaleWhat each record carries
Statutes26 jurisdictions · 33,103 laws · 1,537,422 articlesOriginal text; zh/en translation; per-article extraction: heading, summary, norm type, subjects, conditions, consequences, key figures, references, typical questions
Chinese judgments4,510,354 → 17,667,475Structured brief: cause, court, level, round, date, disputed issues, facts, reasoning, decision, parties, articles (normalised), amount. Opinion and decision as sections

Jurisdictions (ISO3): CHN, JPN, GBR, USA, DEU, KOR, DNK, POL and 18 more. Chinese statutes include national laws, judicial interpretations, administrative regulations and local regulations.

Coverage & bias notice

Chinese civil judgments are ~12% indexed and the sample is not random — it follows the enrichment queue. Criminal judgments are 100%. Every Law response carries a coverage block: {"case_nature": "民事", "indexed": 1.8e6, "total": 1.44e7, "note": "…"}. Copy note into your agent’s tool description so it qualifies civil-case claims. Until enrichment completes, treat civil retrieval as indicative, not exhaustive.

Citation format — statute: [中华人民共和国刑法 第266条]; case: [(2022)湘0902刑初12号]. Both resolve: law_id + article, and uuid.

Statutes (/law/)

Read a statute in layers: retrieve → brief → article → context → section → raw. Article 266 of the Criminal Law is ~250 characters; the whole law is ~90k.

Statutes · retrievecoming soon

GET/law/?type=retrieve&query={query}

Article-level hybrid retrieval over 1,537,422 articles from 26 jurisdictions. Returns article briefs: law, article number, heading, one-line summary, norm type, status.

Parameters

ParameterTypeDescription
query string REQUIRED Natural language, any language.
jurisdiction string[] OPTIONAL ISO3: CHN, JPN, GBR, USA, DEU, KOR…
law_id string OPTIONAL Restrict to one law.
law_type string OPTIONAL Instrument type, from /law/facets.
domain string OPTIONAL Legal domain, from facets.
status string OPTIONAL in_force / repealed / not_yet.
norm_type string[] OPTIONAL Controlled vocabulary: obligation, prohibition, penalty, definition…
date_search_type exact | after | before | between OPTIONAL Pair with date_str.
date_str string[] OPTIONAL YYYY / YYYY-MM / YYYY-MM-DD.
lang zh | en OPTIONAL Language of returned text; default original.
top_k integer = 10 1–100.

Statutes · briefcoming soon

GET/law/?type=brief&law_id={law_id}

One law: metadata (titles in three languages, issuer, dates, status) plus the chapter tree with a one-line summary per chapter. The head of a statute.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.

Statutes · articlecoming soon

GET/law/?type=article&law_id={law_id}&article={article}

One article: original text, translation, extraction (subjects, conditions, consequences, key figures), references, and how many judgments cite it.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.
article string REQUIRED Article number.
lang string OPTIONAL Comma-separated languages to include.

Example

{ "law_id": "chn:law:刑法", "article": "266", "heading_zh": "诈骗罪",
  "text": "诈骗公私财物,数额较大的,处三年以下有期徒刑、拘役或者管制,并处或者单处罚金;…",
  "text_en": "Whoever defrauds public or private property, if the amount is relatively large, …",
  "extraction": { "norm_type": ["penalty"], "subjects": ["行为人"], "conditions_zh": ["数额较大"], "consequences_zh": ["三年以下有期徒刑、拘役或者管制,并处或者单处罚金"], "key_facts": [] },
  "refs": [], "cited_by_cases": 214380 }

Statutes · contextcoming soon

GET/law/?type=context&law_id={law_id}&article={article}

The article with its neighbours and the chapter it sits in.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.
article string REQUIRED Article number.
window integer = 2 Articles on each side.

Statutes · sectioncoming soon

GET/law/?type=section&law_id={law_id}&chapter={chapter}

One chapter, continuous.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.
chapter string REQUIRED Chapter id from brief.

Statutes · rawcoming soon

GET/law/?type=raw&law_id={law_id}

Full text as markdown.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.

Statutes · cases (article → cases)coming soon

GET/law/?type=cases&law_id={law_id}&article={article}

Judgments that cite this article. Case retrieve with law_refs pre-filled; accepts the same case filters.

Parameters

ParameterTypeDescription
law_id string REQUIRED Law identifier, {country}:{subset}:{name}, as returned by retrieve.
article string REQUIRED Article number.
top_k integer = 10 1–100.

Statutes · facetscoming soon

GET/law/facets

Legal values and counts for every filter field.

Cases (/case/)

China only. Read a judgment in layers: retrieve → brief (~100 tok) → head (~400) → section opinion (~600) → raw (~2k).

Cases · retrievecoming soon

GET/case/?type=retrieve&query={query}

Hybrid retrieval over Chinese judgments (China only). Returns briefs: summary, case number, court, date, cause, articles cited. Every response carries coverage.

Parameters

ParameterTypeDescription
query string REQUIRED Natural language.
case_nature 刑事 | 民事 | 行政 | 执行 OPTIONAL Case nature.
cause string[] OPTIONAL Cause of action, from facets.
province string OPTIONAL Province.
city string OPTIONAL City.
court_level string OPTIONAL Court level.
trial_round 一审 | 二审 | 再审 OPTIONAL Trial round.
date_search_type exact | after | before | between OPTIONAL Pair with date_str.
date_str string[] OPTIONAL YYYY / YYYY-MM / YYYY-MM-DD.
law_refs string[] OPTIONAL Cited article, CN/刑法/266.
amount json OPTIONAL {gte, lte}, CNY.
sentence_months json OPTIONAL {gte, lte}.
probation true | false OPTIONAL Probation granted.
top_k integer = 10 1–100.

Cases · briefcoming soon

GET/case/?type=brief&uuid={uuid}

The L1 card, ~100 tokens: cause, court, level, date, disputed issues, articles, amount, verdict.

Parameters

ParameterTypeDescription
uuid string REQUIRED Judgment UUID, as returned by case retrieve.

Cases · headcoming soon

GET/case/?type=head&uuid={uuid}

Every structured field: claims, disputed issues, facts, circumstances, reasoning, decision, parties, articles, amount.

Parameters

ParameterTypeDescription
uuid string REQUIRED Judgment UUID, as returned by case retrieve.

Cases · sectioncoming soon

GET/case/?type=section&uuid={uuid}§ion={section}

One section of the judgment, verbatim from the original record.

Parameters

ParameterTypeDescription
uuid string REQUIRED Judgment UUID, as returned by case retrieve.
section parties | claims | facts | opinion | decision REQUIRED opinion = 本院认为, decision = 判决如下.

Cases · preview / rawcoming soon

GET/case/?type=preview&uuid={uuid}

First N characters of the full judgment, or type=raw for all of it.

Parameters

ParameterTypeDescription
uuid string REQUIRED Judgment UUID, as returned by case retrieve.
characters integer = 3000 Characters to return.

Cases · laws (case → articles)coming soon

GET/case/?type=laws&uuid={uuid}

The articles a judgment cites, resolved to article IDs, each readable via article.

Parameters

ParameterTypeDescription
uuid string REQUIRED Judgment UUID, as returned by case retrieve.

Cases · facetscoming soon

GET/case/facets

Legal values and counts: causes, provinces, courts, levels, rounds.