81trust / 100

Map Snapshot

by GridHub Electricity Data in News & content

x402 APIPassing, checked 4 h ago

Current headline values (price, demand, and where published carbon intensity) for all 25 GridHub zones in one call. Use to compare or rank grids right now; rebuilt every 5 minutes. For one zone with context use /v1/brief/{zone}.

GET https://api.grid-hub.app/v1/map/snapshot

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
156 ms typical, 156 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.grid-hub.app/v1/map/snapshot"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.grid-hub.app%2Fv1%2Fmap%2Fsnapshot
const res = await pay("https://api.grid-hub.app/v1/map/snapshot");
console.log(await res.json());

Example input

{}

Example output

{
  "generated": 1790496358,
  "zones": {
    "DE-LU": {
      "attribution": "Data: ENTSO-E Transparency Platform",
      "license": "CC-BY-4.0",
      "metrics": {
        "demand": {
          "resolution": "15m",
          "ts": 1790492400,
          "unit": "MW",
          "value": 43724.47645
        },
        "price": {
          "resolution": "15m",
          "ts": 1790631900,
          "unit": "EUR/MWh",
          "value": 192.3
        }
      },
      "updated": 1790496275,
      "zone": "DE-LU"
    },
    "GB": {
      "attribution": "Supported by National Energy SO Open Data",
      "license": "NESO-Open-Licence",
      "metrics": {
        "demand": {
          "resolution": "30m",
          "ts": 1790494200,
          "unit": "MW",
          "value": 20878
        },
        "price": {
          "resolution": "30m",
          "ts": 1790467200,
          "unit": "GBP/MWh",
          "value": 141.97
        }
      },
      "updated": 1790496352,
      "zone": "GB"
    }
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402156 ms$0.002