Get DATEX II v3 AFIR energy infrastructure statuses
curl --request GET \
--url https://api.spirii.com/v2/afir/energy-infrastructure-statusesimport requests
url = "https://api.spirii.com/v2/afir/energy-infrastructure-statuses"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/v2/afir/energy-infrastructure-statuses', 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.spirii.com/v2/afir/energy-infrastructure-statuses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.spirii.com/v2/afir/energy-infrastructure-statuses"
req, _ := http.NewRequest("GET", url, nil)
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.spirii.com/v2/afir/energy-infrastructure-statuses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/v2/afir/energy-infrastructure-statuses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"messageContainer": {
"payload": [
{
"modelBaseVersionG": "3",
"profileNameG": "AFIR Energy Infrastructure",
"profileVersionG": "01-00-00",
"aegiEnergyInfrastructureStatusPublication": {
"lang": "en",
"publicationTime": "2025-06-15T12:00:00.000Z",
"publicationCreator": {
"country": "DK",
"nationalIdentifier": "DK-NAP-SPIRII"
},
"headerInformation": {
"confidentiality": {
"value": "available",
"extendedValueG": "customValue"
},
"informationStatus": {
"value": "available",
"extendedValueG": "customValue"
}
},
"energyInfrastructureSiteStatus": [
{
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyInfrastructureStationStatus": [
{
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"refillPointStatus": [
{
"aegiElectricChargingPointStatus": {
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"status": {
"value": "available",
"extendedValueG": "customValue"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyRateUpdate": [
{
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyRateReference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"energyPrice": [
{
"priceType": {
"value": "available",
"extendedValueG": "customValue"
},
"value": 0.37,
"taxIncluded": true,
"taxRate": 25,
"overallPeriod": {
"overallStartTime": "2025-01-01T00:00:00Z",
"overallEndTime": "2025-12-31T23:59:59Z",
"validPeriod": [
{
"recurringDayWeekMonthPeriod": [
{
"comDayWeekMonth": {
"applicableDay": [
{
"value": "available",
"extendedValueG": "customValue"
}
]
}
}
],
"recurringTimePeriodOfDay": [
{
"startTimeOfPeriod": "09:00",
"endTimeOfPeriod": "17:00"
}
]
}
]
},
"timeBasedApplicability": {
"fromMinute": 240,
"toMinute": 480
},
"energyBasedApplicability": {
"fromKWh": 0,
"toKWh": 50
}
}
]
}
]
}
}
]
}
]
}
],
"tableReference": [
{
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
}
]
}
}
],
"exchangeInformation": {
"exchangeContext": {
"codedExchangeProtocol": {
"value": "snapshotPush"
},
"exchangeSpecificationVersion": "3.0",
"supplierOrCisRequester": {}
},
"dynamicInformation": {
"exchangeStatus": {
"value": "online"
},
"messageGenerationTimestamp": "2025-06-15T12:00:00.000Z"
}
}
}
}Get DATEX II v3 AFIR energy infrastructure statuses
GET
/
v2
/
afir
/
energy-infrastructure-statuses
Get DATEX II v3 AFIR energy infrastructure statuses
curl --request GET \
--url https://api.spirii.com/v2/afir/energy-infrastructure-statusesimport requests
url = "https://api.spirii.com/v2/afir/energy-infrastructure-statuses"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/v2/afir/energy-infrastructure-statuses', 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.spirii.com/v2/afir/energy-infrastructure-statuses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.spirii.com/v2/afir/energy-infrastructure-statuses"
req, _ := http.NewRequest("GET", url, nil)
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.spirii.com/v2/afir/energy-infrastructure-statuses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/v2/afir/energy-infrastructure-statuses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"messageContainer": {
"payload": [
{
"modelBaseVersionG": "3",
"profileNameG": "AFIR Energy Infrastructure",
"profileVersionG": "01-00-00",
"aegiEnergyInfrastructureStatusPublication": {
"lang": "en",
"publicationTime": "2025-06-15T12:00:00.000Z",
"publicationCreator": {
"country": "DK",
"nationalIdentifier": "DK-NAP-SPIRII"
},
"headerInformation": {
"confidentiality": {
"value": "available",
"extendedValueG": "customValue"
},
"informationStatus": {
"value": "available",
"extendedValueG": "customValue"
}
},
"energyInfrastructureSiteStatus": [
{
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyInfrastructureStationStatus": [
{
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"refillPointStatus": [
{
"aegiElectricChargingPointStatus": {
"reference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"status": {
"value": "available",
"extendedValueG": "customValue"
},
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyRateUpdate": [
{
"lastUpdated": "2025-06-15T12:00:00.000Z",
"energyRateReference": {
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
},
"energyPrice": [
{
"priceType": {
"value": "available",
"extendedValueG": "customValue"
},
"value": 0.37,
"taxIncluded": true,
"taxRate": 25,
"overallPeriod": {
"overallStartTime": "2025-01-01T00:00:00Z",
"overallEndTime": "2025-12-31T23:59:59Z",
"validPeriod": [
{
"recurringDayWeekMonthPeriod": [
{
"comDayWeekMonth": {
"applicableDay": [
{
"value": "available",
"extendedValueG": "customValue"
}
]
}
}
],
"recurringTimePeriodOfDay": [
{
"startTimeOfPeriod": "09:00",
"endTimeOfPeriod": "17:00"
}
]
}
]
},
"timeBasedApplicability": {
"fromMinute": 240,
"toMinute": 480
},
"energyBasedApplicability": {
"fromKWh": 0,
"toKWh": 50
}
}
]
}
]
}
}
]
}
]
}
],
"tableReference": [
{
"targetClass": "FacilityObject",
"idG": "<domain-identifier>-1234",
"versionG": "1"
}
]
}
}
],
"exchangeInformation": {
"exchangeContext": {
"codedExchangeProtocol": {
"value": "snapshotPush"
},
"exchangeSpecificationVersion": "3.0",
"supplierOrCisRequester": {}
},
"dynamicInformation": {
"exchangeStatus": {
"value": "online"
},
"messageGenerationTimestamp": "2025-06-15T12:00:00.000Z"
}
}
}
}Query Parameters
List of IDs of customers that 'own' the locations. The 'customerIds' are unique identifiers for customers. The 'customers' can be found in the Connect Customer management page. These customer IDs correspond with the customer IDs that can be retrieved from the Customer v2 API.
Example:
[123, 456, 789]
Was this page helpful?