{
  "openapi": "3.0.1",
  "info": {
    "title": "Regulatory Change Monitor: Federal Register, UK, EU Law",
    "description": "New rules, proposed rules, notices, consultations, guidance and legislation from the US Federal Register, GOV.UK, legislation.gov.uk, EU law and Australia in one flat table, with comment deadlines, days left, dockets, CFR parts, keyword and agency filters and only-new alerts.",
    "version": "0.1",
    "x-build-id": "f2Uo6a9SyNFzYiGbx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~regulatory-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-regulatory-change-monitor",
        "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/dottti~regulatory-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-dottti-regulatory-change-monitor",
        "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/dottti~regulatory-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-regulatory-change-monitor",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Topics to watch, one per line (for example: artificial intelligence, emissions, sanctions, medical device, cybersecurity). Read in the title, abstract and subject tags, case-insensitive; 'emission' also finds 'emissions'. Keywords of 3 letters or fewer must match a whole word, and acronyms written in capitals (AI, EV, PFAS, GDPR) match that exact case. Empty = every document.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = a document needs at least one keyword; all = it needs every keyword.",
            "default": "any"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official sources to read. Empty = all five: us-federal-register (rules, proposed rules, notices, presidential documents), uk-govuk (consultations, calls for evidence, guidance, policy papers, regulator publications), uk-legislation (new UK, Scottish, Welsh and Northern Ireland Acts and statutory instruments, including drafts), eu-law (EU regulations, directives and decisions in the Official Journal, and Commission legislative proposals), au-legislation (new Australian Acts and legislative instruments).",
            "items": {
              "type": "string",
              "enum": [
                "us-federal-register",
                "uk-govuk",
                "uk-legislation",
                "eu-law",
                "au-legislation"
              ],
              "enumTitles": [
                "US Federal Register",
                "GOV.UK",
                "legislation.gov.uk",
                "EU law (Official Journal + proposals)",
                "Australia Federal Register of Legislation"
              ]
            },
            "default": []
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Shortcut to pick sources by country: US, UK, EU, AU. Empty = all. Combined with Sources when both are set.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "UK",
                "EU",
                "AU"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "European Union",
                "Australia"
              ]
            },
            "default": []
          },
          "docTypes": {
            "title": "Document types",
            "type": "array",
            "description": "Keep only these types. Empty = all. rule = final rules (US) and regulator rules (UK); proposed_rule = US proposed rules, UK draft statutory instruments and EU legislative proposals; notice = US notices; consultation = UK consultations and calls for evidence (open, closed and outcomes); guidance = UK guidance and policy papers; legislation = new Acts, statutory instruments and EU acts; presidential_document = US executive orders, proclamations and memoranda.",
            "items": {
              "type": "string",
              "enum": [
                "rule",
                "proposed_rule",
                "notice",
                "consultation",
                "guidance",
                "legislation",
                "presidential_document"
              ],
              "enumTitles": [
                "Final rule",
                "Proposed rule / draft / proposal",
                "Notice",
                "Consultation / call for evidence",
                "Guidance / policy paper",
                "Legislation",
                "Presidential document"
              ]
            },
            "default": []
          },
          "agencies": {
            "title": "Agencies or departments",
            "type": "array",
            "description": "Keep only documents from agencies whose name or acronym contains one of these, one per line (for example: Environmental Protection Agency, Food and Drug Administration, HMRC, Financial Conduct Authority, European Commission, Directorate-General for Trade). Case-insensitive. legislation.gov.uk and the Australian register do not name a department, so their rows are left out when this is set. Empty = every agency.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sinceDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How far back to look. EU acts use their Official Journal publication date, proposals their adoption date; Australian items their registration date. Ignored when Only open comment periods is on.",
            "default": 7
          },
          "commentOpenOnly": {
            "title": "Only open comment periods",
            "type": "boolean",
            "description": "Return only documents you can still comment on: US Federal Register documents whose comment period has not closed and open UK consultations and calls for evidence, whatever their publication date, soonest deadline first. The other sources have no comment periods and are skipped.",
            "default": false
          },
          "maxPerSource": {
            "title": "Max documents per source",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The newest documents kept from each source after filters (soonest deadlines with Only open comment periods). 0 = no limit (the Federal Register alone publishes about 500 documents a week).",
            "default": 10
          },
          "maxItems": {
            "title": "Max documents per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many document rows in total.",
            "default": 100
          },
          "maxAbstractLength": {
            "title": "Max abstract length (characters)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Abstracts and summaries longer than this are cut at a word break and abstractTruncated is true. 0 = leave abstracts out. Keywords are always read on the full text.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new documents (alerts)",
            "type": "boolean",
            "description": "Return (and charge for) only documents not delivered by an earlier run with the same alert name. The first run returns the current documents as a starting point. Use with a schedule and a Slack, email or webhook integration.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Name of the memory used by Only new. Use a different name for each separate watch list or schedule.",
            "default": "default"
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause before each request. legislation.gov.uk is always read at most once every 5 seconds, as its robots.txt asks.",
            "default": 300
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries per request on network errors, 429 and 5xx answers.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}