{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits used","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"be33e176-3a77-4f45-a29f-57a1239b244d","catalogType":"api","categories":["data"],"dataPlatform":"energy","dataPlatformLogoUrl":"https://api.sh/logos/energy.png","dataPlatformTranslations":{},"dataProduct":"energy","description":"Retrieve GB grid-carbon intensity by postcode or region via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, postcode, raw, and retrieve structured data including carbon-intensity unit, period start timestamp, forecast carbon intensity, actual-estimate carbon intensity, and source attribution for carbon display, and forecast view.","descriptionTranslations":{"ar":"استرجع كثافة كربون شبكة بريطانيا حسب جزء الرمز البريدي أو المنطقة أو النطاق الوطني، مع توقعات نصف ساعية وتقديرات فعلية متاحة لعرض انبعاثات الكهرباء حسب الموقع. استخدم سجلات المصدر لبناء لوحة بحث أو مقارنة مشاهدات مؤرخة، مع الحفاظ على الأوقات ووحدات القياس ونطاق التقرير وأمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة API.","ja":"郵便番号前半・地域・全国で GB の電力炭素強度を照会し、半時間予測と実績推定を取得できます。 返された出典記録を調査表示や日付付きデータの比較に使い、時刻・単位・対象範囲を保持できます。API 詳細ページには対応リクエスト例と選択した実装の料金があります。","zh":"按邮编前段、地区或全国范围查询大不列颠电网碳强度，获取半小时预测和可用实际估计，用于按位置展示电力排放指标。 可利用返回的来源记录构建研究看板或比较带日期的观察数据，保留时间、单位和报告范围；API 详情页提供受支持的请求示例及当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"89850a47-6851-4213-96c4-935cae645132","includedContentHtml":"","inputs":[{"description":"Outward postcode (e.g. SW1A, RG10) for its region.","location":"query","name":"postcode","nullable":false,"required":false,"type":"string"},{"description":"Region id 1-17 (see /energy/v1/carbon-regions).","location":"query","name":"region_id","nullable":false,"required":false,"type":"integer"},{"description":"Forecast hours ahead (1-48, half-hourly periods).","location":"query","name":"hours","nullable":false,"required":false,"type":"integer"},{"description":"Start time (YYYY-MM-DDTHH:MMZ, default now); national with no hours: the 24 hours to this time.","location":"query","name":"from","nullable":false,"required":false,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/energy.png","method":"GET","name":"Energy grid carbon intensity (Great Britain) API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eGB Carbon Intensity API\u003c/h2\u003e\n\u003cp\u003eUse postcode or region_id for a regional record, with hours for the forecast horizon and from for its start. Preserve scope and unit, and keep forecast_gco2_kwh separate from actual_gco2_kwh.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eChoose the lookup or search inputs described below. Optional: postcode, region_id, hours, from. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Energy grid carbon intensity (Great Britain) API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eCarbon display\u003c/strong\u003e: Keep intensity unit and location scope visible.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eForecast view\u003c/strong\u003e: Separate future forecasts from available actual estimates.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003escope\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNational or regional source scope\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eunit\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCarbon-intensity unit\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eperiods[].from\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePeriod start timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eperiods[].forecast_gco2_kwh\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eForecast carbon intensity\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eperiods[].actual_gco2_kwh\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eActual-estimate carbon intensity when available\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eattribution\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource attribution\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/energy/v1/carbon-intensity \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode postcode=SW1A \\\n  --data-urlencode raw=0\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/89850a47-6851-4213-96c4-935cae645132\"\u003ePublished GB Carbon Intensity API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eHow do I select a region?\u003c/h3\u003e\n\u003cp\u003eUse an outward postcode such as SW1A or region_id from 1 to 17 as documented.\u003c/p\u003e\n\u003ch3\u003eWhat are the forecast limits?\u003c/h3\u003e\n\u003cp\u003ehours accepts 1–48 in half-hourly periods. from uses YYYY-MM-DDTHH:MMZ; national requests without hours cover the 24 hours to that time.\u003c/p\u003e\n\u003ch3\u003eDoes actual=null mean zero emissions?\u003c/h3\u003e\n\u003cp\u003eNo. It means the actual estimate is unavailable. Keep it distinct from a zero forecast or measured-generation estimate.\u003c/p\u003e\n\u003ch3\u003eIs the value a total emissions amount?\u003c/h3\u003e\n\u003cp\u003eNo. The unit is gCO2/kWh, an intensity. Retain it and the source attribution rather than labeling the number total kilograms.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/energy/energy-carbon-intensity-by-gb-region-api\"\u003eEnergy carbon intensity by GB region API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/energy/energy-gb-carbon-intensity-statistics-api\"\u003eEnergy gB carbon intensity statistics API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/energy/energy-electricity-demand-and-forecast-api\"\u003eEnergy electricity demand and forecast API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/energy/energy-grid-carbon-intensity-great-britain-api?offering=89850a47-6851-4213-96c4-935cae645132","providerId":"apish","publicPath":"/v1/agent-apis/apish/energy/v1/carbon-intensity","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH recording · HTTP 200","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","postcode":"SW1A","raw":"0"}},"response_body":{"attribution":"Source: National Energy System Operator, Carbon Intensity API (CC BY 4.0)","cached":false,"count":1,"credits_used":1,"dno_region":"UKPN London","fetched_at":"2026-11-19T09:21:13.756Z","periods":[{"actual_gco2_kwh":null,"forecast_gco2_kwh":231,"from":"2026-11-19T08:30Z","generation_mix":[{"fuel":"biomass","percent":1.6},{"fuel":"coal","percent":0},{"fuel":"imports","percent":35.3},{"fuel":"gas","percent":40.4},{"fuel":"nuclear","percent":8.9},{"fuel":"other","percent":0},{"fuel":"hydro","percent":0.1},{"fuel":"solar","percent":1.2},{"fuel":"wind","percent":12.4}],"index":"very high","to":"2026-11-19T09:00Z"}],"postcode":"SW1A","region":"London","region_id":13,"scope":"regional","unit":"gCO2/kWh"}}],"seoDescription":"Retrieve GB grid-carbon intensity by postcode or region via REST or MCP powered by Apish. Pay per call, no subscription. Ideal for carbon display.","updatedAt":"2026-12-03T02:46:16.430Z","usageInstructionsHtml":""}}