Signals
A single current number for a place, resolved through the grid zone its postal code belongs to.
| GET | /signals/renewablestandard+ | Renewable Signal |
How signals behaves
This route currently returns 404 for every postal code
public.zone is empty in production — 0 rows — while 16,010 postal
codes carry a zone name (USPJM0, USNY). So the second hop of the lookup
cannot resolve. See
https://github.com/ekimeel/grid-api/issues/184.
The 404 says which hop failed, so the breakage is visible rather than reading as "there is no renewable data for your area":
postal code 10001 names zone USNY, which is not in the zone table
postal code 90210 is not mapped to a grid zone, so no renewable signal is published for it
no postal code 00000 in the reference table
Until the zone table is populated,
/api/v2/geo/nearby/power-grid/renewables answers the same question by
distance to the nearest reporting node, and works today.
Not on the free plan
This route is part of the power_grid group, because the reading it returns
is the one /geo/nearby/power-grid/renewables returns — restricting one and
not the other would make the restriction cosmetic. A free account gets
403 plan_required with detail.group: "power_grid" before the zone lookup
above is even attempted.
Renewable Signal
/api/v2/signals/renewableThe current renewable share of generation for a postal code.
Query parameters
postal_coderequirede.g. 10001
Resolved postal code -> zone -> the zone's rwgnp sensor (Renewable
Generation Percentage) -> its latest reading. Values are percentages, not
fractions: NYISO read 26.596, not 0.266.
A different question from /api/v2/geo/nearby/power-grid/renewables, which
resolves by distance to the nearest reporting node. The zone answer is the
one that is correct for a place; the nearest-node answer is the one
available when there is no zone — which, today, is always. See the folder
docs and issue #184.
Query Parameters
- postal_code: required, 5-digit US ZIP. Anything else is refused rather than also accepted, so there is one spelling to learn.
Response
Worth knowing
Every lookup's error is checked. The node and network names come from two further queries, and a failure in either is a 500 — empty strings served with a 200 read as real names rather than as a lookup that did not happen.
The value keeps its precision and names its unit. The column is
float64; narrowing it to float32 turns 26.596001 into
26.596001358032227.
percent_of_generation is the name /geo/nearby/power-grid/renewables uses
for the same sensor type.
Staleness is stated. age_seconds always, and a warning past an hour,
so a sensor that stopped reporting last week does not look current.
sensor_num_series_latest, the trigger-maintained per-sensor latest
row, instead of scanning the hypertable.
snake_case throughout: sensor_id, ts.
is worth more here than the freshness it costs.
Errors
| 400 | missing_param | postal_code absent (including when sent as postalCode) |
| 400 | invalid_param | postal_code not 5 digits |
| 404 | not_found | no such postal code; the code maps to no zone; the zone is not in the zone table; the zone has no rwgnp sensor; that sensor has never reported |
- Cache
- live tier. This is four sequential queries per request, so the cache
curl "https://utility-api-86672132515.us-east1.run.app/api/v2/signals/renewable?postal_code=10001" \
-H "Authorization: $GRIDBASE_API_KEY"{
"meta": {
"source": "sensor_num_series_latest",
"class": "measured",
"as_of": "2026-11-11T17:30:00Z"
},
"item": {
"network": "NYISO",
"node": "Zone J",
"zone": "USNY",
"sensor_id": "...",
"percent_of_generation": 26.596001,
"at": "2026-11-11T17:30:00Z",
"age_seconds": 420
}
}