Stations
List charging stations available to the fleet
Latitude and longitude must be provided together. Radius can be supplied only with both coordinates.
GET
/
public
/
fleets
/
v1
/
stations
List charging stations available to the fleet
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/stations \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/stations"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.ionage.in/public/fleets/v1/stations', 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://api.ionage.in/public/fleets/v1/stations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.ionage.in/public/fleets/v1/stations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionage.in/public/fleets/v1/stations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/stations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"station_id": "st_d1ed2dd3f9ef4b4e",
"name": "HPC Indiranagar",
"address": "100 Feet Road, Indiranagar",
"city": "Bengaluru",
"postal_code": "560038",
"coordinates": {
"latitude": 12.9784,
"longitude": 77.6408
},
"timezone": "Asia/Kolkata",
"operator": {
"operator_id": "op_9df5f4f7b0f64f9e",
"name": "HPC Charging"
},
"chargers": [
{
"charger_id": "ch_2cf24dba5fb0a30e",
"name": "EVSE 01",
"connectors": [
{
"connector_id": "con_3a7bd3e2360a3d80",
"connector_type": "CCS",
"connector_type_display_name": "CCS",
"connector_type_icon_url": "https://ionage-public-resources.s3.ap-south-1.amazonaws.com/connector-type-icons/stroke-black/CCS_MOBILE.svg",
"connector_format": "CABLE",
"power_type": "DC",
"max_power_kw": 60,
"status": "AVAILABLE",
"status_display_text": "Available",
"tariff": {
"currency": "INR",
"energy_price_paise_per_kwh": 1850,
"time_price_paise_per_minute": 0,
"flat_fee_paise": 0,
"tax_included": true
}
}
]
}
]
},
{
"station_id": "st_d1ed2dd3f9ef4b4e",
"name": "HPC Indiranagar",
"address": "100 Feet Road, Indiranagar",
"city": "Bengaluru",
"postal_code": "560038",
"coordinates": {
"latitude": 12.9784,
"longitude": 77.6408
},
"timezone": "Asia/Kolkata",
"operator": {
"operator_id": "op_9df5f4f7b0f64f9e",
"name": "HPC Charging"
},
"chargers": [
{
"charger_id": "ch_2cf24dba5fb0a30e",
"name": "EVSE 01",
"connectors": [
{
"connector_id": "con_3a7bd3e2360a3d80",
"connector_type": "CCS",
"connector_type_display_name": "CCS",
"connector_type_icon_url": "https://ionage-public-resources.s3.ap-south-1.amazonaws.com/connector-type-icons/stroke-black/CCS_MOBILE.svg",
"connector_format": "CABLE",
"power_type": "DC",
"max_power_kw": 60,
"status": "AVAILABLE",
"status_display_text": "Available",
"tariff": {
"currency": "INR",
"energy_price_paise_per_kwh": 1850,
"time_price_paise_per_minute": 0,
"flat_fee_paise": 0,
"tax_included": true
}
}
]
}
]
}
],
"metadata": {
"total_count": 125,
"next": "/public/fleets/v1/restrictions?limit=50&offset=50",
"prev": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "connector_id is required"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}Authorizations
Query Parameters
Was this page helpful?
List charging stations available to the fleet
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/stations \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/stations"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.ionage.in/public/fleets/v1/stations', 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://api.ionage.in/public/fleets/v1/stations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.ionage.in/public/fleets/v1/stations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionage.in/public/fleets/v1/stations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/stations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"station_id": "st_d1ed2dd3f9ef4b4e",
"name": "HPC Indiranagar",
"address": "100 Feet Road, Indiranagar",
"city": "Bengaluru",
"postal_code": "560038",
"coordinates": {
"latitude": 12.9784,
"longitude": 77.6408
},
"timezone": "Asia/Kolkata",
"operator": {
"operator_id": "op_9df5f4f7b0f64f9e",
"name": "HPC Charging"
},
"chargers": [
{
"charger_id": "ch_2cf24dba5fb0a30e",
"name": "EVSE 01",
"connectors": [
{
"connector_id": "con_3a7bd3e2360a3d80",
"connector_type": "CCS",
"connector_type_display_name": "CCS",
"connector_type_icon_url": "https://ionage-public-resources.s3.ap-south-1.amazonaws.com/connector-type-icons/stroke-black/CCS_MOBILE.svg",
"connector_format": "CABLE",
"power_type": "DC",
"max_power_kw": 60,
"status": "AVAILABLE",
"status_display_text": "Available",
"tariff": {
"currency": "INR",
"energy_price_paise_per_kwh": 1850,
"time_price_paise_per_minute": 0,
"flat_fee_paise": 0,
"tax_included": true
}
}
]
}
]
},
{
"station_id": "st_d1ed2dd3f9ef4b4e",
"name": "HPC Indiranagar",
"address": "100 Feet Road, Indiranagar",
"city": "Bengaluru",
"postal_code": "560038",
"coordinates": {
"latitude": 12.9784,
"longitude": 77.6408
},
"timezone": "Asia/Kolkata",
"operator": {
"operator_id": "op_9df5f4f7b0f64f9e",
"name": "HPC Charging"
},
"chargers": [
{
"charger_id": "ch_2cf24dba5fb0a30e",
"name": "EVSE 01",
"connectors": [
{
"connector_id": "con_3a7bd3e2360a3d80",
"connector_type": "CCS",
"connector_type_display_name": "CCS",
"connector_type_icon_url": "https://ionage-public-resources.s3.ap-south-1.amazonaws.com/connector-type-icons/stroke-black/CCS_MOBILE.svg",
"connector_format": "CABLE",
"power_type": "DC",
"max_power_kw": 60,
"status": "AVAILABLE",
"status_display_text": "Available",
"tariff": {
"currency": "INR",
"energy_price_paise_per_kwh": 1850,
"time_price_paise_per_minute": 0,
"flat_fee_paise": 0,
"tax_included": true
}
}
]
}
]
}
],
"metadata": {
"total_count": 125,
"next": "/public/fleets/v1/restrictions?limit=50&offset=50",
"prev": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "connector_id is required"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}
.png?fit=max&auto=format&n=Q9Mj_7gZzDeQpRZZ&q=85&s=81619203ea2696cfd7251205cfbc5afc)