{
  "openapi": "3.0.1",
  "info": {
    "title": "Dutch Government Announcements Monitor – Permits",
    "description": "Dutch government announcements from officielebekendmakingen.nl as a filterable feed: permits, zoning plans, traffic decisions and regulations by municipality, postcode area, type, keywords and period, with authority, address, coordinates, summary, document links and the derived objection deadline.",
    "version": "0.1",
    "x-build-id": "pDa4caZYNy0pRdHhM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lwsdjfls~nl-govt-announcements-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lwsdjfls-nl-govt-announcements-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/lwsdjfls~nl-govt-announcements-monitor/runs": {
      "post": {
        "operationId": "runs-sync-lwsdjfls-nl-govt-announcements-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/lwsdjfls~nl-govt-announcements-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-lwsdjfls-nl-govt-announcements-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "lookup",
              "monitor"
            ],
            "type": "string",
            "description": "Lookup: every publication matching the filters in the period is delivered. Monitor: the first run delivers a baseline (priced like a lookup), later runs deliver only publications that are new since the previous run (schedule it daily).",
            "default": "lookup"
          },
          "gemeenten": {
            "title": "Gemeenten",
            "maxItems": 400,
            "type": "array",
            "description": "Municipality names as officielebekendmakingen.nl writes them (\"Amsterdam\", \"Voorst\", \"'s-Hertogenbosch\"). Matches publications by the municipality as authority and publications by provinces, water boards or the state about a location inside it. Leave empty for the whole country.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "authorities": {
            "title": "Other authorities",
            "maxItems": 100,
            "type": "array",
            "description": "Provinces, water boards or ministries as publishing authority, e.g. \"Provincie Gelderland\", \"Waterschap Vechtstromen\".",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "default": []
          },
          "postcodeAreas": {
            "title": "Postcode areas",
            "maxItems": 500,
            "type": "array",
            "description": "Four-digit areas (7391) or full postcodes (7391 ST). Only publications whose address carries a matching postcode are delivered; publications without a postcode in title, address or text are left out when this filter is set.",
            "items": {
              "type": "string",
              "maxLength": 8
            },
            "default": []
          },
          "types": {
            "title": "Types",
            "maxItems": 20,
            "type": "array",
            "description": "Publication types (OWMS rubrieken). Types that exist to publish matters of named persons (bankruptcies, divorces, court summons, BRP decisions) are never offered.",
            "items": {
              "type": "string",
              "enum": [
                "omgevingsvergunning",
                "bestemmingsplan",
                "verkeersbesluit",
                "apv",
                "evenementenvergunning",
                "exploitatievergunning",
                "andere-vergunning",
                "melding",
                "beleidsregel",
                "besluit-algemene-strekking",
                "overig"
              ],
              "enumTitles": [
                "Omgevingsvergunning",
                "Bestemmings- of omgevingsplan",
                "Verkeersbesluit",
                "Verordening (APV en andere)",
                "Evenementenvergunning of -melding",
                "Exploitatievergunning (horeca)",
                "Andere vergunning",
                "Melding",
                "Beleidsregel",
                "Ander besluit van algemene strekking",
                "Overige overheidsinformatie"
              ]
            },
            "default": [
              "omgevingsvergunning"
            ]
          },
          "activities": {
            "title": "Activities (omgevingsvergunning)",
            "maxItems": 9,
            "type": "array",
            "description": "Restrict omgevingsvergunningen to activities: bouwen, slopen, kappen, milieu, natuur, reclame, uitweg en inrit, brandveilig gebruik, ruimtelijke ordening.",
            "items": {
              "type": "string",
              "enum": [
                "bouwen",
                "slopen",
                "kappen",
                "milieu",
                "natuur",
                "reclame",
                "uitweg en inrit",
                "brandveilig gebruik",
                "ruimtelijke ordening"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Words or phrases searched in the title, metadata and text (any of them must match): \"zonnepanelen\", \"dakkapel\", \"laadpaal\", \"woningsplitsing\".",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "publishedFrom": {
            "title": "Published from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Lookup mode: first publication date (YYYY-MM-DD). Default: the last 7 days (see \"Days\")."
          },
          "publishedTo": {
            "title": "Published up to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Lookup mode: last publication date (YYYY-MM-DD), inclusive."
          },
          "lookbackDays": {
            "title": "Days",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Lookup mode without dates: publications of the last N days. Monitor mode: the window in which new publications are looked for; keep it larger than the interval between runs.",
            "default": 7
          },
          "fetchDocuments": {
            "title": "Read the publication texts",
            "type": "boolean",
            "description": "Reads each publication's text to derive the objection deadline (dispatch date, \"tot en met\" date, inspection period) and the summary. Without it only the metadata is used.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum publications per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Caps the charged publications in one run. To find them, a run reads at most five times as many publications, up to 10,000 (or this cap, when it is higher).",
            "default": 1000
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Receives a POST with a summary after each run that delivered publications."
          },
          "stateKey": {
            "title": "State key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "type": "string",
            "description": "Separates independent monitors. Defaults to the task ID, so each saved task keeps its own baseline."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}