law

Fetch the authoritative text of any section of the US Code...

Fetch the authoritative text of any section of the US Code of Federal Regulations by title and section number — for example title 12, section 1026.43 returns Regulation Z’s ability-to-repay standards. Returns the canonical citation, section heading, full plain text, Federal Register source credit, the as-of date, and a link to the official eCFR page. An optional date parameter (YYYY-MM-DD) retrieves the historical text in force on that date, back to 2017. Data from the Electronic Code of Federal Regulations (US GPO / Office of the Federal Register), public domain, updated daily — verify regulatory citations against the authoritative source instead of relying on model memory.

get/api/law/cfr-section

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/law/cfr-section
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

titleinteger required

CFR title number, 1-50 (e.g. 12 for Banks and Banking, 40 for Protection of Environment).

sectionstring required

Section identifier as "part.section", e.g. "1026.43" or "240.10b-5". The part is the digits before the dot.

datestring

Optional point-in-time date (YYYY-MM-DD). Returns the text in force on that date; coverage starts 2017-01-03. Defaults to the latest available text.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.