{
  "openapi": "3.0.1",
  "info": {
    "title": "US Congress Legislation Tracker",
    "description": "Track new and moving federal bills and resolutions in Congress: status, sponsor, cosponsors, committees, policy area, subjects, latest action, committee reports, CRS summary. Filter by keyword, committee, party, state and status. Official GovInfo data.",
    "version": "1.0",
    "x-build-id": "Sw0qkgDqobD5yIAVq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pushbuild~us-legislation-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pushbuild-us-legislation-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/pushbuild~us-legislation-tracker/runs": {
      "post": {
        "operationId": "runs-sync-pushbuild-us-legislation-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/pushbuild~us-legislation-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-pushbuild-us-legislation-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "title": "Keywords",
            "type": "string",
            "description": "Words that must all appear in the title, policy area, subjects or CRS summary, e.g. genetic privacy. With regex on, a case-insensitive regular expression, e.g. newborn|CLIA|\\bLDTs?\\b."
          },
          "regex": {
            "title": "Regex query",
            "type": "boolean",
            "description": "Treat query as a regular expression (RE2 syntax).",
            "default": false
          },
          "billIds": {
            "title": "Bill ids",
            "type": "array",
            "description": "Specific bills, e.g. hr2286, S. 1031, hr1031-118. Congress defaults to the current one.",
            "items": {
              "type": "string"
            }
          },
          "updatedSince": {
            "title": "Updated since",
            "type": "string",
            "description": "Bills with any change (new action, text, summary, cosponsor) since this date or timestamp. Empty = all bills."
          },
          "actionSince": {
            "title": "Latest action since",
            "type": "string",
            "description": "Bills whose latest action is on or after this date."
          },
          "introducedFrom": {
            "title": "Introduced from",
            "type": "string",
            "description": "Introduced on or after this date."
          },
          "introducedTo": {
            "title": "Introduced to",
            "type": "string",
            "description": "Introduced on or before this date."
          },
          "congress": {
            "title": "Congress",
            "type": "string",
            "description": "Congress number, e.g. 119 or 118, or all. Default: current."
          },
          "billTypes": {
            "title": "Bill types",
            "type": "array",
            "description": "Which kinds of measures to include. Empty = all, including simple resolutions.",
            "items": {
              "type": "string",
              "enum": [
                "hr",
                "s",
                "hjres",
                "sjres",
                "hconres",
                "sconres",
                "hres",
                "sres"
              ],
              "enumTitles": [
                "House bills",
                "Senate bills",
                "House joint resolutions",
                "Senate joint resolutions",
                "House concurrent resolutions",
                "Senate concurrent resolutions",
                "House simple resolutions",
                "Senate simple resolutions"
              ]
            }
          },
          "committee": {
            "title": "Committee",
            "type": "string",
            "description": "Only bills referred to a committee whose name contains this text, e.g. Financial Services, Banking, Energy."
          },
          "policyArea": {
            "title": "Policy area",
            "type": "string",
            "description": "Only bills whose CRS policy area contains this text, e.g. Finance and Financial Sector, Taxation, Health."
          },
          "sponsorParty": {
            "title": "Sponsor party",
            "enum": [
              "any",
              "R",
              "D",
              "I"
            ],
            "type": "string",
            "description": "Party of the primary sponsor.",
            "default": "any"
          },
          "sponsorState": {
            "title": "Sponsor state",
            "type": "string",
            "description": "Two-letter state of the primary sponsor, e.g. TX."
          },
          "statuses": {
            "title": "Statuses",
            "type": "array",
            "description": "Only bills at these stages. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Introduced",
                "Reported by committee",
                "Passed House",
                "Passed Senate",
                "Passed both chambers",
                "Presented to President",
                "Became law"
              ]
            }
          },
          "maxItems": {
            "title": "Max bills",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum bills to return.",
            "default": 200
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "latestAction",
              "updated",
              "introduced",
              "cosponsors"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "latestAction"
          },
          "includeActions": {
            "title": "Include actions",
            "type": "boolean",
            "description": "Add the full action history (date, text, type, code) to each bill.",
            "default": false
          },
          "dataset": {
            "title": "Dataset",
            "enum": [
              "bills",
              "sources"
            ],
            "type": "string",
            "description": "sources returns build health: run time, counts, newest update.",
            "default": "bills"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}