List recent bills in one Congress
Start with the bill list and keep the first request small. Then follow next_url until you have the window you need.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/bills?congress=119&per_page=20"
Common Tasks
Use these examples to move from a first request to a working integration: listing bills, fetching detailed records with includes, inspecting committee activity, and pulling vote roll calls. Exact route definitions live in Reference.
These examples cover the common workflows LegiList is designed to handle well: normalized federal records, direct links between related objects, and fewer stitching calls than raw upstream sources.
Start with the bill list and keep the first request small. Then follow next_url until you have the window you need.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/bills?congress=119&per_page=20"
Use include= when you want the main bill plus action history, text versions, amendment metadata, related bills, enacted law links, and votes in one response.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/bills/119/HR/1?include=actions,texts,amendments,related,laws,votes"
When you pass congress=, the party, state, chamber, and district fields reflect that term.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/legislators?congress=119&state=NC&per_page=10"
Use biography when you want a sourced narrative profile alongside current record data and term history.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/legislators/A000370?include=biography,terms"
Add memberships when you want the committee and its members in one request.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/committees/HSJU05?include=memberships"
Committee activity subresources are current-Congress only. Use the meetings route for hearings, markups, witness counts, and official event links.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/committees/SSJU00/meetings?per_page=5"
Use the nominations route for current-Congress committee nominations, latest action text, and the public Congress.gov nomination page.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/committees/SSFR00/nominations?per_page=5"
Law detail includes the linked bill, so you can move from the law back to the bill without extra stitching.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/laws?congress=119&law_type=public&per_page=10"
Vote detail stays small by default. Add include=results only when you need the full roll call.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/votes/119/1/house/304?include=results"
Topic detail supports congress= filtering, keeps the bill list inside data, and returns pagination links in top-level meta.
curl -H "X-API-Key: YOUR_KEY" \ "https://legilist.com/api/v1/topics/abandonment-of-family?congress=110&per_page=3"