{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Register Scraper: Rules and Deadlines",
    "description": "Scrape the Federal Register for final rules, proposed rules, notices and executive orders. Get comment deadlines with days left, effective dates, docket and CFR references, agencies, page views and optional full text. Filter by agency, topic, date or CFR part. Export to CSV or Excel.",
    "version": "1.0",
    "x-build-id": "hRkLWpWPc78TKO54R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~federal-register-documents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-federal-register-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/parselab~federal-register-documents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-federal-register-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/parselab~federal-register-documents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-federal-register-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "documents",
              "publicInspection",
              "agencies"
            ],
            "type": "string",
            "description": "Documents returns final rules, proposed rules, notices and presidential documents with deadlines and references. Public inspection returns documents that are filed but not yet published. Agencies returns one row per agency with how many documents it published in a period.",
            "default": "documents"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words or phrases searched in the full text, for example tariff, artificial intelligence or lead pipes. Each term is searched on its own and repeated documents are removed. In agencies mode the terms filter the agency names.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Agency names, short names or slugs, for example EPA, Securities and Exchange Commission or food-and-drug-administration.",
            "items": {
              "type": "string"
            }
          },
          "documentTypes": {
            "title": "Document types",
            "type": "array",
            "description": "RULE for final rules, PRORULE for proposed rules, NOTICE for notices, PRESDOCU for presidential documents. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "RULE",
                "PRORULE",
                "NOTICE",
                "PRESDOCU"
              ]
            }
          },
          "presidentialTypes": {
            "title": "Presidential document kinds",
            "type": "array",
            "description": "Only for presidential documents: executive_order, proclamation, memorandum, determination, presidential_order, notice or other.",
            "items": {
              "type": "string",
              "enum": [
                "executive_order",
                "proclamation",
                "memorandum",
                "determination",
                "presidential_order",
                "notice",
                "other"
              ]
            }
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date, in the form 2026-01-31."
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last publication date, in the form 2026-09-30. In public inspection mode it limits the expected publication date."
          },
          "commentsOpenOnly": {
            "title": "Only documents open for public comment",
            "type": "boolean",
            "description": "Keep documents whose comment period has not ended yet. Each row shows the days left.",
            "default": false
          },
          "commentsCloseFrom": {
            "title": "Comments close from",
            "type": "string",
            "description": "Keep documents whose comment deadline is on or after this date, for example 2026-11-01."
          },
          "commentsCloseTo": {
            "title": "Comments close until",
            "type": "string",
            "description": "Keep documents whose comment deadline is on or before this date."
          },
          "effectiveFrom": {
            "title": "Takes effect from",
            "type": "string",
            "description": "Keep documents with an effective date on or after this date."
          },
          "effectiveTo": {
            "title": "Takes effect until",
            "type": "string",
            "description": "Keep documents with an effective date on or before this date."
          },
          "significantOnly": {
            "title": "Only significant rules",
            "type": "boolean",
            "description": "Keep documents marked significant by the Federal Register under Executive Order 12866.",
            "default": false
          },
          "cfrTitle": {
            "title": "CFR title",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Title of the Code of Federal Regulations affected, for example 40 for environmental rules or 17 for securities rules."
          },
          "cfrPart": {
            "title": "CFR part",
            "type": "string",
            "description": "Part of the Code of Federal Regulations, for example 141. Works best together with the CFR title."
          },
          "docketId": {
            "title": "Docket number",
            "type": "string",
            "description": "Agency docket number, for example EPA-HQ-OAR-2021-0317."
          },
          "regulationIdNumber": {
            "title": "Regulation identifier number",
            "type": "string",
            "description": "Regulation identifier number of the unified agenda, for example 2060-AV18."
          },
          "sortBy": {
            "title": "Sort documents by",
            "enum": [
              "newest",
              "oldest",
              "relevance"
            ],
            "type": "string",
            "description": "Documents mode. Relevance only works when search terms are given.",
            "default": "newest"
          },
          "includeFullText": {
            "title": "Add the full text",
            "type": "boolean",
            "description": "Documents mode. Adds the plain text of each document in the field fullText. This makes the run slower.",
            "default": false
          },
          "fullTextMaxChars": {
            "title": "Full text length limit",
            "minimum": 500,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum number of characters of full text kept per document.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}