Sourcing & compliance

Can You Crawl Chinese Court Judgments for LLM Training? What robots.txt Actually Says

Somewhere in the planning of every China-coverage feature, an engineer says the reasonable thing: the judgments are published by the courts, so let's just crawl them. It is a fair proposal and it deserves a factual answer rather than a vendor's shrug. The factual answer happens to live in a single 982-byte file that anyone can fetch in ten seconds, and almost nobody on these calls has read it.

So this piece does something narrow and, we hope, useful: it reads that file line by line, checks it against the crawler documentation that OpenAI, Anthropic, Google and Perplexity publish about their own bots, and then—this part matters more than the rest—states plainly the four things none of it proves. Every factual claim below is a URL you can retrieve yourself. Where we are uncertain, we say so.

Informational only, not legal advice. Nothing here alleges that any company has crawled any site, and nothing here is a claim about what is lawful in your jurisdiction. Retrieval dates are given so you can re-verify; files change.

The file, parsed line by line

Retrieved 10 August 2026 from https://wenshu.court.gov.cn/robots.txt: HTTP 200, 982 bytes, SHA-256 beginning 0c97ffd2f7ae. It contains 20 User-agent groups, and they fall into exactly three buckets.

BucketCountDirectiveUser agents named
Allowed15Allow: / with Disallow: /?BaiduSpider, Googlebot, MSNBot, Baiduspider-image, YoudaoBot, Sogou web spider, Sogou inst spider, Sogou spider2, Sogou blog, Sogou News Spider, Sogou Orion spider, ChinasoSpider, Sosospider, yisouspider, EasouSpider
Blocked by name4Disallow: /HuihuiSpider, GwdangSpider, EtaoSpider, WochachaSpider
Everything else1User-agent: * then Disallow: /— (the catch-all, and it is the last group in the file)

Reproduce it in one line, and compare the hash against ours:

curl -s https://wenshu.court.gov.cn/robots.txt | shasum -a 256
# 0c97ffd2f7ae2ec7f72b3b9401fd75162b59f1bf536b56515585741acbc970f8

A short note on method, because the number is easy to get wrong and we got it wrong ourselves in an internal draft: 19 is the count of named user agents (15 + 4), not the count of allowances. If you see "19 crawlers allowed" anywhere, including in an earlier version of our own notes, it is a miscount.

Which AI crawlers are named? None of them.

We grepped the file, case-insensitively, for every AI-associated user-agent token we could think of. The result is uniform:

TokenOccurrencesTokenOccurrences
GPTBot0PerplexityBot0
OAI-SearchBot0Perplexity-User0
ChatGPT-User0CCBot0
ClaudeBot0Bytespider0
Claude-SearchBot0Applebot0
Claude-User0Amazonbot0
Google-Extended0Meta-ExternalAgent0

Fourteen tokens, zero appearances. Under the standard longest-match convention, each therefore falls into the final User-agent: * group, whose sole directive is Disallow: /. That is the whole finding. It is small, it is checkable, and it is the single most load-bearing fact in the build-versus-buy conversation about Chinese case law—which is why it is strange that it circulates so rarely.

The distinction almost everyone collapses: three kinds of bot

Here is where discussions of this topic usually go wrong, including ours before we sat down with the primary sources. "AI crawler" is not one thing. The fourteen tokens above belong to three functionally different classes, and the vendors themselves are precise about the difference in their own documentation.

ClassExample tokensWhat the operator's own documentation says
Training corpusGPTBot, Google-Extended (control token)OpenAI: "GPTBot is used to make our generative AI foundation models more useful and safe." and "Disallowing GPTBot indicates a site's content should not be used in training generative AI foundation models."
Search / answer groundingOAI-SearchBot, Claude-SearchBot, PerplexityBotPerplexity: "PerplexityBot is designed to surface and link websites in search results on Perplexity. It is not used to crawl content for AI foundation models."
User-triggered fetchChatGPT-User, Claude-User, Perplexity-UserOpenAI: "Because these actions are initiated by a user, robots.txt rules may not apply." Perplexity, on its user fetcher: "this fetcher generally ignores robots.txt rules."

Two consequences follow, and they cut in opposite directions.

First, the honest version of the finding is broader than "no training crawler is allowed." None of the three classes is named, so on the documented policies, neither the training route nor the answer-grounding route reaches this site automatically.

Second—and this is the correction we most want to make to the sloppy version of this argument—you cannot say Perplexity has promised not to train on this data. Its bot was never a training crawler in the first place; the company says so on its own documentation page. Any buyer's counsel will open that page and find the sentence inside a minute, and the rest of your analysis dies with it. Say the precise thing instead.

As for the vendors' general posture: Anthropic states that "Anthropic's Bots respect 'do not crawl' signals by honoring industry standard directives in robots.txt." Google states that its common crawlers "always obey robots.txt rules when crawling automatically," and separately that "Google-Extended doesn't have a separate HTTP request user agent string… the robots.txt user-agent token is used in a control capacity."

