{
  "openapi": "3.0.1",
  "info": {
    "title": "PlugShare Scraper: EV Charging Station Data",
    "description": "Extract EV charging station data from PlugShare by location: address, GPS, connectors, power, network, PlugScore, hours, cost, and reviews. Built-in rate-limit retry with backoff for reliable runs, plus scheduled monitoring for fleet, route-planning, and site-selection pipelines. No browser needed.",
    "version": "1.0",
    "x-build-id": "cjGoughOhfZYfKBz0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~plugshare-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-plugshare-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/getascraper~plugshare-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-plugshare-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/getascraper~plugshare-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-plugshare-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": [
          "searchAreas"
        ],
        "properties": {
          "searchAreas": {
            "title": "Search areas",
            "type": "array",
            "description": "One or more center points to search around. Each area is a { latitude, longitude, radiusKm, label } object. Add multiple small areas to cover a large region instead of one giant radius (PlugShare's API returns the nearest N stations per request, not a full-region dump)."
          },
          "maxItemsPerArea": {
            "title": "Max stations per area",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of stations to return per search area (PlugShare's API caps results per request; use more, smaller areas to cover dense regions fully).",
            "default": 100
          },
          "connectorTypes": {
            "title": "Connector types",
            "type": "array",
            "description": "Only keep stations offering at least one of these connector types (matched against PlugShare's reported connector list, case-insensitive substring match). Leave empty to keep all.",
            "items": {
              "type": "string"
            }
          },
          "fastChargersOnly": {
            "title": "Fast (DC) chargers only",
            "type": "boolean",
            "description": "Only keep locations PlugShare flags as DC fast chargers.",
            "default": false
          },
          "networkIncludes": {
            "title": "Include networks (allowlist)",
            "type": "array",
            "description": "Only keep stations whose network name contains one of these strings (e.g. \"Tesla\", \"EVgo\", \"ChargePoint\"). Case-insensitive. Leave empty to keep all networks.",
            "items": {
              "type": "string"
            }
          },
          "networkExcludes": {
            "title": "Exclude networks (blocklist)",
            "type": "array",
            "description": "Drop stations whose network name contains one of these strings. Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full station details",
            "type": "boolean",
            "description": "Fetch each station's full detail record (hours, cost, phone, description, outlet-level connector/power breakdown). Adds one extra request per station. Turn off for a fast overview pass using only the nearby-search fields.",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Include user reviews (rating, comment, connector used, reviewer display name). Off by default: review author display names are user-generated content and treated as personal data. Requires \"Fetch full station details\" to be on.",
            "default": false
          },
          "sinceDate": {
            "title": "Only stations updated since",
            "type": "string",
            "description": "ISO date (e.g. 2026-08-01). Skip stations whose PlugShare updated_at is older than this date. Useful for scheduled monitoring runs that only care about recent changes. Requires \"Fetch full station details\" to be on (updated_at is only present on the detail record)."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed stations",
            "type": "boolean",
            "description": "Persist a per-station \"last seen\" stamp in the Actor's key-value store across runs, and only push a station to the dataset if it's new or its updated_at (or scrape timestamp, if details are off) changed since the last run. Best used with a scheduled/recurring run on the same Actor + same default key-value store.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause between PlugShare API requests. Keep a reasonable delay to avoid tripping the API gateway's rate limiting.",
            "default": 300
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "PlugShare's web shell and API showed no bot-management WAF or IP-quality gating during testing, so datacenter proxy is the default. Switch to residential only if you start seeing API rate-limit or block errors at higher volume.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}