Congress.gov API congress API

Returns congress and congressional sessions data from the API

Operations 3

GET /congress Returns a list of congresses and congressional sessions.
GET /congress/{congress} Returns a list of congresses and congressional sessions.
GET /congress/current Returns a list of congresses and congressional sessions.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/congress-gov-congress-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

congress-gov-congress-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Congress.gov shares its application programming interface (API) with the public to ingest the Congressional data. <a href="sign-up/" target="_blank">Sign up for an API key</a> from api.data.gov that you can use to access web services provided by Congress.gov. To learn more, view our <a href="https://github.com/LibraryOfCongress/api.congress.gov/" target="_blank">GitHub repository</a>.

    '
  title: .gov amendments Congress API
  version: '3'
servers:
- url: /v3
security:
- ApiKeyAuth: []
tags:
- name: congress
  description: Returns congress and congressional sessions data from the API
paths:
  /congress:
    get:
      tags:
      - congress
      summary: Returns a list of congresses and congressional sessions.
      description: Returns a list of congresses and congressional sessions.
      parameters:
      - $ref: '#/components/parameters/format'
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Congresses'
            application/xml:
              schema:
                $ref: '#/components/schemas/Congresses'
        '400':
          description: Invalid status value
  /congress/{congress}:
    get:
      tags:
      - congress
      summary: Returns a list of congresses and congressional sessions.
      description: Returns a list of congresses and congressional sessions.
      parameters:
      - $ref: '#/components/parameters/congress'
      - $ref: '#/components/parameters/format'
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Congresses'
            application/xml:
              schema:
                $ref: '#/components/schemas/Congresses'
        '400':
          description: Invalid status value
  /congress/current:
    get:
      tags:
      - congress
      summary: Returns a list of congresses and congressional sessions.
      description: Returns a list of congresses and congressional sessions.
      parameters:
      - $ref: '#/components/parameters/format'
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Congresses'
            application/xml:
              schema:
                $ref: '#/components/schemas/Congresses'
        '400':
          description: Invalid status value
components:
  schemas:
    Congress:
      type: object
      properties:
        endYear:
          type: string
          example: '2022'
        name:
          type: string
          example: 117th Congress
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/Sessions'
        startYear:
          type: string
          example: '2021'
    Congresses:
      type: array
      items:
        $ref: '#/components/schemas/Congress'
    Sessions:
      type: object
      properties:
        chamber:
          type: string
          example: House of Representatives
        number:
          type: integer
          example: 1
        startDate:
          type: string
          format: date
          example: '2019-01-01'
        endDate:
          type: string
          format: date
          example: '2020-01-01'
  parameters:
    limit:
      name: limit
      in: query
      description: The number of records returned. The maximum limit is 250.
      required: false
      schema:
        type: integer
    congress:
      name: congress
      in: path
      description: The congress number. For example, can be 117.
      required: true
      schema:
        type: integer
        format: int32
    offset:
      name: offset
      in: query
      description: The starting record returned. 0 is the first record.
      required: false
      schema:
        type: integer
    format:
      name: format
      in: query
      description: The data format. Value can be xml or json.
      required: false
      schema:
        type: string
        default: xml
        enum:
        - xml
        - json
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: api_key