{
  "openapi": "3.0.1",
  "info": {
    "title": "NL Parking Rates & Live Availability Monitor",
    "description": "Find live parking availability, free spaces, tariffs, EV capacity and stay costs near Dutch addresses. Compare cities, detect status/tariff changes and receive webhook alerts. No API key, from $0.003/record.",
    "version": "0.6",
    "x-build-id": "QtUgXgzogxqaUZcdg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codeclouds~nl-parking-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codeclouds-nl-parking-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/codeclouds~nl-parking-monitor/runs": {
      "post": {
        "operationId": "runs-sync-codeclouds-nl-parking-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/codeclouds~nl-parking-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-codeclouds-nl-parking-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": {
          "facilityIds": {
            "title": "Facility IDs",
            "type": "array",
            "description": "Exact RDW facility identifiers (UUIDs) to fetch, e.g. [\"c496f775-0b16-4f5e-8f7a-1a2b3c4d5e6f\"]. Leave empty to search by query, address or coordinates.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Name or city query",
            "type": "string",
            "description": "Case-insensitive facility-name search, for example a garage, city or place name. Not used when facilityIds is set."
          },
          "address": {
            "title": "Address, place or postcode",
            "type": "string",
            "description": "Optional free-text address geocoded through the public PDOK Locatieserver. Results are filtered by radiusKm; explicit nearLatitude/nearLongitude take precedence."
          },
          "queries": {
            "title": "Multiple name or city queries",
            "maxItems": 20,
            "type": "array",
            "description": "Batch of facility-name or city queries. Results are de-duplicated and combined with query.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "offset": {
            "title": "Result offset",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Number of fetched candidates to skip after post-fetch filters and sorting, before maxResults is applied.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "distance",
              "price",
              "availability"
            ],
            "type": "string",
            "description": "Sort the fetched facilities. Relevance preserves the RDW index order.",
            "default": "relevance"
          },
          "maxPricePerHourEuro": {
            "title": "Maximum hourly price",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Only return facilities with a known tariff at or below this hourly price in EUR."
          },
          "onlyWithEvCharging": {
            "title": "Only with EV charging",
            "type": "boolean",
            "description": "Only return facilities with at least one known EV charging point.",
            "default": false
          },
          "minCapacity": {
            "title": "Minimum capacity",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only return facilities with at least this many parking spaces."
          },
          "arrivalAt": {
            "title": "Arrival time",
            "type": "string",
            "description": "Optional ISO date-time for the parking-cost estimate. Use with departureAt, or with durationMinutes."
          },
          "departureAt": {
            "title": "Departure time",
            "type": "string",
            "description": "Optional ISO date-time for the parking-cost estimate. Use with arrivalAt, or with durationMinutes."
          },
          "durationMinutes": {
            "title": "Stay duration in minutes",
            "minimum": 1,
            "maximum": 10080,
            "type": "integer",
            "description": "Optional stay length for the parking-cost estimate, up to 10,080 minutes (7 days)."
          },
          "staleAfterMinutes": {
            "title": "Stale-data threshold",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "Mark static or realtime timestamps older than this threshold as stale.",
            "default": 30
          },
          "monitoringKey": {
            "title": "Monitoring scope key",
            "type": "string",
            "description": "Use a stable unique key to isolate change-detection and occupancy-history state between monitors. Use default for backwards-compatible shared state.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Change webhook URL",
            "type": "string",
            "description": "Optional HTTPS endpoint. A compact POST is sent only when status or tariff changes are found; delivery failure does not fail the run."
          },
          "webhookSecret": {
            "title": "Webhook secret",
            "type": "string",
            "description": "Optional value sent in the X-Parking-Monitor-Secret header. Keep it out of source control."
          },
          "onlyWithRealtimeData": {
            "title": "Only facilities with live occupancy",
            "type": "boolean",
            "description": "Only include facilities that publish real-time free-space counts (about 543 of roughly 14,951 in the feed). Turn off to also include tariff-only facilities such as street parking and P+R.",
            "default": true
          },
          "onlyAvailableNow": {
            "title": "Only currently available",
            "type": "boolean",
            "description": "Only keep facilities that are open right now and not full. Requires live occupancy data; facilities without it are excluded when this is on.",
            "default": false
          },
          "maxResults": {
            "title": "Max facilities",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Page size after post-fetch filters and sorting (1-2000). Increase candidateLimit when a broad search needs deeper filtering.",
            "default": 25
          },
          "candidateLimit": {
            "title": "Candidate scan limit",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum index candidates fetched before availability, price, EV and capacity filters. Use 0 for an automatic window; post-filters use up to 2x the requested page, minimum 50.",
            "default": 0
          },
          "detectChanges": {
            "title": "Detect status and tariff changes",
            "type": "boolean",
            "description": "Compare each facility's live status and canonical tariff fingerprint against the previous run. Status changes use the higher availability-change-alert rate; tariff-only changes are exposed in output and optional webhooks without a separate event.",
            "default": true
          },
          "trackOccupancyHistory": {
            "title": "Track occupancy history",
            "type": "boolean",
            "description": "Build up an occupancy time series per facility across scheduled runs (stored in the actor's key-value store), capped at maxHistoryPoints. Only applies to facilities with real-time data. Charges a new occupancy-history-point event per facility that gets a new point.",
            "default": false
          },
          "maxHistoryPoints": {
            "title": "Max history points per facility",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many past measurements to keep per facility when trackOccupancyHistory is enabled. Oldest points are dropped once this cap is reached.",
            "default": 30
          },
          "historyRetentionDays": {
            "title": "Occupancy history retention (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many days of inactivity (no new measurement) before a facility's occupancy history is pruned from the key-value store. Prevents unbounded growth from facilities that are no longer requested.",
            "default": 90
          },
          "nearLatitude": {
            "title": "Search near latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Only keep facilities within radiusKm of this latitude/longitude. Both nearLatitude and nearLongitude must be set for the filter to apply. Useful for street-parking zones that have no city/place name to search by."
          },
          "nearLongitude": {
            "title": "Search near longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Only keep facilities within radiusKm of this latitude/longitude."
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 0.1,
            "maximum": 500,
            "type": "number",
            "description": "Radius in kilometers around nearLatitude/nearLongitude. Only applies when both coordinates are set.",
            "default": 5
          },
          "fuzzyMatch": {
            "title": "Fuzzy name search",
            "type": "boolean",
            "description": "Opt-in typo-tolerant matching for query/queries fields: matches query tokens against facility name tokens by edit distance instead of requiring an exact substring. Helps when the name is abbreviated, misspelled, or word order differs.",
            "default": false
          },
          "voorspelBeschikbaarheid": {
            "title": "Predict busier/quieter than usual",
            "type": "boolean",
            "description": "Compares current occupancy against the historical average at the same hour of day, built from trackOccupancyHistory's time series. Only meaningful together with trackOccupancyHistory -- without prior history the field stays null. The derived event is $0.005 and is charged only when a comparable prior measurement exists.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}