Skip to main content
Turn a spreadsheet of topics and rough citations into verified law. Each row gets a canonical citation and an official source link. Rows with a citation need resolving. POST /us/statutes/resolve handles 50 per call. Rows with only a topic need POST /us/statutes/search. Endpoints: POST /us/statutes/resolve (up to 50 citations per call), POST /us/statutes/search for topic-only rows, and optionally GET /us/statutes/section/{actId}/body for full text.
Batching keeps you inside your plan’s rate limits: 500 citations is 10 resolve calls. Honor the Retry-After header on a 429. See Errors.

Start with the rows that carry a citation

Split the citation column into batches of 50 and resolve them. Every input gets an entry back, in order, so unresolved rows are flagged.
Python
Set state or corpusType when every row belongs to one jurisdiction or corpus. Omit both for mixed jurisdictions.
A resolved row has no excerpt, because resolving runs no query. Take the excerpt from search, or fetch the body for quotable text.

Then search the rows that are only a topic

Search the rows with no citation. Set corpusType and state where you know them. Use fields to return only what you write back.
Python
Use matchType: "phrase" when the topic column holds a defined term or statutory phrase. It matches the exact phrase instead of using hybrid semantic ranking. Source URL fields can be null. Pick the link with the best_source_url() order in Text formats and source URLs.
Python
Example output:
On an unresolved item, read missReason and candidates to see why it missed.

Optionally attach full text

For the whole section, take the actId from a match and call GET /us/statutes/section/{actId}/body (see the body endpoint). It returns text only when available is true, and is free otherwise.
Python
  • Duplicates are collapsed before pricing. A citation on forty rows costs one resolution. Read creditsConsumed on the response.
  • Fetch bodies only for rows that need quotable text. For a topic row, "includeBody": true on the search returns the text inline for the same 4 + 6 credits per row.
  • Store the returned actId on your record. A later job can use it to re-fetch the section without searching again.
Last modified on November 11, 2026