Read a provision or a law
fetchRead in full a law or provision search found, by its id. A provision's id (labor-standards-act/art-36) returns it as Markdown: the Japanese text with each paragraph's English under it, every English line marked as the Ministry of Justice's translation, the Ministry's with a slip corrected, or machine translation; its address and URLs on every line; what it cites and what cites it; and its sources. A law's id (labor-standards-act) returns the law's overview — what it is for, who it applies to, how it is enforced — the texts held, and its outline, never its whole text. A japanlaw.org URL is accepted as an id too. A provision is read in the text in force unless asOf (a day) or version names another text held: an earlier one, or one an amendment not yet in force will leave.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | An id from search or get_law: a law's slug, or <slug>/<address>. A japanlaw.org URL also works. | |
| asOf | No | Read the text as it stood on this day, YYYY-MM-DD (2027-04-01): past, today or to come. Unset reads the text in force. A day whose text japanlaw.org does not hold is refused as not held, with the texts that are; never answered with the nearest text. | |
| lang | No | The language of the pages every url opens, and of the card get_provision is drawn as: "en" (default) or "ja". The text returned always holds both languages. | |
| version | No | Read one held text by its version, as get_law's versions lists it (20270401_508AC0000000060). Unset reads the text in force. Pass asOf or version, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| text | Yes | ||
| title | Yes | ||
| metadata | Yes |