{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenChargeMap EV Station Scraper",
    "description": "Extract EV charging station locations, connectors, operators, status, and coordinates from the OpenChargeMap API with country, radius, and bounding-box filters.",
    "version": "1.0",
    "x-build-id": "m6l76nt7tq1HgWeRD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~openchargemap-ev-station-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-openchargemap-ev-station-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/muhammadafzal~openchargemap-ev-station-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-openchargemap-ev-station-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/muhammadafzal~openchargemap-ev-station-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-openchargemap-ev-station-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",
        "required": [
          "maxResults"
        ],
        "properties": {
          "accessMode": {
            "title": "Access Mode",
            "enum": [
              "auto",
              "web",
              "api"
            ],
            "type": "string",
            "description": "Choose api for your own OpenChargeMap key, web for the public OpenChargeMap map client, or auto to prefer your own key and fall back to the public web client.",
            "default": "auto"
          },
          "apiKey": {
            "title": "OpenChargeMap API Key",
            "type": "string",
            "description": "Optional personal API key. Prefer the OPENCHARGEMAP_API_KEY environment variable. In auto mode, leaving this blank uses the public web client fallback."
          },
          "countryCode": {
            "title": "Country Code",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Optional ISO 3166-1 alpha-2 country code, such as US, GB, or DE."
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional center latitude for a radius search. Use with longitude and distance."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional center longitude for a radius search. Use with latitude and distance."
          },
          "distance": {
            "title": "Search Radius",
            "minimum": 0.1,
            "maximum": 500,
            "type": "number",
            "description": "Radius around latitude/longitude. The unit is selected by distanceUnit.",
            "default": 25
          },
          "distanceUnit": {
            "title": "Distance Unit",
            "enum": [
              "km",
              "miles"
            ],
            "type": "string",
            "description": "Unit for the radius search.",
            "default": "km"
          },
          "boundingBox": {
            "title": "Bounding Box",
            "required": [
              "north",
              "south",
              "east",
              "west"
            ],
            "type": "object",
            "description": "Optional geographic box as {\"north\": 52.0, \"south\": 51.0, \"east\": 0.5, \"west\": -0.5}. Do not combine with a radius search.",
            "properties": {
              "north": {
                "type": "number",
                "title": "North",
                "description": "Northern latitude boundary.",
                "minimum": -90,
                "maximum": 90
              },
              "south": {
                "type": "number",
                "title": "South",
                "description": "Southern latitude boundary.",
                "minimum": -90,
                "maximum": 90
              },
              "east": {
                "type": "number",
                "title": "East",
                "description": "Eastern longitude boundary.",
                "minimum": -180,
                "maximum": 180
              },
              "west": {
                "type": "number",
                "title": "West",
                "description": "Western longitude boundary.",
                "minimum": -180,
                "maximum": 180
              }
            }
          },
          "operatorIds": {
            "title": "Operator IDs",
            "type": "array",
            "description": "Optional OpenChargeMap operator IDs to filter by.",
            "items": {
              "type": "integer"
            }
          },
          "connectionTypeIds": {
            "title": "Connection Type IDs",
            "type": "array",
            "description": "Optional OpenChargeMap connection type IDs to filter by.",
            "items": {
              "type": "integer"
            }
          },
          "statusTypeIds": {
            "title": "Status Type IDs",
            "type": "array",
            "description": "Optional OpenChargeMap status type IDs to filter by.",
            "items": {
              "type": "integer"
            }
          },
          "openDataOnly": {
            "title": "Open Data Only",
            "type": "boolean",
            "description": "Return only records marked as open-data licensed by OpenChargeMap.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of stations to return in this run. The API request is capped at 10,000.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}