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.
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
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. SetcorpusType and state where you know them. Use fields to return only what you write back.
Python
matchType: "phrase" when the topic column holds a defined term or statutory phrase. It matches the exact phrase instead of using hybrid semantic ranking.
Attach the source link and write the row back
Source URL fields can be null. Pick the link with thebest_source_url() order in Text formats and source URLs.
Python
missReason and candidates to see why it missed.
Optionally attach full text
For the whole section, take theactId 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
Cost and bookkeeping notes
Cost and bookkeeping notes
- Duplicates are collapsed before pricing. A citation on forty rows costs one resolution. Read
creditsConsumedon the response. - Fetch bodies only for rows that need quotable text. For a topic row,
"includeBody": trueon the search returns the text inline for the same 4 + 6 credits per row. - Store the returned
actIdon your record. A later job can use it to re-fetch the section without searching again.
Related
- Resolve a citation: the resolve routes in full.
- Add the corpus as an agent tool: expose statute search to a tool-calling agent.
- Monitor corpus coverage: detect when new corpora appear so you can re-enrich.

