{
  "openapi": "3.0.1",
  "info": {
    "title": "GovInfo Scraper: Bills, Laws & Congressional Records",
    "description": "Scrape GovInfo for bills, public laws, congressional reports, hearings and the Federal Register archive. Package metadata plus direct PDF and text links.",
    "version": "0.0",
    "x-build-id": "I07EQhvdiG3amwEab"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arman-bd~govinfo-documents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arman-bd-govinfo-documents-scraper",
        "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/arman-bd~govinfo-documents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-arman-bd-govinfo-documents-scraper",
        "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/arman-bd~govinfo-documents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-arman-bd-govinfo-documents-scraper",
        "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": {
          "collections": {
            "title": "Collections",
            "type": "array",
            "description": "GovInfo collection codes. Each one is searched separately so a bad code cannot hide the others' results. BILLS is congressional bills, PLAW is enacted public laws, CREC is the daily Congressional Record, CHRG is committee hearings, USCOURTS is federal court opinions.",
            "items": {
              "type": "string",
              "enum": [
                "BILLS",
                "PLAW",
                "CREC",
                "CHRG",
                "CRPT",
                "CDOC",
                "CPRT",
                "FR",
                "USCOURTS",
                "USCODE",
                "STATUTE",
                "GAOREPORTS",
                "BILLSUM",
                "CFR",
                "SERIALSET",
                "CPD",
                "BUDGET",
                "ERP"
              ],
              "enumTitles": [
                "BILLS: Congressional Bills",
                "PLAW: Public and Private Laws",
                "CREC: Congressional Record",
                "CHRG: Congressional Hearings",
                "CRPT: Congressional Reports",
                "CDOC: Congressional Documents",
                "CPRT: Committee Prints",
                "FR: Federal Register",
                "USCOURTS: U.S. Courts Opinions",
                "USCODE: United States Code",
                "STATUTE: Statutes at Large",
                "GAOREPORTS: GAO Reports",
                "BILLSUM: Bill Summaries",
                "CFR: Code of Federal Regulations",
                "SERIALSET: Congressional Serial Set",
                "CPD: Presidential Documents",
                "BUDGET: United States Budget",
                "ERP: Economic Report of the President"
              ]
            }
          },
          "congress": {
            "title": "Congress number",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Restrict to a single Congress. The 119th ran 2025-2026, the 118th 2023-2024, and each one back subtracts two years. Leave at 0 for every Congress. Ignored by date-keyed collections such as FR and USCOURTS.",
            "default": 0
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Full-text terms, combined with OR. a document matching any one of them is kept. Multi-word entries are searched as exact phrases, so \"clean energy\" matches the phrase rather than the two words apart. Leave empty to take everything in the collection.",
            "items": {
              "type": "string"
            }
          },
          "fromDate": {
            "title": "Published on or after",
            "type": "string",
            "description": "Lower bound on the publication date, as YYYY-MM-DD. Results always come back newest first, so this is what makes a scheduled run pick up only what is new."
          },
          "maxResults": {
            "title": "Max documents",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many documents across all collections, taken in the order you listed them. Documents page at 1000 per request, so 500 costs a single API request. Set 0 for no cap.",
            "default": 500
          },
          "apiKey": {
            "title": "GovInfo API key",
            "type": "string",
            "description": "Free key from api.data.gov/signup. it arrives by email in seconds and raises the budget from 10 to 1000 requests per hour. Leave this blank to fall back to the shared DEMO_KEY, which works but is capped at 10 requests/hour across every anonymous caller."
          },
          "includeDetails": {
            "title": "Fetch full package metadata",
            "type": "boolean",
            "description": "Adds the official long title as 'summary' and takes congress, billType and billNumber from GovInfo rather than deriving them from the package ID. This costs one extra API request PER DOCUMENT. 500 documents means 500 requests, which is half a free key's hourly budget. Leave off unless you need the long titles.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}