Get started
Quickstart
Search US statutes and fetch a section in a few minutes.
1. Get an API key#
Create an account and generate a key in the dashboard. Keys start with a fixed prefix so they are easy to spot in logs.
2. Make your first search#
curl -X POST https://api.lexbharat.example/api/v1/us/statutes/search \
-H "Authorization: Bearer lb_key_..." \
-H "Content-Type: application/json" \
-d '{ "query": "security deposit return", "corpusType": "STATE", "state": "ca" }'
Results are ranked sections. Each carries an actId, a citation, a title and an excerpt.
3. Fetch the full text#
curl -G https://api.lexbharat.example/api/v1/us/statutes/section/{actId}/body \
-H "Authorization: Bearer lb_key_..."
4. Discover coverage#
Call the coverage endpoint to see which corpora exist for which jurisdictions before treating an empty result as an absence of law.
Last modified on October 20, 2026
Was this page helpful?