Four things this does not prove

An argument that only points one way is a sales pitch. These are the limits, and we would rather write them here than have a reader discover them and reasonably conclude we were hiding something.

  1. robots.txt is not law. It is a voluntary convention, and the enforceability of text-and-data-mining opt-outs varies by jurisdiction. The most the sections above support is a statement about policy compliance—that a crawler following its operator's published policy will not automatically collect this site. That is not the same as a statement about legality, and we are not making one.
  2. This site is open to search indexing. Googlebot and MSNBot are explicitly allowed, along with the major Chinese engines. Anyone who writes "the Chinese court portal blocks crawlers" is wrong and will be corrected in one reply. The accurate framing is narrower and more interesting: search indexing is open; automated collection for AI training or grounding is not invited.
  3. User-triggered retrieval is a documented exception. An assistant can fetch a page for a user who asks for it, and the vendors say robots.txt may not govern that. The difference that matters is between one page and a corpus—deduplicated, field-normalised, and queryable across a hundred million-plus records. No user-triggered fetcher assembles the second thing.
  4. No accusation, and no claim of exclusivity. We have no evidence that any company has crawled this site, we name none, and we do not claim our own corpus is the only lawful route to PRC case law. Those would be different assertions requiring different evidence, and we do not have it.

What this means for an engineering plan

Strip out the compliance layer and a practical problem remains, which we have costed out in detail elsewhere: the crawler is roughly a tenth of the work. The other nine tenths are parsing formats that differ by court and by decade, deduplicating documents that appear in several places at once, and deriving stable fields—case number, court, date, cause of action, parties, outcome—on every record, so that filtering, retrieval and citation are possible at all. That pipeline does not finish; it is a standing tax on your roadmap, and it competes with the product your customers are actually paying for.

Coverage compounds the problem. Public availability of PRC judgments peaked in 2020 and fell sharply through 2023, after which the comprehensive database moved to the courts' internal network with a smaller curated library remaining public. A crawler collects what is reachable today, which is a slice weighted by year and category—and volume disguises this beautifully. Millions of documents feel comprehensive right up until a user asks about a 2022 dispute and your index has nothing on point.

The free alternatives, described fairly

The honest comparison is not against a strawman. The Chinese AI and Law challenge datasets are real, they are good, and for a defined set of purposes you should simply use them instead of paying anyone.

CAIL2018 contains, in the authors' words, "more than 2.6 million criminal cases published by the Supreme People's Court of China" (arXiv:1807.02478), and the GitHub repository carries an MIT licence. If your work is Chinese criminal judgment prediction, charge classification, or benchmarking, that is a strong and free starting point, and no licensing conversation is required.

The limits are scope and licensing rather than quality. Checked via the GitHub API on 10 August 2026:

RepositoryLicence fieldLast push
china-ai-law-challenge/CAIL2018MIT2020-05-07
china-ai-law-challenge/CAIL2019none2021-03-18
china-ai-law-challenge/CAIL2020none2021-08-12
china-ai-law-challenge/CAIL2021none2021-10-16
china-ai-law-challenge/CAIL2022none2024-02-25

Two things to take from that table. The obvious one: four of the five carry no licence file, and "no licence" is not a permissive default—it is an absence, which your counsel will treat as an open question rather than a green light. The less obvious one applies far beyond these repositories: a repository licence is not a dataset licence. An MIT header can cover the loader scripts while the documents themselves are governed by something else. Anyone assembling training data from public repositories should check which artifact a licence file actually attaches to.

And the scope limit is simply structural: these corpora are criminal-only, Chinese-only, and frozen at their release year. If your product needs contract, labour, IP, administrative or company disputes; needs English-language fields; or needs anything after the freeze date, the academic sets do not reach it—not because they are deficient, but because they were built to answer a research question, not to ship inside a commercial product.

What is actually left to buy

Put the crawler question and the academic-dataset question side by side and the remaining gap is narrow and specific. It is three things:

That is the category we occupy. SinoVerdict licenses a structured, machine-readable corpus of more than 160 million publicly available PRC court judgment records, sourced from publicly available PRC court rulings (China Judgments Online and provincial portals), normalised into structured fields as a snapshot through 2023 with incremental updates available on request, and delivered as a bulk dataset, a REST API and an MCP server. For deal mechanics and a buyer's checklist, see our guide to licensing Chinese court judgment data.

Sources

Every claim above, with its source and retrieval date. All four vendor pages returned HTTP 200 with no login required on 10 August 2026, and the quoted sentences were checked verbatim against the retrieved text.

