{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Register Scraper - US Rules, Proposed Rules & Notices",
    "description": "Monitor US federal regulations: final rules, proposed rules, notices and executive orders from the Federal Register. Filter by keyword, agency, date, comment deadline, docket, RIN or CFR part. Get effective dates, comment deadlines, dockets, PDFs. No API key.",
    "version": "0.1",
    "x-build-id": "wU5ikHt1h7VSdh2jj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hichemdev~federal-register-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hichemdev-federal-register-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/hichemdev~federal-register-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hichemdev-federal-register-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/hichemdev~federal-register-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hichemdev-federal-register-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": {
          "searchTerm": {
            "title": "Keyword search",
            "type": "string",
            "description": "Full-text search across the Federal Register, e.g. artificial intelligence, PFAS, stablecoin, prior authorization. Supports quotes for exact phrases. Leave empty to get every document matching the other filters."
          },
          "documentTypes": {
            "title": "Document types",
            "type": "array",
            "description": "Which kinds of documents to include. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "RULE",
                "PRORULE",
                "NOTICE",
                "PRESDOCU"
              ],
              "enumTitles": [
                "Final rules",
                "Proposed rules",
                "Notices",
                "Presidential documents"
              ]
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Only documents from these agencies. Accepts acronyms (EPA, SEC, FDA, CMS, FAA), full names (Environmental Protection Agency) or Federal Register slugs (environmental-protection-agency). Several agencies are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "lastDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Only documents published in the last N days (counted back from the day of the run). Ideal for scheduled monitoring. Ignored when 'Published on or after' is set."
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Only documents published on or after this date."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Only documents published on or before this date."
          },
          "openForComment": {
            "title": "Open for comment only",
            "type": "boolean",
            "description": "Only documents whose public comment period closes today or later. Combine with 'Proposed rules' to track every rule you can still comment on.",
            "default": false
          },
          "commentsCloseAfter": {
            "title": "Comments close on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Only documents whose comment deadline is on or after this date."
          },
          "commentsCloseBefore": {
            "title": "Comments close on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Only documents whose comment deadline is on or before this date, e.g. to find deadlines in the next two weeks."
          },
          "effectiveAfter": {
            "title": "Effective on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Only rules taking effect on or after this date."
          },
          "effectiveBefore": {
            "title": "Effective on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Only rules taking effect on or before this date."
          },
          "significantOnly": {
            "title": "Significant rules only",
            "type": "boolean",
            "description": "Only documents flagged as significant under Executive Order 12866 (reviewed by OIRA, typically major economic impact).",
            "default": false
          },
          "presidentialDocumentTypes": {
            "title": "Presidential document types",
            "type": "array",
            "description": "Only these kinds of presidential documents. Setting this restricts results to presidential documents.",
            "items": {
              "type": "string",
              "enum": [
                "executive_order",
                "proclamation",
                "memorandum",
                "determination",
                "notice",
                "presidential_order",
                "other"
              ],
              "enumTitles": [
                "Executive orders",
                "Proclamations",
                "Memoranda",
                "Determinations",
                "Notices",
                "Presidential orders",
                "Other"
              ]
            }
          },
          "docketId": {
            "title": "Docket ID",
            "type": "string",
            "description": "Only documents in this agency docket, e.g. EPA-HQ-OAR-2021-0317 or CMS-1850-FC."
          },
          "regulationIdNumber": {
            "title": "RIN (Regulation Identifier Number)",
            "type": "string",
            "description": "Only documents for this RIN, e.g. 2060-AV16. Follows one rulemaking from proposal to final rule."
          },
          "cfrTitle": {
            "title": "CFR title",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only documents affecting this Code of Federal Regulations title, e.g. 40 (environment), 21 (food and drugs), 12 (banks)."
          },
          "cfrPart": {
            "title": "CFR part",
            "type": "string",
            "description": "Only documents affecting this CFR part (requires CFR title), e.g. 60. A range like 60-63 also works."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "relevance"
            ],
            "type": "string",
            "description": "Order of results. Relevance only makes sense with a keyword search.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max documents",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many documents.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The Federal Register API is public, so a proxy is not required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}