The official API for ev.energy, version 2.
- List carbon intensity data
ev.energy v2 API (2.0)
A carbon feed representing a source of carbon intensity data for a specific region or grid.
Unique identifier for the carbon feed.
{ "id": "cabf01HN2NJ9NMRZBXT1H6FT9N7735", "url": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735", "name": "UK National Grid" }
A carbon intensity data point representing CO2 emissions per unit of electricity generated.
When this interval began.
The number of seconds that this interval lasts for.
Carbon intensity in gCO2/kWh.
{ "started_at": "2024-01-15T10:00:00Z", "interval_seconds": 1800, "co2_intensity_grams_per_kilowatt_hour": 245, "created_at": "2024-01-15T09:45:00Z" }
Request
List all carbon feeds visible to the authenticated client. Carbon feeds represent sources of carbon intensity data for specific regions or grids.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds
- Live API for both production and sandbox requests.https://api.ev.energy/v2/carbon_feeds
- Staging server for internal testing only.https://api-staging.ev.energy/v2/carbon_feeds
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns a list of carbon feeds, sorted by name.
Provides links to the previous and next pages of data, if they exist.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
Unique identifier for the carbon feed.
[ { "id": "cabf01HN2NJ9NMRZBXT1H6FT9N7735", "url": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735", "name": "UK National Grid" } ]
Request
Retrieve a specific carbon feed, representing a source of carbon intensity data for a region or grid.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds/{carbon_feed_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/carbon_feeds/{carbon_feed_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/carbon_feeds/{carbon_feed_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns information about a single carbon feed.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
Unique identifier for the carbon feed.
{ "id": "cabf01HN2NJ9NMRZBXT1H6FT9N7735", "url": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735", "name": "UK National Grid" }
Request
Returns a paginated list of carbon intensity data points for a specific carbon feed. Carbon intensity represents the amount of CO2 emissions per unit of electricity generated, measured in grams of CO2 per kilowatt-hour (gCO2/kWh).
Use started_at__gte and started_at__lte to filter by time range.
Return results from the page after this ID.
Return results from the page before this ID.
Specify the number of results to return per page.
Filter for entries on or after this datetime (ISO 8601).
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds/{carbon_feed_id}/carbon_intensities
- Live API for both production and sandbox requests.https://api.ev.energy/v2/carbon_feeds/{carbon_feed_id}/carbon_intensities
- Staging server for internal testing only.https://api-staging.ev.energy/v2/carbon_feeds/{carbon_feed_id}/carbon_intensities
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735/carbon_intensities?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&expand=carbon_feed&started_at__gte=2024-01-15T10%3A00%3A00Z&started_at__lte=2024-01-15T12%3A00%3A00Z' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns a list of carbon intensity data points, sorted by started_at descending.
Provides links to the previous and next pages of data, if they exist.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
{ "url": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735/carbon_intensities", "carbon_feed": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735", "carbon_intensities": [ { … } ] }