GB Carbon Regions API
Get GB Carbon Regions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, and retrieve structured data including source area identifier, source area name, distribution-network area label, forecast intensity, and source generation-mix shares for regional dashboard, and area navigation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
GB Carbon Regions API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
GB Carbon Regions API
This operation returns the source regional snapshot without a business selector. Keep each item's region, DNO label, from/to period and unit together rather than treating all areas as one national figure.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | No business selector is required. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks. |
| Selected implementation | apish · Energy carbon intensity by GB region API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Regional dashboard: Compare only values with the returned source period context.
- Area navigation: Use returned region identifiers for a selected-area lookup.
Returned Data
| Field | Meaning |
|---|---|
items[].region_id |
Source area identifier |
items[].region |
Source area name |
items[].dno_region |
Distribution-network area label |
items[].forecast_gco2_kwh |
Forecast intensity |
items[].generation_mix |
Source generation-mix shares |
unit |
Carbon-intensity unit |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/energy/v1/carbon-regions \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode output=json \
--data-urlencode raw=0
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published GB Carbon Regions API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Energy carbon intensity by GB region API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/energy/v1/carbon-regions- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
attributionstringcachedbooleancountintegercredits_usedintegerfetched_atstringfromstringitemsobject[]actual_gco2_kwhnulldno_regionstringforecast_gco2_kwhintegerfromstringgeneration_mixobject[]fuelstringpercentnumber
indexstringregionstringregion_idintegertostring
tostringunitstring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits used | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 5
Review these request fields before running. Keep the published provider and request method unchanged.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/energy/v1/carbon-regions?output=json&raw=0' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "attribution": "Source: National Energy System Operator, Carbon Intensity API (CC BY 4.0)", "cached": false, "count": 18, "credits_used": 1, "fetched_at": "2026-11-19T12:20:07.461Z", "from": "2026-11-19T11:30Z", "items": [ { "actual_gco2_kwh": null, "dno_region": "Scottish Hydro Electric Power Distribution", "forecast_gco2_kwh": 0, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 0 }, { "fuel": "nuclear", "percent": 0 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 3.6 }, { "fuel": "wind", "percent": 96.4 } ], "index": "very low", "region": "North Scotland", "region_id": 1, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "SP Distribution", "forecast_gco2_kwh": 0, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 0 }, { "fuel": "nuclear", "percent": 28.6 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 3.4 }, { "fuel": "wind", "percent": 68 } ], "index": "very low", "region": "South Scotland", "region_id": 2, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "Electricity North West", "forecast_gco2_kwh": 64, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0.6 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 16 }, { "fuel": "nuclear", "percent": 35.5 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 2.6 }, { "fuel": "wind", "percent": 45.3 } ], "index": "low", "region": "North West England", "region_id": 3, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "NPG North East", "forecast_gco2_kwh": 0, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 0 }, { "fuel": "nuclear", "percent": 43.9 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 4 }, { "fuel": "wind", "percent": 52.1 } ], "index": "very low", "region": "North East England", "region_id": 4, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "NPG Yorkshire", "forecast_gco2_kwh": 123, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 25.6 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 23.3 }, { "fuel": "nuclear", "percent": 3.4 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 1 }, { "fuel": "wind", "percent": 46.6 } ], "index": "moderate", "region": "Yorkshire", "region_id": 5, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "SP Manweb", "forecast_gco2_kwh": 156, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0.1 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 39.6 }, { "fuel": "nuclear", "percent": 15.6 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 4.2 }, { "fuel": "wind", "percent": 40.4 } ], "index": "moderate", "region": "North Wales & Merseyside", "region_id": 6, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "WPD South Wales", "forecast_gco2_kwh": 369, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 93.7 }, { "fuel": "nuclear", "percent": 0 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 6 }, { "fuel": "wind", "percent": 0.3 } ], "index": "very high", "region": "South Wales", "region_id": 7, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "WPD West Midlands", "forecast_gco2_kwh": 210, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 1 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 53 }, { "fuel": "nuclear", "percent": 13.5 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 9.3 }, { "fuel": "wind", "percent": 23.3 } ], "index": "high", "region": "West Midlands", "region_id": 8, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "WPD East Midlands", "forecast_gco2_kwh": 259, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 10.9 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 62.5 }, { "fuel": "nuclear", "percent": 1.4 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 3.9 }, { "fuel": "wind", "percent": 21.2 } ], "index": "very high", "region": "East Midlands", "region_id": 9, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "UKPN East", "forecast_gco2_kwh": 251, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 3.2 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 14.4 }, { "fuel": "gas", "percent": 46.5 }, { "fuel": "nuclear", "percent": 15.4 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 8.6 }, { "fuel": "wind", "percent": 12 } ], "index": "very high", "region": "East England", "region_id": 10, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "WPD South West", "forecast_gco2_kwh": 313, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 79.4 }, { "fuel": "nuclear", "percent": 0 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 13.8 }, { "fuel": "wind", "percent": 6.7 } ], "index": "very high", "region": "South West England", "region_id": 11, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "SSE South", "forecast_gco2_kwh": 248, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 2.6 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 15.1 }, { "fuel": "gas", "percent": 59.9 }, { "fuel": "nuclear", "percent": 3.1 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 9.3 }, { "fuel": "wind", "percent": 10 } ], "index": "very high", "region": "South England", "region_id": 12, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "UKPN London", "forecast_gco2_kwh": 221, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 1.8 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 31.4 }, { "fuel": "gas", "percent": 43.5 }, { "fuel": "nuclear", "percent": 7.2 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0.1 }, { "fuel": "solar", "percent": 7.8 }, { "fuel": "wind", "percent": 8.2 } ], "index": "high", "region": "London", "region_id": 13, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "UKPN South East", "forecast_gco2_kwh": 176, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 58.1 }, { "fuel": "gas", "percent": 31.6 }, { "fuel": "nuclear", "percent": 0.2 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0.3 }, { "fuel": "solar", "percent": 6.1 }, { "fuel": "wind", "percent": 3.5 } ], "index": "high", "region": "South East England", "region_id": 14, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "England", "forecast_gco2_kwh": 196, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 4.5 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 10 }, { "fuel": "gas", "percent": 43.7 }, { "fuel": "nuclear", "percent": 12.4 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 6.6 }, { "fuel": "wind", "percent": 22.8 } ], "index": "high", "region": "England", "region_id": 15, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "Scotland", "forecast_gco2_kwh": 0, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 0 }, { "fuel": "nuclear", "percent": 26.8 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 3.4 }, { "fuel": "wind", "percent": 69.9 } ], "index": "very low", "region": "Scotland", "region_id": 16, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "Wales", "forecast_gco2_kwh": 341, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 0 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 0 }, { "fuel": "gas", "percent": 86.4 }, { "fuel": "nuclear", "percent": 0.9 }, { "fuel": "other", "percent": 0 }, { "fuel": "hydro", "percent": 0 }, { "fuel": "solar", "percent": 5.1 }, { "fuel": "wind", "percent": 7.6 } ], "index": "very high", "region": "Wales", "region_id": 17, "to": "2026-11-19T12:00Z" }, { "actual_gco2_kwh": null, "dno_region": "GB", "forecast_gco2_kwh": 196, "from": "2026-11-19T11:30Z", "generation_mix": [ { "fuel": "biomass", "percent": 3.7 }, { "fuel": "coal", "percent": 0 }, { "fuel": "imports", "percent": 10.8 }, { "fuel": "gas", "percent": 41.9 }, { "fuel": "nuclear", "percent": 12 }, { "fuel": "other", "percent": 1.8 }, { "fuel": "hydro", "percent": 0.8 }, { "fuel": "solar", "percent": 6.4 }, { "fuel": "wind", "percent": 22.5 } ], "index": "high", "region": "GB", "region_id": 18, "to": "2026-11-19T12:00Z" } ], "to": "2026-11-19T12:00Z", "unit": "gCO2/kWh" }