Get Public Charger
curl --request GET \
--url https://app.plugchoice.com/api/v3/public-charging/chargers/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.plugchoice.com/api/v3/public-charging/chargers/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.plugchoice.com/api/v3/public-charging/chargers/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/public-charging/chargers/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"public_code": "<string>",
"name": "<string>",
"online": true,
"connectors": [
{
"connector_id": 123,
"status": "<string>",
"standard": "<string>",
"format": "<string>",
"power_type": "<string>"
}
],
"pricing": {
"currency": "<string>",
"price_per_kwh": 123,
"start_fee": 123
},
"preauth_amount": 123
}
}Public Charging
Get Public Charger
GET
/
v3
/
public-charging
/
chargers
/
{code}
Get Public Charger
curl --request GET \
--url https://app.plugchoice.com/api/v3/public-charging/chargers/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.plugchoice.com/api/v3/public-charging/chargers/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/public-charging/chargers/{code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.plugchoice.com/api/v3/public-charging/chargers/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/public-charging/chargers/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"public_code": "<string>",
"name": "<string>",
"online": true,
"connectors": [
{
"connector_id": 123,
"status": "<string>",
"standard": "<string>",
"format": "<string>",
"power_type": "<string>"
}
],
"pricing": {
"currency": "<string>",
"price_per_kwh": 123,
"start_fee": 123
},
"preauth_amount": 123
}
}Returns the driver-facing details of a public charger by its public code, including connectors and pricing. This endpoint does not require authentication and is rate limited to 30 requests per minute. Returns
404 for unknown codes and for chargers that do not have public charging available.
The public code of the charger. Case-insensitive.
Response
The public charger card.
Show charger
Show charger
The public code of the charger.
The charger’s display name, falling back to the site name. May be
null.Whether the charger is currently online.
The charger’s connectors, ordered by connector ID.
Show connector
Show connector
The OCPP connector ID.
The current OCPP status of the connector. One of
Available, Charging, Faulted, Finishing, Preparing, Reserved, SuspendedEV, SuspendedEVSE, Unavailable. May be null.The connector standard. One of
CHADEMO, IEC_62196_T1, IEC_62196_T2, IEC_62196_T2_COMBO, IEC_62196_T3A, IEC_62196_T3C, TESLA_S. May be null.The connector format. One of
CABLE, SOCKET. May be null.The power type. One of
AC_1_PHASE, AC_2_PHASE, AC_2_PHASE_SPLIT, AC_3_PHASE, DC. May be null.The public charging pricing for this charger.
The pre-authorization hold amount in the currency’s minor units, placed on the driver’s card when a session starts.
⌘I