# Routes

This document provides a list of all the top-level routes and individual endpoints that are provided by the Congress API.

## Bills

- `/bill`
  - Returns a list of bills sorted by date of latest action.
- `/bill/{congress}`
  - Returns a list of bills filtered by the specified congress, sorted by date of latest action.
- `/bill/{congress}/{billType}`
  - Returns a list of bills filtered by the specified congress and bill type, sorted by date of latest action.
- `/bill/{congress}/{billType}/{billNumber}`
  - Returns detailed information for a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/actions`
  - Returns the list of actions on a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/amendments`
  - Returns the list of amendments to a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/committees`
  - Returns the list of committees associated with a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/cosponsors`
  - Returns the list of cosponsors on a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/relatedbills`
  - Returns the list of related bills to a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/subjects`
  - Returns the list of legislative subjects on a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/summaries`
  - Returns the list of summaries for a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/text`
  - Returns the list of text versions for a specified bill.
- `/bill/{congress}/{billType}/{billNumber}/titles`
  - Returns the list of titles for a specified bill.

## Amendments

- `/amendment`
  - Returns a list of amendments sorted by date of latest action.
- `/amendment/{congress}`
  - Returns a list of amendments filtered by the specified congress, sorted by date of latest action.
- `/amendment/{congress}/{amendmentType}`
  - Returns a list of amendments filtered by the specified congress and amendment type, sorted by date of latest action.
- `/amendment/{congress}/{amendmentType}/{amendmentNumber}`
  - Returns detailed information for a specified amendment.
- `/amendment/{congress}/{amendmentType}/{amendmentNumber}/actions`
  - Returns the list of actions on a specified amendment.
- `/amendment/{congress}/{amendmentType}/{amendmentNumber}/cosponsors`
  - Returns the list of cosponsors on a specified amendment.
- `/amendment/{congress}/{amendmentType}/{amendmentNumber}/amendments`
  - Returns the list of amendments to the specified amendment.

## Committee

- `/committee`
  - Returns a list of congressional committees.
- `/committee/{chamber}`
  - Returns a list of congressional committees filtered by the specified chamber.
- `/committee/{congress}`
  - Returns a list of congressional committees filtered by the specified congress.
- `/committee/{congress}/{chamber}`
  - Returns a list of committees filtered by the specified congress and chamber.
- `/committee/{chamber}/{committeeCode}`
  - Returns detailed information for a specified congressional committee.
- `/committee/{chamber}/{committeeCode}/bills`
  - Returns the list of bills associated with the specified congressional committee.
- `/committee/{chamber}/{committeeCode}/reports`
  - Returns the list of committee reports associated with the specified congressional committee.
- `/committee/{chamber}/{committeeCode}/nominations`
  - Returns the list of nominations associated with the specified congressional committee.

## Committee Report

- `/committeeReport`
  - Returns a list of committee reports.
- `/committeeReport/{congress}`
  - Returns a list of committee reports filtered by the specified congress.
- `/committeeReport/{congress}/{reportType}`
  - Returns a list of committee reports filtered by the specified congress and report type.
- `/committeeReport/{congress}/{reportType}/{reportNumber}`
  - Returns detailed information for a specified committee report.
- `/committeeReport/{congress}/{reportType}/{reportNumber}/text`
  - Returns the list of texts for the specified committee report.

## Congress

- `/congress`
  - Returns a list of congresses and congressional sessions.
- `/congress/{congress}`
  - Returns detailed information for a specified congress.

## Congressional Record

- `/congressional-record`
  - Return a list of congressional record issues sorted by most recent.

## House Communication

- `/house-communication`
  - Returns a list of House communications.
- `/house-communication/{congress}`
  - Returns a list of House communications filtered by the specified congress.
- `/house-communication/{congress}/{communicationType}`
  - Returns a list of House communications filtered by the specified congress and communication type.
- `/house-communication/{congress}/{communicationType}/{communicationNumber}`
  - Returns detailed information for a specified House communication.

## Member

- `/member`
  - Returns a list of congressional members.
- `/member/{bioguideId}`
  - Returns detailed information for a specified congressional member.
- `/member/{bioguideId}/sponsored-legislation`
  - Returns the list of legislation sponsored by the specified congressional member.
- `/member/{bioguideId}/cosponsored-legislation`
  - Returns the list of legislation cosponsored by the specified congressional member.

## Nomination

- `/nomination`
  - Returns a list of nominations sorted by date received from the President.
- `/nomination/{congress}`
  - Returns a list of nominations filtered by the specified congress and sorted by date received from the President.
- `/nomination/{congress}/{nominationNumber}`
  - Returns detailed information for a specified nomination.
- `/nomination/{congress}/{nominationNumber}/{ordinal}`
  - Returns the list nominees for a position within a nomination.
- `/nomination/{congress}/{nominationNumber}/actions`
  - Returns the list of actions on a specified nomination.
- `/nomination/{congress}/{nominationNumber}/committees`
  - Returns the list of committees associated with a specified nomination.
- `/nomination/{congress}/{nominationNumber}/hearings`
  - Returns the list of printed hearings associated with a specified nomination.

## Summaries

- `/summaries`
  - Returns a list of summaries sorted by date of last update.
- `/summaries/{congress}`
  - Returns a list of summaries filtered by congress, sorted by date of last update.
- `/summaries/{congress}/{billType}`
  - Returns a list of summaries filtered by congress and by bill type, sorted by date of last update.

## Treaty

- `/treaty`
  - Returns a list of treaties sorted by date of last update.
- `/treaty/{congress}`
  - Returns a list of treaties for the specified congress, sorted by date of last update.
- `/treaty/{congress}/{treatyNumber}`
  - Returns detailed information for a specified treaty.
- `/treaty/{congress}/{treatyNumber}/{treatySuffix}`
  - Returns detailed information for a specified partitioned treaty.
- `/treaty/{congress}/{treatyNumber}/actions`
  - Returns the list of actions on a specified treaty.
- `/treaty/{congress}/{treatyNumber}/{treatySuffix}/actions`
  - Returns the list of actions on a specified partitioned treaty.
- `/treaty/{congress}/{treatyNumber}/committee`
  - Returns the list of committees associated with a specified treaty.
