Search

Search bills, members, committees and pages...

Illinois

The Illinois record over HTTP, scoped to the 2025-2026: 15 resources, each with its options and the query written out.

Every resource takes state=IL, and session=2025 for 2025-2026; leave the session off and the route answers the current one. The examples below are written for Illinois.


The record

What every jurisdiction has: the bills, the people, the committees and the votes, from the same tables the pages read.

bills

The bills of the session, newest action first. The answer is rows and total, paged by limit and offset.

curl "https://policy.nysgpt.com/api/policy/bills?state=IL&session=2025&limit=20"
Usage: /api/policy/bills [options] the bills of a jurisdiction, newest action first Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  subject <term>a policy area or legislative subject, as CRS spells it  chamber <name>House or Senate  committee <name>the committee the bill sits before  member <id>bills a member sponsored  status <name>Introduced, Engrossed, Enrolled, Passed or Vetoed  sort <key>newest (default), number-desc or number-asc  limit <n>rows per page (default: 40)  offset <n>rows to skip

bill

One bill with everything the record holds on it: sponsors, history, roll calls, referrals, documents and the texts on file.

curl "https://policy.nysgpt.com/api/policy/bill?state=IL&session=2025&number=HB+1"
Usage: /api/policy/bill [options] one bill, whole: sponsors, history, roll calls, referrals, texts Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  id <bill_id>the bill's id  number <text>or its number, as printed: HR 1, A 7380, HB10171

text

The text of a bill as its legislature published it. The newest version unless a document is named; format=raw answers as plain text.

curl "https://policy.nysgpt.com/api/policy/text?state=IL&session=2025&id=2057965"
Usage: /api/policy/text [options] the text of a bill, the newest version or one by document Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  id <bill_id>the bill's id  document <id>one version, by document id  format rawplain text instead of JSON

members

Every member the record knows, the sitting ones first, with party, chamber, district and portrait.

curl "https://policy.nysgpt.com/api/policy/members?state=IL&session=2025"
Usage: /api/policy/members [options] the members of a jurisdiction, the sitting ones first Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  chamber <name>House, Senate or Assembly  party <letter>D, R or I

member

One member's row, with their office and identifiers.

curl "https://policy.nysgpt.com/api/policy/member?state=IL&session=2025&id=16271"
Usage: /api/policy/member [options] one member, whole Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  id <people_id>the member's id

record

What a member put their name to and how they voted, a page of each, with the counts.

curl "https://policy.nysgpt.com/api/policy/record?state=IL&session=2025&id=16271&limit=5"
Usage: /api/policy/record [options] a member's record in a session: sponsored, co-sponsored, aye and nay Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  id <people_id>the member's id  limit <n>rows per list  offset <n>rows to skip

committees

Every committee the session's bills sit before, with the count.

curl "https://policy.nysgpt.com/api/policy/committees?state=IL&session=2025"
Usage: /api/policy/committees [options] the committees of a jurisdiction, with the bills before each Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)

committee-bills

The bills referred to a committee this session, newest first.

curl "https://policy.nysgpt.com/api/policy/committee-bills?state=IL&session=2025&committee=Agriculture&limit=20"
Usage: /api/policy/committee-bills [options] the bills before one committee Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  committee <name>the committee, as the record spells it  limit <n>rows per page  offset <n>rows to skip

rollcalls

The roll calls of the session with their tallies, newest first.

curl "https://policy.nysgpt.com/api/policy/rollcalls?state=IL&session=2025&limit=10"
Usage: /api/policy/rollcalls [options] the roll calls of a session, newest first Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  chamber <name>House or Senate  limit <n>rows per page  offset <n>rows to skip

rollcall

One roll call: the question, the tally, and how every member voted.

curl "https://policy.nysgpt.com/api/policy/rollcall?state=IL&session=2025&id=1613338"
Usage: /api/policy/rollcall [options] one roll call with every position Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  id <roll_call_id>the roll call's id

subject-terms

The jurisdiction's terms with the bills under each: policyAreas and subjects under Congress, subjects alone elsewhere.

curl "https://policy.nysgpt.com/api/policy/subject-terms?state=IL&session=2025"
Usage: /api/policy/subject-terms [options] every subject term of a jurisdiction, with its bill count Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)

stories

What the news APIs have reported on the jurisdiction's legislature and governor, newest first.

curl "https://policy.nysgpt.com/api/policy/stories?state=IL&session=2025&limit=8"
Usage: /api/policy/stories [options] the press on a jurisdiction's government, newest first Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  limit <n>how many, up to 500  q <text>a word the headline or summary carries

story

One story from the press: headline, summary, byline, and the body where the outlet's API carried it.

curl "https://policy.nysgpt.com/api/policy/story?"
Usage: /api/policy/story [options] one story, with as much body as its outlet handed over Options:  id <story id>the story's id

sessions

Every session the record holds for the jurisdiction, newest first, with how many bills each has.

curl "https://policy.nysgpt.com/api/policy/sessions?state=IL&session=2025&titles=1"
Usage: /api/policy/sessions [options] the sessions a jurisdiction has, with bill counts Options:  state <code>the jurisdiction  titles 1carry each session's own title

One query across bills, members and committees, and with text=1 across the bills' text; all=1 answers for every jurisdiction with the one in scope first.

curl "https://policy.nysgpt.com/api/policy/search?state=IL&session=2025&q=water&limit=5"
Usage: /api/policy/search [options] bills, members, committees and text, by a word or a number Options:  state <code>the jurisdiction: US, or a state's postal code  session <year>the session's first year (default: the current one)  q <text>at least two characters  all 1every jurisdiction, the one in scope first  text 1search the bills' text as well  limit <n>rows per section (max 20)