{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Register Scraper: Rules, Notices & Orders",
    "description": "Scrape the Federal Register: final rules, proposed rules, notices, executive orders and the public inspection desk, filtered by keyword, agency, document type and date. Get docket IDs, comment deadlines, PDFs and optional full text. Export CSV, Excel, JSON, XML. No login or API key.",
    "version": "0.1",
    "x-build-id": "tTaK3GtwuO7XGNyY5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~federal-register-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-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/recordsdata~federal-register-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-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/recordsdata~federal-register-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-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": {
          "searchTerms": {
            "title": "Keywords to search",
            "type": "array",
            "description": "One search per keyword, for example artificial intelligence, tariff or drone. Leave empty to browse only by the filters below.",
            "default": [
              "artificial intelligence"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max documents to return",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total documents across all keywords. Example: 100. Free plan is capped at 10 documents; paid plans go up to 1,000,000.",
            "default": 10
          },
          "sortOrder": {
            "title": "Sort results by",
            "enum": [
              "newest",
              "oldest",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first (default), oldest first, or most relevant to your keywords.",
            "default": "newest"
          },
          "documentTypes": {
            "title": "Document types (optional)",
            "type": "array",
            "description": "Pick Final Rules, Proposed Rules, Notices or Presidential Documents. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "RULE",
                "PRORULE",
                "NOTICE",
                "PRESDOCU"
              ],
              "enumTitles": [
                "Final Rules",
                "Proposed Rules",
                "Notices",
                "Presidential Documents"
              ]
            },
            "default": []
          },
          "presidentialTypes": {
            "title": "Presidential document kinds (optional)",
            "type": "array",
            "description": "Only presidential documents of these kinds: executive orders, proclamations, memoranda and so on. Executive orders add the order number and signing date. Empty means no restriction.",
            "items": {
              "type": "string",
              "enum": [
                "executive_order",
                "proclamation",
                "memorandum",
                "determination",
                "notice",
                "other",
                "presidential_order"
              ],
              "enumTitles": [
                "Executive order",
                "Proclamation",
                "Memorandum",
                "Determination",
                "Notice",
                "Other",
                "Presidential order"
              ]
            },
            "default": []
          },
          "agencySlugs": {
            "title": "Agencies (optional)",
            "type": "array",
            "description": "Agency slugs, for example environmental-protection-agency or federal-aviation-administration. Full list at federalregister.gov/agencies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics (optional)",
            "type": "array",
            "description": "Federal Register topic slugs, for example energy, environmental-protection or imports. An unknown slug returns no documents.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cfrTitle": {
            "title": "CFR title number (optional, 1 to 50)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only documents that amend or cite this Code of Federal Regulations title, for example 40 for environmental protection. 0 means any title.",
            "default": 0
          },
          "significantOnly": {
            "title": "Only significant documents",
            "type": "boolean",
            "description": "Keep only documents the Federal Register marks as significant (economically significant or otherwise important). Off returns everything.",
            "default": false
          },
          "lookbackDays": {
            "title": "Published in the last N days (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Easy date filter, for example 30 for the last month. Ignored when Published on or after is set. 0 means off.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Published on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Example: 2026-01-01. Leave empty for no lower limit.",
            "default": ""
          },
          "publishedBefore": {
            "title": "Published on or before (YYYY-MM-DD)",
            "type": "string",
            "description": "Example: 2026-06-30. Leave empty for no upper limit.",
            "default": ""
          },
          "includeFullText": {
            "title": "Add full document text",
            "type": "boolean",
            "description": "Adds the first 20,000 characters of each document. One extra request per document, billed as its own event.",
            "default": false
          },
          "includePublicInspection": {
            "title": "Add public inspection documents",
            "type": "boolean",
            "description": "Also returns documents filed today but not yet formally published. Billed as its own event.",
            "default": false
          },
          "onlyNew": {
            "title": "Only return new documents",
            "type": "boolean",
            "description": "Skips documents this same search returned in an earlier run, so scheduled runs return only what is new and you are not charged for skipped ones.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Label to keep separate monitors for the same search, for example epa-daily. Leave empty for the default monitor.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget previously seen documents",
            "type": "boolean",
            "description": "Clears the seen list for this search and monitor name before the run, so every match counts as new again.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}