{
  "openapi": "3.0.1",
  "info": {
    "title": "US Federal Register Scraper — Rules, Executive Orders & CFR",
    "description": "Scrape US Federal Register Final/Proposed Rules, Executive Orders, agency notices & pre-publication Public Inspection filings with CFR citations, eCFR links, Regulations.gov dockets, RINs, EO 12866 flags & open comment countdowns. MCP-ready.",
    "version": "1.0",
    "x-build-id": "PQdafbxLA30O3yD5P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/autotroph~us-federal-register-normalizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-autotroph-us-federal-register-normalizer",
        "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/autotroph~us-federal-register-normalizer/runs": {
      "post": {
        "operationId": "runs-sync-autotroph-us-federal-register-normalizer",
        "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/autotroph~us-federal-register-normalizer/run-sync": {
      "post": {
        "operationId": "run-sync-autotroph-us-federal-register-normalizer",
        "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": {
          "mode": {
            "title": "Ingestion Mode",
            "enum": [
              "search",
              "document_numbers",
              "public_inspection"
            ],
            "type": "string",
            "description": "Choose 'search' to query published Federal Register documents, 'document_numbers' to normalize specific document numbers, or 'public_inspection' to monitor today's pre-publication filings.",
            "default": "search"
          },
          "query": {
            "title": "Search Query (Optional)",
            "type": "string",
            "description": "Full-text search query (e.g., 'artificial intelligence', 'HIPAA', 'export controls', 'airworthiness', 'tariff'). Leave empty to retrieve the latest matching filings.",
            "default": ""
          },
          "documentTypes": {
            "title": "Document Types (Optional)",
            "type": "array",
            "description": "Filter by Federal Register document type codes: 'RULE' (Final Rule), 'PRORULE' (Proposed Rule), 'PRESDOCU' (Presidential Document / Executive Order), 'NOTICE' (Agency Notice). Leave empty for all types.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "presidentialDocumentTypes": {
            "title": "Presidential Document Subtypes (Optional)",
            "type": "array",
            "description": "Optional filter when querying PRESDOCU: e.g., 'executive_order', 'proclamation', 'memorandum', 'determination'.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "agencies": {
            "title": "Agency Slugs (Optional)",
            "type": "array",
            "description": "Filter by official Federal Register agency slugs (e.g., 'securities-and-exchange-commission', 'environmental-protection-agency', 'food-and-drug-administration', 'federal-aviation-administration', 'health-and-human-services-department').",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "documentNumbers": {
            "title": "Document Numbers (Direct Lookup)",
            "type": "array",
            "description": "List of Federal Register document numbers for 'document_numbers' mode (e.g., '2026-23429', '2026-23777', '2026-24114').",
            "items": {
              "type": "string"
            },
            "default": [
              "2026-23429",
              "2026-23777",
              "2026-24114"
            ]
          },
          "cfrTitle": {
            "title": "CFR Title Number (Optional)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Filter by Code of Federal Regulations title number (1 to 50, e.g., 14 for Aeronautics, 17 for SEC/CFTC, 21 for FDA, 40 for EPA, 45 for HHS/HIPAA)."
          },
          "cfrPart": {
            "title": "CFR Part Number (Optional)",
            "type": "string",
            "description": "Optional CFR part filter when cfrTitle is set (e.g., '164', '39', '571').",
            "default": ""
          },
          "significantOnly": {
            "title": "EO 12866 Significant Regulatory Actions Only",
            "type": "boolean",
            "description": "When true, restricts search to economically/policy significant regulatory actions flagged under Executive Order 12866.",
            "default": false
          },
          "openCommentsOnly": {
            "title": "Open Public Comment Windows Only",
            "type": "boolean",
            "description": "When true, returns only documents whose public comment period is currently open (comments_close_on >= today UTC).",
            "default": false
          },
          "dateFrom": {
            "title": "Publication Date From (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive publication start date (e.g., '2026-01-01').",
            "default": ""
          },
          "dateTo": {
            "title": "Publication Date To (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive publication end date (e.g., '2026-12-31').",
            "default": ""
          },
          "order": {
            "title": "Sort Order",
            "enum": [
              "newest",
              "oldest",
              "relevance",
              "executive_order_number"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max Normalized Documents",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of verified Federal Register records to emit (1 to 1,000).",
            "default": 20
          },
          "strictValidation": {
            "title": "Drop Records Failing Integrity Checks",
            "type": "boolean",
            "description": "When true, records failing deterministic schema/date/CFR integrity checks are logged as warnings instead of pushed/billed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}