Pricing
Pay per event
Japan e-Gov Laws Scraper
Extract 9,000+ Japanese statutes from the e-Gov Law Search API. Get law titles, numbers, categories, repeal status, and amendment history. Full-text mode fetches complete law body text with articles and paragraphs. Covers Constitution, Acts, Cabinet Orders, Ordinances, and Rules.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
22 days ago
Last modified
Categories
Share
e-Gov Japan Laws Scraper โ Japanese Law Database & Statute API
Scrape the complete catalog of Japanese statutes and legislation from the e-Gov Law Search API. This Japan legal database scraper returns law titles, numbers, categories, repeal status, and amendment history for 9,000+ statutes โ plus full law body text and structured article data in fulltext mode. A drop-in alternative to building your own e-Gov Law Search API client for Japanese law lookup.
e-Gov Japan Laws Scraper Features
- Extracts metadata for all 9,000+ statutes in the Japanese government's official law database
- Filters by law type: Constitution, Act, Cabinet Order, Ministerial Ordinance, or Rule
- Filters by repeal status โ active laws only, repealed, suspended, or all
- Fetches a specific statute by its e-Gov law ID (e.g.,
321CONSTITUTION) - Returns full law body text with article structure in fulltext mode โ each article as a formatted string
- Pure API scraping against a public government endpoint โ no proxies, no browser, no captchas
- Handles offset pagination automatically across the full 9,000+ record catalog
What Can You Do With This Japanese Law & Legislation Data?
- Legal researchers โ Build a searchable corpus of Japanese legislation for comparative law analysis or citation indexing
- Compliance teams โ Track amendment history and enforcement dates for statutes relevant to your business
- LegalTech developers โ Populate a document database with structured law text for RAG pipelines or legal AI applications
- Academics โ Analyze the distribution of law types, category breakdowns, or promulgation timelines across eras
- Translators and law firms โ Identify recently amended statutes or pull full article text for targeted review
How e-Gov Japan Laws Scraper Works
- Configure your scrape: pick a mode (catalog or fulltext), apply optional filters, and set a record limit
- The scraper pages through the e-Gov catalog API at
laws.e-gov.go.jp/api/2/laws, fetching 100 records per request with a 300ms courtesy delay between calls - In catalog mode, each record is extracted from the response and saved directly โ no additional requests
- In fulltext mode, the scraper makes a second call to
/api/2/law_data/{law_id}for each statute and parses the LawXML tree to extract plain text and article-level structure
Input
{"mode":"catalog","lawType":"Act","repealStatus":"None","maxItems":100}
| Field | Type | Default | Description |
|---|---|---|---|
mode | string | catalog | catalog returns law metadata only. fulltext also fetches the full law body text and article structure for each statute. |
lawType | string | (all types) | Filter to a specific law type: Constitution, Act, CabinetOrder, MinisterialOrdinance, or Rule. Leave blank for all types. |
lawId | string | (none) | Fetch a single statute by its e-Gov ID (e.g. 321CONSTITUTION). Overrides other filters. |
repealStatus | string | (all statuses) | Filter by repeal status: None (active), Repeal, RepealedBeforeEnforcement, or Suspended. |
maxItems | integer | 10 | Maximum records to return. Set to 0 for all 9,000+. |
Additional input examples:
{"lawId":"321CONSTITUTION","mode":"fulltext"}
{"mode":"catalog","repealStatus":"None","maxItems":0}
e-Gov Japan Laws Scraper Output Fields
Catalog Mode
Returns law metadata for each statute. Fast โ one API request per 100 records.
{"law_id":"321CONSTITUTION","law_revision_id":"321CONSTITUTION_19470503_000000000000000","law_type":"Constitution","law_num":"ๆญๅไบๅไธๅนดๆฒๆณ","law_num_era":"Showa","law_num_year":21,"law_num_num":"","law_title":"ๆฅๆฌๅฝๆฒๆณ","law_title_kana":"ใซใปใใใใใใฝใ","abbrev":"","category":"ๆฒๆณ","promulgation_date":"1946-11-03","amendment_promulgate_date":"","amendment_enforcement_date":"","amendment_law_id":"","amendment_law_title":"","repeal_status":"None","repeal_date":"","current_revision_status":"CurrentEnforced","remain_in_force":false,"updated":"2022-04-01T00:00:00","law_body_text":"","article_count":0,"articles":[],"source_url":"https://laws.e-gov.go.jp/ja/laws/view/321CONSTITUTION"}
| Field | Type | Description |
|---|---|---|
law_id | string | Canonical e-Gov law identifier (e.g. 321CONSTITUTION, 322AC0000000004) |
law_revision_id | string | Specific revision ID combining law_id and enforcement date |
law_type | string | Law type: Constitution / Act / CabinetOrder / MinisterialOrdinance / Rule |
law_num | string | Official law number in Japanese (e.g. ๆญๅไบๅไบๅนดๆณๅพ็ฌฌไนๅๅท) |
law_num_era | string | Japanese era of promulgation: Meiji / Taisho / Showa / Heisei / Reiwa |
law_num_year | number | Year of promulgation within the era |
law_num_num | string | Sequential law number within the year |
law_title | string | Full law title in Japanese (e.g. ๆฅๆฌๅฝๆฒๆณ) |
law_title_kana | string | Phonetic reading of the law title in hiragana |
abbrev | string | Common abbreviation of the law title if one exists |
category | string | Legal category (e.g. ๆฒๆณ / ๆฐไบ / ๅไบ / ๅไบ / ๅดๅ / ็จๆณ) |
promulgation_date | string | Original promulgation date (YYYY-MM-DD) |
amendment_promulgate_date | string | Latest amendment promulgation date (YYYY-MM-DD) |
amendment_enforcement_date | string | Latest amendment enforcement date (YYYY-MM-DD) |
amendment_law_id | string | e-Gov ID of the most recently amending law |
amendment_law_title | string | Title of the most recent amending law |
repeal_status | string | Repeal status: None / Repeal / RepealedBeforeEnforcement / Suspended |
repeal_date | string | Date of repeal if applicable (YYYY-MM-DD) |
current_revision_status | string | Enforcement status: CurrentEnforced / Repeal / Future |
remain_in_force | boolean | Whether the law remains in force after repeal |
updated | string | Timestamp when this record was last updated in the e-Gov system |
source_url | string | Direct URL to this law on the e-Gov portal |
Fulltext Mode
Returns all catalog fields plus three additional fields populated from the law body.
{"law_id":"321CONSTITUTION","law_title":"ๆฅๆฌๅฝๆฒๆณ","law_body_text":"ๆฅๆฌๅฝๆฒๆณ็ฌฌไธ็ซ ใๅคฉ็็ฌฌไธๆกใๅคฉ็ใฏใๆฅๆฌๅฝใฎ่ฑกๅพดใงใใ...","article_count":103,"articles":["็ฌฌไธๆก | | ๅคฉ็ใฏใๆฅๆฌๅฝใฎ่ฑกๅพดใงใใๆฅๆฌๅฝๆฐ็ตฑๅใฎ่ฑกๅพดใงใใคใฆ...","็ฌฌไบๆก | | ็ไฝใฏใไธ่ฅฒใฎใใฎใงใใคใฆ..."]}
| Field | Type | Description |
|---|---|---|
law_body_text | string | Full plain text of the law body โ all article, paragraph, and item text concatenated |
article_count | number | Number of articles in the main provision |
articles | array | Structured articles: each entry formatted as ArticleNum | ArticleTitle | text |
๐ FAQ
How do I scrape Japanese law data from e-Gov?
e-Gov Japan Laws Scraper hits the official government REST API at laws.e-gov.go.jp/api/2/laws. No authentication required โ it's a public endpoint maintained by Japan's Digital Agency.
How much does e-Gov Japan Laws Scraper cost to run?
e-Gov Japan Laws Scraper runs on pay-per-event pricing. The catalog for all 9,000+ laws costs roughly $9 in records plus a $0.10 start fee. Fulltext mode is more expensive โ each law requires a second API call, so budget accordingly for large fulltext runs.
Does e-Gov Japan Laws Scraper need proxies?
No proxies needed. The e-Gov API is a public government endpoint with no IP blocking or geographic restrictions. The scraper runs without any proxy configuration.
Can I get full law text, not just metadata?
Yes. Set mode to fulltext. The scraper fetches the full LawXML for each statute and returns the complete text as a plain string plus a structured array of articles. Expect the run to take longer โ one extra API call per statute.
Can I filter to only active (non-repealed) laws?
Set repealStatus to None. That filters the catalog to statutes with no repeal event, which is most of the 9,000+ records. You can combine it with lawType to narrow further โ for example, active Acts only.
Is there a Japanese law database or e-Gov Law Search API I can pull into my own app?
Yes โ that is what this scraper is for. It wraps the official e-Gov Law Search API v2 and returns clean, structured JSON for every Japanese statute, so you can load a full Japan legal database into your own application, search index, or RAG pipeline without writing your own API client.
Need More Features?
Need custom fields, additional filtering, or a different target endpoint? File an issue or get in touch.
Why Use e-Gov Japan Laws Scraper?
- Complete coverage โ All 9,000+ statutes in the official Japanese government database, including the full amendment and repeal history for each
- Two output modes โ Catalog mode is fast and cheap for metadata; fulltext mode delivers article-level structure for document-intensive workflows, so you pay only for what you actually need
- No setup required โ Public government API, no proxies, no auth, no captchas. Configure your filters and run.
