{
  "openapi": "3.0.1",
  "info": {
    "title": "US EV Charging Station & Fleet Network Intelligence",
    "description": "Official US AFDC EV stations with Level 2/DC Fast port counts, network, facility, access and status filters. JSON/CSV for Clay/n8n. NLR API key required.",
    "version": "1.0",
    "x-build-id": "A1uw5gvM691bOzLI4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/afkdigital~us-doe-ev-charging-station-fleet-network-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-afkdigital-us-doe-ev-charging-station-fleet-network-intelligence",
        "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/afkdigital~us-doe-ev-charging-station-fleet-network-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-afkdigital-us-doe-ev-charging-station-fleet-network-intelligence",
        "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/afkdigital~us-doe-ev-charging-station-fleet-network-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-afkdigital-us-doe-ev-charging-station-fleet-network-intelligence",
        "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": {
          "state": {
            "title": "US state",
            "type": "string",
            "description": "US postal code; leave empty for nationwide queries of up to 200 stations. One state is required for more than 200.",
            "default": "CO"
          },
          "chargingLevel": {
            "title": "Charging level",
            "enum": [
              "ALL",
              "LEVEL_1",
              "LEVEL_2",
              "DC_FAST"
            ],
            "type": "string",
            "description": "Filter by the presence of at least one port at this level. A station may have multiple levels.",
            "default": "ALL"
          },
          "facilityType": {
            "title": "Facility type",
            "enum": [
              "ALL",
              "AIRPORT",
              "ARENA",
              "AUTO_REPAIR",
              "BANK",
              "BREWERY_DISTILLERY_WINERY",
              "B_AND_B",
              "CAMPGROUND",
              "CARWASH",
              "CAR_DEALER",
              "COLLEGE_CAMPUS",
              "CONVENIENCE_STORE",
              "CONVENTION_CENTER",
              "COOP",
              "FACTORY",
              "FED_GOV",
              "FIRE_STATION",
              "FLEET_GARAGE",
              "FUEL_RESELLER",
              "GAS_STATION",
              "GROCERY",
              "HARDWARE_STORE",
              "HOSPITAL",
              "HOTEL",
              "INN",
              "LIBRARY",
              "MIL_BASE",
              "MOTOR_POOL",
              "MULTI_UNIT_DWELLING",
              "MUNI_GOV",
              "MUSEUM",
              "NATL_PARK",
              "OFFICE_BLDG",
              "OTHER",
              "OTHER_ENTERTAINMENT",
              "PARK",
              "PARKING_GARAGE",
              "PARKING_LOT",
              "PAY_GARAGE",
              "PAY_LOT",
              "PHARMACY",
              "PLACE_OF_WORSHIP",
              "PRISON",
              "PRIVATE",
              "PUBLIC",
              "REC_SPORTS_FACILITY",
              "REFINERY",
              "RENTAL_CAR_RETURN",
              "RESEARCH_FACILITY",
              "RESTAURANT",
              "REST_STOP",
              "RETAIL",
              "RV_PARK",
              "SCHOOL",
              "SHOPPING_CENTER",
              "SHOPPING_MALL",
              "STADIUM",
              "STANDALONE_STATION",
              "STATE_GOV",
              "STORAGE",
              "STREET_PARKING",
              "TNC",
              "TRAVEL_CENTER",
              "TRUCK_STOP",
              "UTILITY",
              "WORKPLACE"
            ],
            "type": "string",
            "description": "Exact AFDC facility category; not proof of fleet/commercial usage.",
            "default": "ALL"
          },
          "network": {
            "title": "EV network",
            "type": "string",
            "description": "One exact AFDC network code, e.g. Tesla, ChargePoint Network, Non-Networked. Empty means all networks.",
            "default": ""
          },
          "accessType": {
            "title": "Access",
            "enum": [
              "public",
              "private",
              "all"
            ],
            "type": "string",
            "description": "Public/private are AFDC access codes. Read access_detail_code and restricted_access for limitations.",
            "default": "public"
          },
          "stationStatus": {
            "title": "Station status",
            "enum": [
              "E",
              "P",
              "T",
              "all"
            ],
            "type": "string",
            "description": "E=Available, P=Planned, T=Temporarily Unavailable. Not live port occupancy.",
            "default": "E"
          },
          "maxResults": {
            "title": "Maximum unique stations",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum rows and billable station events; never charged per port. For >200 choose one state.",
            "default": 20
          },
          "maxCostUsd": {
            "title": "Station event budget (USD)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Additional limit at $0.005 per station. Default $1; maximum $50. Platform spending limit also applies.",
            "default": 1
          },
          "apiKey": {
            "title": "NLR API key (secret)",
            "type": "string",
            "description": "Required unless NLR_API_KEY is set securely. Obtain your free key at https://developer.nlr.gov/signup/. For limited exploration explicitly enter DEMO_KEY (shared quota; unsuitable for recurring production)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}