ClaimSource
982 bytes; 20 groups; 15 allowed; 4 named blocks; wildcard Disallow: /https://wenshu.court.gov.cn/robots.txt (retrieved 2026-08-10)
GPTBot purpose; effect of disallowing GPTBot; ChatGPT-User exceptiondevelopers.openai.com/api/docs/bots
Anthropic bots honour robots.txt directivessupport.claude.com
Google common crawlers obey robots.txt; Google-Extended is a control tokendevelopers.google.com — common crawlers
PerplexityBot is not a training crawler; user fetcher ignores robots.txtdocs.perplexity.ai/guides/bots
CAIL2018 "more than 2.6 million criminal cases"arXiv:1807.02478, CAIL2018: A Large-Scale Legal Dataset for Judgment Prediction
CAIL repository licence fields and last-push datesGitHub REST API, /repos/china-ai-law-challenge/* (retrieved 2026-08-10)
This article is informational only and does not constitute legal advice. robots.txt is a voluntary convention rather than a legal instrument, and whether any particular method of obtaining or using Chinese court data is permissible depends on your sources, methods and jurisdictions—consult qualified counsel. No allegation is made that any named company has crawled any site.

Frequently asked questions

Does China Judgments Online allow AI crawlers in its robots.txt?

No AI crawler is named in the file. As retrieved on 10 August 2026, https://wenshu.court.gov.cn/robots.txt is 982 bytes and contains 20 User-agent groups: 15 are allowed (Allow: / with Disallow: /?), four are blocked by name (HuihuiSpider, GwdangSpider, EtaoSpider, WochachaSpider), and the file ends with User-agent: * followed by Disallow: /. None of GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, Google-Extended, PerplexityBot, Perplexity-User, CCBot, Bytespider, Applebot, Amazonbot or Meta-ExternalAgent appears anywhere in the file, so each falls under the wildcard group. Fetch the file yourself to verify; it is public and requires no login.

Does that mean the site blocks all crawling?

No, and this is the most common misreading. The same file explicitly allows Googlebot and MSNBot, along with Baidu, Sogou, Youdao, Chinaso, Sosospider, yisouspider and EasouSpider. The accurate description is narrower: the site is open to conventional search indexing and does not name any AI training, AI search-grounding or AI user-agent crawler, so those fall under the wildcard Disallow. Writing that the portal is closed to crawlers is factually wrong and easy to disprove.

Do the major AI companies say they respect robots.txt?

In their own published documentation, yes, with an explicit documented exception for user-initiated fetches. OpenAI documents that disallowing GPTBot indicates a site's content should not be used in training generative AI foundation models, and separately that because ChatGPT-User actions are initiated by a user, robots.txt rules may not apply. Anthropic states that its bots respect "do not crawl" signals by honoring industry standard directives in robots.txt. Google states that its common crawlers always obey robots.txt rules when crawling automatically, and that Google-Extended is a control token rather than a separate user agent string. Perplexity states that PerplexityBot is not used to crawl content for AI foundation models, and that its user-triggered fetcher generally ignores robots.txt rules.

So is scraping Chinese court judgments for AI training illegal?

That is not what any of this establishes, and this article does not say so. robots.txt is a voluntary convention, not law, and the enforceability of text-and-data-mining opt-outs differs by jurisdiction. What the file and the vendor documentation together support is a narrower, policy-compliance statement: a crawler that follows its own operator's published policy will not automatically collect this site. Whether any particular collection method is lawful in your jurisdiction is a question for your own counsel. This article is informational and not legal advice, and it makes no allegation that any company has crawled this site.

Are the free academic Chinese legal datasets a viable alternative?

For some purposes they are genuinely good and free, and you should use them. CAIL2018 contains more than 2.6 million criminal cases published by the Supreme People's Court and is released under an MIT licence on GitHub, which makes it a strong choice for Chinese criminal judgment-prediction research and benchmarking. The limits are scope and licensing rather than quality: it is criminal-only, Chinese-only, frozen in time, and the later CAIL2019 through CAIL2022 repositories carried no licence file at all when checked on 10 August 2026. Note also the general trap that a repository licence is not the same thing as a dataset licence; the code may be MIT while the underlying documents are governed by something else entirely.

What does a licensed corpus give you that a crawler cannot?

Three things, and they are the three the crawler debate usually skips. Scale and coverage beyond a single case category, since assembling a cross-category corpus is a different problem from fetching documents. Structure, because stable fields such as case number, court, date, cause of action, parties and outcome have to be normalised across decades of inconsistent formatting before a model can filter, cite or retrieve on them. And licensing certainty: written, allocated terms covering AI training, retrieval and indexing, which is the sentence your own enterprise customers will ask you to produce in their due diligence questionnaire. SinoVerdict licenses a structured corpus of more than 160 million publicly available PRC court judgment records as a bulk dataset, a REST API and an MCP server.

Check our numbers, then check the corpus.

Every figure above is reproducible in a browser or a single curl. If the read-the-file exercise settled the crawler question for your team, the next one is coverage: request a report showing how the 160M+ record corpus breaks down by year, court level, region and case type — or apply for a trial API key and test retrieval against your own workloads.

Request trial access