gov

Look up or search US Congressional bills via the Library of...

Look up or search US Congressional bills via the Library of Congress Congress.gov API. Pass congress + type + number to fetch a specific bill (title, sponsors, latest action, action/amendment/committee counts, policy area, congress.gov URL). Or omit number to list bills filtered by congress, bill type (hr | s | hjres | sjres | hconres | sconres | hres | sres), date range, with pagination + sort. Bill type semantics: hr=House Bill, s=Senate Bill, hjres/sjres=joint resolution, hconres/sconres=concurrent resolution, hres/sres=simple resolution.

get/api/gov/congress-bill

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/gov/congress-bill
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

congressinteger

US Congress number (e.g. 118 for the 2023–2025 Congress).

type'hr' | 's' | 'hjres' | 'sjres' | 'hconres' | 'sconres' | 'hres' | 'sres'

Filter results by type.

numberinteger

Item number or identifier.

fromDatestring

From date.

toDatestring

To date.

sort'updateDate+desc' | 'updateDate+asc'

Field to sort results by.

limitinteger

Maximum number of results to return.

offsetinteger

Number of results to skip before returning (pagination offset).

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.