UK Legislation API: Is This Law Still in Force? (+ Japan)
Pricing
from $5.00 / 1,000 provision checkeds
UK Legislation API: Is This Law Still in Force? (+ Japan)
Give a statute citation (e.g. 'Data Protection Act 2018 s.3', '民法 第90条'). Get in-force / repealed / not-yet-in-force status, the official current or point-in-time text, and amendments passed but not yet in force, from legislation.gov.uk and e-Gov. Source and licence on every record.
Pricing
from $5.00 / 1,000 provision checkeds
Rating
0.0
(0)
Developer
Sean
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Is This Still the Law? UK & Japan Statute In-Force Checker
Give it a statute citation and find out if that provision is still the law. For each provision you get:
- status:
in_force,repealed,not_yet_in_force,not_found,ambiguousorinvalid_citation; - the official text in force today or on any past date you choose;
- changes passed but not yet in force, with the amending law and the expected in-force date;
- the official URL, the source, and the licence.
It covers the United Kingdom (legislation.gov.uk, The National Archives) and Japan (e-Gov 法令検索, Digital Agency). Every record uses the same schema, with source and licence attached.
Built for AI agents, legal-tech tools and compliance teams that need to check whether a cited statute is real, current and about to change. A model that cites a repealed section, or a section with an amendment already passed, is a liability. This Actor is the deterministic check: no LLM, official sources only.
What makes it different
- Pending changes, not just text.
- UK: outstanding "changes to legislation" effects that legislation.gov.uk has not yet applied, plus prospective amendments marked in the text.
- Japan: e-Gov revisions that are promulgated but not yet enforced (未施行). For each one, the Actor checks whether it actually changes the article you asked about and returns the future text.
- Point-in-time: set
asOfDateto get the version that was in force on that day (UK from 1991, Japan from 2017-04-01). - Monitoring: set
changedSinceDateon a scheduled run. Each record then says whether today's version changed since that date. - Forgiving citation parser:
- UK:
Data Protection Act 2018 s.3(2)(a),section 6 of the Road Traffic Regulation Act 1984,Equality Act 2010 Sch 1 para 2,reg 6,art 5,r 3, legislation.gov.uk URLs or paths. - Japan:
民法 第90条,民法第三百九十八条の二(kanji numerals),個人情報保護法 第27条第1項(abbreviations), law numbers (明治二十九年法律第八十九号), e-Gov law IDs, and official English names of about 35 common Japanese laws (Civil Code art. 90,Labor Standards Act art 36).
- UK:
- One normalised schema for both countries, with
source,licenceandattributionon every record.
Input example
{"provisions": ["Data Protection Act 2018 s.3","Road Traffic Regulation Act 1984 s.22B","Data Protection Act 1998 s 1","民法 第90条","個人情報保護法 第27条第1項","刑法 第200条"],"jurisdiction": "auto","asOfDate": "","changedSinceDate": "","comparePendingText": true,"includeAmendmentNotes": true,"maxTextChars": 20000}
Prefix a line with UK: or JP: to force the country. Without a year, "Companies Act" is read as the Japanese 会社法; write "Companies Act 2006" for the UK Act.
Output example (shortened)
{"input": "個人情報保護法 第27条第1項","jurisdiction": "JP","status": "in_force","verdict": "In force (version in force since 2026-11-02). 1 promulgated change to this provision not yet in force; next on 2028-07-16.","lawTitle": "個人情報の保護に関する法律","lawId": "415AC0000000057","provision": "第27条第1項","versionDate": "2026-11-02","text": "個人情報取扱事業者は、次に掲げる場合を除くほか、あらかじめ本人の同意を得ないで…","hasPendingChanges": true,"pendingChanges": [{"kind": "promulgated_not_yet_enforced","changeType": "amends_this_provision","amendingLaw": "個人情報の保護に関する法律等の一部を改正する法律(令和八年法律第五十六号)","expectedInForceDate": "2028-07-16","futureText": "…"}],"officialUrl": "https://laws.e-gov.go.jp/law/415AC0000000057","source": "e-Gov 法令検索 / 法令API (Digital Agency, Japan)","licence": "Public Data License 1.0 (PDL1.0) (https://www.digital.go.jp/resources/open_data/public_data_license_v1.0)","attribution": "出典:e-Gov法令検索 (https://laws.e-gov.go.jp/)、PDL1.0 …"}
A UK example: Road Traffic Regulation Act 1984 s.22B returns not_yet_in_force, with "S. 22B inserted (prosp.) by Railways and Transport Safety Act 2003 (c. 20), ss. 108, 120". Data Protection Act 1998 s 1 returns repealed, with the repealing provision.
Main fields: input, jurisdiction, status, statusDetail, verdict, lawTitle, lawId, lawType, provision, provisionId, asOfDate, versionDate, versionLastUpdated, extent (UK), text, textTruncated, textLength, hasPendingChanges, pendingChangesCount, pendingChanges[], lawPendingAmendmentsCount (JP), amendmentNotes, commencementNotes (UK), versionDates, lastAmendedBy, changedSince, candidates (for ambiguous titles), officialUrl, sourceUrl, source, licence, attribution, retrievedAt.
Each pendingChanges[] item has: kind, changeType, description, amendingLaw, amendingLawUrl, amendingProvision, expectedInForceDate, inForceStatus, appliedToText, plus futureText for Japan and affectedProvisions for UK.
Pricing (pay per event)
- $0.005 per provision checked. You are charged only when the provision was found, whether it is in force, repealed or not yet in force.
not_found,ambiguous,invalid_citationand source errors are returned free.- A small Actor start fee of $0.005 per run.
Example: checking 100 provisions costs about $0.505.
Use it from AI agents (MCP)
This Actor works as a tool through the Apify MCP server: https://mcp.apify.com?tools=wooden_scanner_c1n/law-in-force-checker. An agent can pass the statutes it is about to cite and read back status, verdict and hasPendingChanges before it answers. The verdict field is a single sentence you can quote directly.
Data sources and licences
| Country | Source | Licence |
|---|---|---|
| United Kingdom | legislation.gov.uk Legislation API (CLML XML, /resources metadata for unapplied effects) | Open Government Licence v3.0. "All content is available under the Open Government Licence v3.0 except where otherwise stated." Commercial re-use is allowed with attribution. EU-origin items carry the extra EUR-Lex attribution (Decision 2011/833/EU), and pre-1987 secondary legislation carries the Westlaw UK attribution, as legislation.gov.uk asks. |
| Japan | e-Gov 法令API Version 2 (no registration) | 公共データ利用規約 第1.0版 (PDL1.0), compatible with CC BY 4.0: "商用利用も可能です". The required 出典 (source) statement and an "edited/processed" note are on every record. |
Fair use:
- legislation.gov.uk's robots.txt sets
Crawl-delay: 5. The Actor waits 5 seconds between legislation.gov.uk requests and identifies itself with a descriptive User-Agent, as the fair use policy asks. - e-Gov requests are limited to 3 at a time.
- Act titles, Act metadata and Japanese law and revision lists are cached within a run.
This tool returns official public-sector information. It is not legal advice. Revised UK text can lag behind recent changes (legislation.gov.uk lists those changes as outstanding effects, and the Actor reports them). Always rely on the official publication for legal decisions.
Limits
- Speed:
- UK: about 10 provisions per minute because of the 5-second crawl delay. Several provisions from the same Act are faster, because the title and metadata are fetched once.
- Japan: several provisions per second.
- Up to 500 provisions per run.
- UK:
- Whole-Act lookups (no provision given) return the Act's metadata and outstanding changes, with status
act_found. legislation.gov.uk does not publish one in-force status for an entire Act. - Private and Personal Acts are refused, because they concern named individuals.
- Whole-Act lookups (no provision given) return the Act's metadata and outstanding changes, with status
- Japan:
- Main-provision articles, paragraphs (項) and items (号) are supported. Supplementary provisions (附則) are not yet supported.
- Point-in-time text starts on 2017-04-01.
- With
comparePendingText, at most 10 pending revisions are compared per provision.
- Not yet supported: EU law, Irish law and Norway (Lovdata's API host disallows robots, so it is not used).