Overall statistics of the charging infrastructure per country. Contains current and historical data
This API follows the https://jsonapi.org specification.
API-Key: <your_api_key>
(contact sales@chargeprice.net to get access)Content-Type: application/json
ReadCountryStatistics
The following query parameters are available:
Name | Type | Presence | Example | Description |
---|---|---|---|---|
filter[country] | CSV | optional | AT,DE |
A list of countries (ISO 3166) for which the statistics should be fetched. |
filter[year] | Integer | optional | 2020 |
Year for which the statistics should be fetched. |
filter[month] | Integer | optional | 9 |
Month for which the statistics should be fetched. January = 1. |
page[size] | Positive Integer | optional | 2 | Max no. of elements in the current response. Default: 100, Max value: 100 |
page[number] | Positive Integer | optional | 10 | Current page number. Default: 1 |
Use the meta.overall_count
to determine if you have already fetched all pages.
If no pagination parameters are provided you will get the first page.
A response contains 0 to many entries.
The following table lists the available attributes
:
Name | Type | Example | Description |
---|---|---|---|
country | String | “AT” | ISO 3166 country code. XX=Statistics of countries combined. |
year | Integer | 2020 | Year of the statistics |
month | Integer | 9 | Month of the statistics |
emp_count | Integer | 500 | Number of E-Mobility Service Providers (EMPs) that operate in the country. |
cpo_count | Integer | {"id": "123", "type": "company"} |
Number of Charge Point Operators (CPOs) that operate stations in the country. |
charge_points | Array | - | Statistics per type of charge points. |
charge_points.type | String | dc |
Type of charge points. Possible values: total , ac , dc (< 150 kW), hpc (150+ kW) |
charge_points.count | Integer | 34 | Number of charge points (connectors) of this type in the country. |
top_cpos_by_charge_points | Array | - | Top 15 Charge Point Operators in this country (CPO), by number of charge points. |
top_cpos_by_charge_points.type | String | dc |
Type of charge points. Possible values: total , ac , dc (< 150 kW), hpc (150+ kW) |
top_cpos_by_charge_points.cpo_counts | Array | - | Type of charge points. Possible values: total , ac , dc (< 150 kW), hpc (150+ kW) |
top_cpos_by_charge_points.cpo_counts.cpo_id | Array | - | ID of the CPO. CPO Details (Name etc.) can be fetched via the Companies API |
top_cpos_by_charge_points.cpo_counts.count | Array | - | Number of charge points (connectors) of this type for this CPO in the country. |
The example below also describes the response in this way.
GET http://example-base-url.com/v1/country_statistics?filter[country]=FR
Content-Type: application/json
Api-Key: my-secret-key
Body:
{
"data": [
{
"id": "93b0b907-68b7-417c-8113-afeaabb44fc1",
"type": "country_statistics",
"attributes": {
"country": "FR",
"emp_count": 432,
"cpo_count": 750,
"charge_points": [
{
"type": "total",
"count": 12
},
{
"type": "ac",
"count": 6
},
{
"type": "dc",
"count": 4
},
{
"type": "hpc",
"count": 3
}
],
"top_cpos_by_charge_points": [
{
"type": "total",
"cpo_counts": [
{
"cpo_id": "1",
"count": 6
},
{
"cpo_id": "2",
"count": 2
}
]
}
]
}
}
],
"meta": {
"overall_count": 1
}
}
Client provided invalid request parameters.
{
"errors": [
{
"status": "400",
"title": "..."
}
]
}
{
"errors": [
{
"status": "403",
"title": "api_key missing"
}
]
}
An unexpected error happened.
{
"errors": [
{
"status": "500",
"title": "some error"
}
]
}