Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Billed in credits (1 credit = $0.01); every answer carries creditsConsumed with the real charge, which can be below list price. GET /api-credits/pricing returns live prices for free. 422 validation errors, not-found and failed calls are not charged.
  • Rate limits by plan: Pro 60/min, 1,000/hour, 2,000/day; Business 150/min, 2,500/hour, 10,000/day. 429 answers carry Retry-After.
  • An optional Idempotency-Key header (16-255 ASCII characters) replays the first 2xx answer for 24 hours without a second charge.
  • Statutes only: case law is not served by the API. Text links back to the official government source; check actStatus before relying on a section.

Endpoints

  • A read over POST. 4 credits per call, plus 6 per row when includeBody is true. Refunded when nothing matches a filtered search; charged when noGoodMatch is true (rows are then only the nearest sections).
  • Unknown body fields are refused (422).

Resolve a citation

  • 2 credits, charged whether or not it resolves (refunded on malformed or ambiguous-jurisdiction misses).

Get a section’s metadata

  • 2 credits; 404 not charged.

Get a section’s full text

  • 6 credits whatever the format; refunded when no text comes back.

Browse the statutory hierarchy

  • 1 credit; not charged when no rows come back.

Compare a provision across states

  • 6 credits; not charged for sections outside the state statute corpus or when nothing matches.