Japan e-Gov Laws Scraper avatar

Japan e-Gov Laws Scraper

Pricing

Pay per event

Go to Apify Store
Japan e-Gov Laws Scraper

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

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Share

e-Gov Japan Laws Scraper

Scrape the complete catalog of Japanese statutes from the e-Gov Law Search API. 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.


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 Japanese Law 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

  1. Configure your scrape: pick a mode (catalog or fulltext), apply optional filters, and set a record limit
  2. 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
  3. In catalog mode, each record is extracted from the response and saved directly — no additional requests
  4. 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
}
FieldTypeDefaultDescription
modestringcatalogcatalog returns law metadata only. fulltext also fetches the full law body text and article structure for each statute.
lawTypestring(all types)Filter to a specific law type: Constitution, Act, CabinetOrder, MinisterialOrdinance, or Rule. Leave blank for all types.
lawIdstring(none)Fetch a single statute by its e-Gov ID (e.g. 321CONSTITUTION). Overrides other filters.
repealStatusstring(all statuses)Filter by repeal status: None (active), Repeal, RepealedBeforeEnforcement, or Suspended.
maxItemsinteger10Maximum 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"
}
FieldTypeDescription
law_idstringCanonical e-Gov law identifier (e.g. 321CONSTITUTION, 322AC0000000004)
law_revision_idstringSpecific revision ID combining law_id and enforcement date
law_typestringLaw type: Constitution / Act / CabinetOrder / MinisterialOrdinance / Rule
law_numstringOfficial law number in Japanese (e.g. 昭和二十二年法律第九十号)
law_num_erastringJapanese era of promulgation: Meiji / Taisho / Showa / Heisei / Reiwa
law_num_yearnumberYear of promulgation within the era
law_num_numstringSequential law number within the year
law_titlestringFull law title in Japanese (e.g. 日本国憲法)
law_title_kanastringPhonetic reading of the law title in hiragana
abbrevstringCommon abbreviation of the law title if one exists
categorystringLegal category (e.g. 憲法 / 民事 / 刑事 / 商事 / 労働 / 税法)
promulgation_datestringOriginal promulgation date (YYYY-MM-DD)
amendment_promulgate_datestringLatest amendment promulgation date (YYYY-MM-DD)
amendment_enforcement_datestringLatest amendment enforcement date (YYYY-MM-DD)
amendment_law_idstringe-Gov ID of the most recently amending law
amendment_law_titlestringTitle of the most recent amending law
repeal_statusstringRepeal status: None / Repeal / RepealedBeforeEnforcement / Suspended
repeal_datestringDate of repeal if applicable (YYYY-MM-DD)
current_revision_statusstringEnforcement status: CurrentEnforced / Repeal / Future
remain_in_forcebooleanWhether the law remains in force after repeal
updatedstringTimestamp when this record was last updated in the e-Gov system
source_urlstringDirect 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": [
"第一条 | | 天皇は、日本国の象徴であり日本国民統合の象徴であつて...",
"第二条 | | 皇位は、世襲のものであつて..."
]
}
FieldTypeDescription
law_body_textstringFull plain text of the law body — all article, paragraph, and item text concatenated
article_countnumberNumber of articles in the main provision
articlesarrayStructured 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.


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.