{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Register Scraper: New Rules & Notices Alerts",
    "description": "Search and monitor the US Federal Register: final rules, proposed rules, notices and executive orders. Filter by agency, keyword, CFR title, docket, significance and open comment periods. Flat JSON with comment deadlines and effective dates. 'Only new' mode for daily regulatory alerts. No API key.",
    "version": "0.1",
    "x-build-id": "qshWiCIxjbfVUa6cI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/radiant_opuntia~federal-register-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-radiant_opuntia-federal-register-alerts",
        "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/radiant_opuntia~federal-register-alerts/runs": {
      "post": {
        "operationId": "runs-sync-radiant_opuntia-federal-register-alerts",
        "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/radiant_opuntia~federal-register-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-radiant_opuntia-federal-register-alerts",
        "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": {
          "keyword": {
            "title": "Keyword or phrase",
            "type": "string",
            "description": "Full-text search of Federal Register documents. Use quotes for an exact phrase, e.g. \"artificial intelligence\" or \"tariff exclusion\"."
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Agency names or acronyms, e.g. 'EPA', 'Food and Drug Administration', 'SEC', 'FCC', 'Treasury'. Leave empty for all agencies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "documentTypes": {
            "title": "Document types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "RULE",
                "PRORULE",
                "NOTICE",
                "PRESDOCU"
              ],
              "enumTitles": [
                "Final rules",
                "Proposed rules (open for comment)",
                "Notices (grants, meetings, permits, approvals...)",
                "Presidential documents (executive orders, proclamations)"
              ]
            },
            "default": []
          },
          "presidentialTypes": {
            "title": "Presidential document kind",
            "type": "array",
            "description": "Narrow presidential documents to executive orders, proclamations, etc. Leave empty for all. Works together with or without the document types filter.",
            "items": {
              "type": "string",
              "enum": [
                "executive_order",
                "proclamation",
                "memorandum",
                "determination",
                "notice",
                "presidential_order",
                "other"
              ],
              "enumTitles": [
                "Executive orders",
                "Proclamations",
                "Memoranda",
                "Determinations",
                "Notices",
                "Presidential orders",
                "Other"
              ]
            },
            "default": []
          },
          "significantOnly": {
            "title": "Significant rules only",
            "type": "boolean",
            "description": "Only documents OMB flagged as significant (major regulatory impact).",
            "default": false
          },
          "commentsOpenOnly": {
            "title": "Comment period still open",
            "type": "boolean",
            "description": "Only documents whose public comment deadline is today or later. Great for finding rules you can still comment on.",
            "default": false
          },
          "docketId": {
            "title": "Docket ID",
            "type": "string",
            "description": "Only documents in this docket, e.g. 'EPA-HQ-OAR-2021-0317'."
          },
          "cfrTitle": {
            "title": "CFR title number",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only documents amending this Code of Federal Regulations title, e.g. 21 for FDA rules, 40 for EPA. 0 = off.",
            "default": 0
          },
          "cfrPart": {
            "title": "CFR part",
            "type": "string",
            "description": "Optional part number within the CFR title, e.g. '803'. Needs a CFR title."
          },
          "publishedWithinDays": {
            "title": "Published within last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Documents published in the last N days. 0 = no limit. Ignored if a start date is set.",
            "default": 7
          },
          "startDate": {
            "title": "Published from (optional)",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides 'Published within last N days'."
          },
          "endDate": {
            "title": "Published until (optional)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "effectiveFrom": {
            "title": "Effective from (optional)",
            "type": "string",
            "description": "Only rules taking effect on or after this date, YYYY-MM-DD."
          },
          "effectiveTo": {
            "title": "Effective until (optional)",
            "type": "string",
            "description": "Only rules taking effect on or before this date, YYYY-MM-DD."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "relevance"
            ],
            "type": "string",
            "description": "Order of results. Matters when you set a low max results.",
            "default": "newest"
          },
          "onlyNew": {
            "title": "Only new since last run (alerts mode)",
            "type": "boolean",
            "description": "Remember which documents were already returned and output only new ones. Use with a daily Schedule + email/Slack/webhook integration.",
            "default": false
          },
          "stateKey": {
            "title": "Alert name (optional)",
            "type": "string",
            "description": "Separate memory for 'only new' mode. Defaults to a key derived from your filters."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many documents.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}