{
  "openapi": "3.0.1",
  "info": {
    "title": "EV Fast Charging API: Real-Time Status, Reliability and Pricing",
    "description": "Real-time DC fast charger availability, reliability scores, utilization, failure rates, pricing and nearby amenities for public EV charging stations in the US and Canada via the Paren API. Filter by radius, state, power, CCS, NACS or CHAdeMO. Weekly and monthly stats. Bring your own key.",
    "version": "0.1",
    "x-build-id": "UfER8qTYjMuXgUYKl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~ev-fast-charging-reliability-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-ev-fast-charging-reliability-api",
        "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/nabeelbaghoor~ev-fast-charging-reliability-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-ev-fast-charging-reliability-api",
        "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/nabeelbaghoor~ev-fast-charging-reliability-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-ev-fast-charging-reliability-api",
        "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": "What to read",
            "enum": [
              "realtimeLocations",
              "locations",
              "aggregations",
              "pricingAggregations",
              "locationAggregations",
              "locationAmenities",
              "locationPricing",
              "locationPricingHistory"
            ],
            "type": "string",
            "description": "Real-time availability lists DC fast charging locations with live EVSE status, reliability scores, failure and retry rates, wait times and current pricing. Charging locations lists the station directory. Reliability and utilization aggregations and pricing aggregations cover a week, a month or days across the network. The by location ID modes read one location's statistics, amenities, current pricing or pricing history.",
            "default": "realtimeLocations"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Optional. US, Canada or both. Leave empty for both. Real-time, locations and network aggregation modes.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA"
              ],
              "enumTitles": [
                "United States",
                "Canada"
              ]
            }
          },
          "states": {
            "title": "States or provinces",
            "type": "array",
            "description": "Optional. Two letter state or province codes such as CA, TX, WA or ON, one per line. Real-time, locations and network aggregation modes.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "type": "string",
            "description": "Optional radius search centre, as a decimal latitude such as 39.9071. Needs the longitude and a radius. Real-time and locations modes."
          },
          "longitude": {
            "title": "Longitude",
            "type": "string",
            "description": "Optional radius search centre, as a decimal longitude such as -75.2242. Needs the latitude and a radius."
          },
          "radius": {
            "title": "Radius",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Search radius around the latitude and longitude, at most 25000 meters or 15 miles (the documented maximum)."
          },
          "radiusUnit": {
            "title": "Radius unit",
            "enum": [
              "meters",
              "miles"
            ],
            "type": "string",
            "description": "Unit of the radius.",
            "default": "meters"
          },
          "portTypes": {
            "title": "Connector types",
            "type": "array",
            "description": "Optional. Only locations with at least one port of these types. Real-time and locations modes.",
            "items": {
              "type": "string",
              "enum": [
                "CCS",
                "NACS",
                "CHADEMO"
              ],
              "enumTitles": [
                "CCS (Combo)",
                "NACS (Tesla)",
                "CHAdeMO"
              ]
            }
          },
          "minPowerKw": {
            "title": "Minimum power (kW)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional. Only locations with at least one connector rated at or above this power, such as 150. Real-time and locations modes."
          },
          "maxPowerKw": {
            "title": "Maximum power (kW)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional. Only locations with at least one connector rated at or below this power. Real-time and locations modes."
          },
          "includeClosed": {
            "title": "Include closed locations",
            "type": "boolean",
            "description": "Locations mode. Also return locations whose charging stations are all CLOSED.",
            "default": false
          },
          "locationIds": {
            "title": "Location IDs",
            "type": "array",
            "description": "Paren location IDs (whole numbers), one per line, from the id column of the real-time or locations modes. Required for the by location ID modes; an optional filter in every other mode.",
            "items": {
              "type": "string"
            }
          },
          "aggregationType": {
            "title": "Aggregation period",
            "enum": [
              "weekly",
              "monthly",
              "daily"
            ],
            "type": "string",
            "description": "Weekly or monthly for every aggregation mode; daily only for the network reliability and pricing aggregations.",
            "default": "weekly"
          },
          "year": {
            "title": "Year",
            "minimum": 2015,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional. Year of the week or month. Defaults to the year of the last completed week or month."
          },
          "weekNumber": {
            "title": "Week number",
            "minimum": 1,
            "maximum": 53,
            "type": "integer",
            "description": "Weekly network aggregations (and daily with a week time range): week 1 to 53. Leave empty for the last completed ISO week."
          },
          "monthNumber": {
            "title": "Month number",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Monthly network aggregations (and daily with a month time range): month 1 to 12. Leave empty for the last completed month."
          },
          "timeRange": {
            "title": "Daily time range",
            "enum": [
              "day",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Daily reliability aggregations only: return the daily records of one day (set the date), one week or one month. Defaults to one day."
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Daily reliability aggregations with a one day range: a date as YYYY-MM-DD. Defaults to yesterday (UTC)."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Daily pricing aggregations: first day as YYYY-MM-DD. Defaults to 7 days ago."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Daily pricing aggregations: last day as YYYY-MM-DD, at most 31 days after the start date. Defaults to yesterday."
          },
          "aggregationExtras": {
            "title": "Extra reliability data",
            "type": "array",
            "description": "Network reliability aggregations only: add session length bins, hourly usage or time of day usage to each record.",
            "items": {
              "type": "string",
              "enum": [
                "bins",
                "hourly",
                "time_of_day"
              ],
              "enumTitles": [
                "Session length bins",
                "Hourly usage",
                "Time of day usage"
              ]
            }
          },
          "pricingExtras": {
            "title": "Extra pricing data",
            "type": "array",
            "description": "Network pricing aggregations only: add fees, hourly prices or every charging station (by default one station per location is priced).",
            "items": {
              "type": "string",
              "enum": [
                "fees",
                "hourly",
                "charging_stations"
              ],
              "enumTitles": [
                "Fees",
                "Hourly prices",
                "Every charging station"
              ]
            }
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. Paren covers thousands of public DC fast charging locations in North America.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Pacing for calls to Paren. Throttled calls are retried after a pause.",
            "default": 60
          },
          "environment": {
            "title": "Server environment",
            "enum": [
              "production",
              "staging"
            ],
            "type": "string",
            "description": "Which documented Paren server your credentials belong to. Production unless Paren gave you staging credentials.",
            "default": "production"
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "Your Paren API key. You may also paste key:secret here and leave the secret key empty. Stored as a secret, sent only in the Basic Authorization header to Paren and never logged. You can instead set the DATA_API_KEY environment secret."
          },
          "apiSecret": {
            "title": "Secret key",
            "type": "string",
            "description": "Your Paren secret key, paired with the API key. Stored as a secret and never logged. You can instead set the DATA_API_SECRET environment secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}