{
  "openapi": "3.0.1",
  "info": {
    "title": "Portugal EV Charging - Dataset Export",
    "description": "Export live Portugal EV charging to a dataset. Set your location and driving time. Get cheapest charge, chargers you can reach, hubs nearby, or one charger by ID. Official status, real card prices, minutes on the road. Not a scraper.",
    "version": "0.0",
    "x-build-id": "5caeCQoNniKEh8yK0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teal_hang~ev-charging-portugal-run/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teal_hang-ev-charging-portugal-run",
        "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/teal_hang~ev-charging-portugal-run/runs": {
      "post": {
        "operationId": "runs-sync-teal_hang-ev-charging-portugal-run",
        "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/teal_hang~ev-charging-portugal-run/run-sync": {
      "post": {
        "operationId": "run-sync-teal_hang-ev-charging-portugal-run",
        "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": [
          "tool"
        ],
        "properties": {
          "location": {
            "title": "Where are you?",
            "type": "string",
            "description": "Latitude, longitude. Default is Marques de Pombal, Lisbon. Used for cheapest charge, chargers I can reach, and hubs near me.",
            "default": "38.7253, -9.1502"
          },
          "max_minutes": {
            "title": "How far you will drive (minutes)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Max driving time from here to the charger. Time on the road, not a circle on the map. 1 to 15. Used for the same three questions.",
            "default": 15
          },
          "tool": {
            "title": "What do you want?",
            "enum": [
              "compare_price",
              "chargers_within",
              "hubs_now",
              "hub_now",
              "reliability"
            ],
            "type": "string",
            "description": "One question per run. Cheapest / chargers I can reach / hubs near me use Where are you? above. Is this site full? and Is this charger reliable? need a charger ID below. Without that ID those two fail.",
            "default": "compare_price"
          },
          "kwh": {
            "title": "kWh you want to charge",
            "minimum": 1,
            "type": "number",
            "description": "Used for cheapest charge. Leave 30 otherwise.",
            "default": 30
          },
          "ceme": {
            "title": "Charging card",
            "enum": [
              "any",
              "ACP Electric",
              "ACP Electric Sócio",
              "Atlante",
              "BlueCharge",
              "Charge2Go",
              "Chargemap",
              "EDP",
              "EDP Casa",
              "EDP Casa (Bi-horário)",
              "EDP Casa + UVE",
              "EDP Casa + UVE (Bi-horário)",
              "EDP UVE",
              "EDP UVE (Bi-horário)",
              "EDP (Bi-horário)",
              "EVPower",
              "EZU / AB Energia",
              "EZU / AB Energia App",
              "Enable Mobility",
              "Evio",
              "FactorEnergia",
              "Galp Electric",
              "Galp Electric App",
              "Galp Electric App + OPC",
              "Galp Electric Casa",
              "Galp Electric Casa + OPC",
              "Goldenergy",
              "Goldenergy Casa",
              "Iberdrola",
              "Iberdrola Casa",
              "Meo Energia Colaboradores",
              "Meo Energia M2e/M3e",
              "Meo Energia M4e/M5e",
              "Miio",
              "Miio One",
              "Mobismart/EVCE Active",
              "Mobismart/EVCE Pré-Pago",
              "Moeve App GOW",
              "Moeve App GOW Deco",
              "Moeve Cartão",
              "Okeana",
              "Prio (kWh)",
              "Repsol",
              "ViaVerde | EcoChoice",
              "Zunder",
              "eVaz Move Base",
              "eVaz Move Volt / Home"
            ],
            "type": "string",
            "description": "Used for cheapest charge. The exact card in your wallet, not the brand. Any card = cheapest across all cards.",
            "default": "any"
          },
          "charging_point_id": {
            "title": "Charger ID",
            "type": "string",
            "description": "You must fill this if you asked Is this site full? or Is this charger reliable?. Without it those two fail. Copy the id column from a previous run (example OER-00069-01) or read it on the post. Leave empty for the other questions."
          },
          "limit": {
            "title": "How many rows",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Used for chargers I can reach and hubs near me. Max 50.",
            "default": 25
          },
          "full": {
            "title": "Longer reliability history",
            "type": "boolean",
            "description": "Used for Is this charger reliable? Off = last 7 and 30 days. On = long history.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}