Japan Diet Bill Tracker
v0.2.0Where is a bill in Japan's Diet now?
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
catalog Catalog: tools, prices and limits
List the tools of this server with prices, data sources, licensing, daily limits and data freshness.
jp_diet_bills_list Japan Diet: law bills of a session
List the law bills of a Diet session (default: current; past sessions from 142 (1998) as loaded, see jp_diet_sessions_list; 閣法 = cabinet bills, 衆法/参法 = member bills of the House of Representatives/Councillors) with where each is now: status as published (審議状況, e.g. 成立 = enacted), a status code, the position read from published stages (e.g. in_committee), latest stage date and source URLs. Filters: session, house, kind, status, title words. Free.
| Parameter | Type | Description |
|---|---|---|
house | string | Only bills now with this house, according to the published status |
kind | string | Bill kind: 閣法 or cabinet (cabinet bill), 衆法 or hr_member (House of Representatives member bill), 参法 or hc_member (House of Councillors member bill) |
limit | integer | Maximum number of bills, 1-200 (default 100) |
query | string | Words in the bill title, in Japanese (for example 消費税 = consumption tax) |
session | integer | Diet session number, for example 222 (default: the current session) |
status | string | Only bills with this status code (see status_meaning in the answer) |
jp_diet_sessions_list Japan Diet: sessions and coverage
Which Diet sessions does this service hold bill records for? Returns every session the House of Representatives bill pages list (from 142, 1998), newest first: number, type (常会 ordinary, 臨時会 extraordinary, 特別会 special), start and end dates, number of law bills, and how far it is loaded (coverage complete, partial or not_loaded; past sessions are loaded newest first). Free.
jp_diet_bill_status Japan Diet: one bill's stage and timeline
Where is this Diet bill now and how did it get there? Give bill_id (e.g. 222-閣法-1 or 222-cabinet-1) or a title. Returns status, position and the timeline per session and house (referral, committee and plenary decisions, promulgation), each with date, source URL and first observed time; the Diet meetings that dealt with the bill (house, meeting, date, official record link); for cabinet bills the cabinet decision date and page. Each block has a status. Free.
| Parameter | Type | Description |
|---|---|---|
bill_id | string | Bill id: submitted session, kind and number, for example 222-閣法-1, 222-cabinet-1, 221-hr-1, 222-hc-2 |
title | string | Bill title or part of it, in Japanese (used when bill_id is not given) |
jp_diet_group_votes Japan Diet: parliamentary group votes of a session
How did each parliamentary group (会派) vote on the law bills of a Diet session? From the House of Representatives bill progress pages: for each bill with a plenary vote, the groups for and against as published (names exactly as published, not merged across renames), a bills x groups table, and pairwise agreement between groups (share of bills where both were on the same side, with n). Group-level public votes only; no individual members. Free.
| Parameter | Type | Description |
|---|---|---|
session | integer | Diet session number, for example 222 (default: the current session) |
jp_diet_stats Japan Diet: bill statistics by session and kind
Counts of law bills per Diet session and kind (cabinet / member bills): listed, newly submitted, carried in, enacted, withdrawn, not concluded, carried over, rejected, enactment share of closed sessions; days from submission to enactment (median, p25, p75, n); by committee. This service's own aggregation of the bill pages it has loaded, always with coverage (which sessions are complete or still loading). Past facts only, not a forecast. Free.
| Parameter | Type | Description |
|---|---|---|
kind | string | Only this bill kind: 閣法 or cabinet, 衆法 or hr_member, 参法 or hc_member |
session | integer | Only this Diet session (default: every loaded session) |
jp_diet_changes Japan Diet: observed bill changes since a date
Which Diet bills moved since a date? Changes this service observed on the bill pages of both houses, newest first: bill id and title, from-stage and to-stage (or list status before and after), the published date of the new stage, when observed, and the source URL. First loads and loading of past sessions are not counted. Free.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of changes, 1-500 (default 200) |
since | string | Japan date YYYY-MM-DD; changes observed on or after it (default: 7 days ago) |
jp_diet_enforcement_calendar Japan: law enforcement calendar
Which Japanese laws change on which dates? Enforcement dates of amendments, new laws and repeals made by Acts between two dates (Japan time; default the next 365 days; the last year also works): law changed (e-Gov id, title, number, category), amending law number and title, promulgation date, date and its basis, e-Gov's note on the provision, e-Gov link, and the Diet bill id when known. From e-Gov law search (PDL1.0). Facts only. Free.
| Parameter | Type | Description |
|---|---|---|
from | string | First date, YYYY-MM-DD in Japan time (default today) |
include_undated | true: also list revisions whose enforcement date is not set yet (default false) | |
limit | integer | Maximum number of dated entries, 1-500 (default 500) |
to | string | Last date, YYYY-MM-DD (default from + 365 days; at most 731 days after from) |
jp_diet_law_history Japan: one law's amendments and enforcement dates
How has this Japanese law been changed, by which Acts, and from when? Give an e-Gov law id (e.g. 322AC0000000049 = 労働基準法). Returns amendments by Acts since 1998 that e-Gov's revision history lists (mostly from 2016-2017 on), newest first: amending law number and title, promulgation date, each enforcement stage with its date (future included) and e-Gov's note, e-Gov link, and the Diet bill id when known. No law text. Free.
| Parameter | Type | Description |
|---|---|---|
law_id * | string | e-Gov law id, for example 322AC0000000049 |
get_receipt Get receipt of a paid call
Re-fetch the stored result of a settled paid call by its receipt_id, for when the response was lost after payment. Free. Unknown or unsettled receipt ids return RECEIPT_NOT_FOUND. Results are kept for 30 days after settlement.
| Parameter | Type | Description |
|---|---|---|
receipt_id * | string | The receipt_id returned with a paid result ("rcpt_" + 64 hex characters). |