GridBase
    Console

    Search the API reference

    Find an endpoint by name or path

    Incentives

    Incentives are a paid group. A free account calling any route in this folder — including `/incentives/regions` — gets `403 plan_required` with `detail.group: "incentives"`.

    standard+Included with Standard and Enterprise. On Free these routes return 403 plan_required.

    GET/incentives
    GET/incentives/{id}
    GET/incentives/regions
    How incentives behaves

    Incentives are a paid group. A free account calling any route in this folder — including /incentives/regions — gets 403 plan_required with detail.group: "incentives".

    The fix is a subscription, not another credential, which is why the code is plan_required rather than forbidden. GET /account/profile reports what your plan withholds under quotas.v2_account.denied_groups.

    Incentives by Coordinates

    GET/api/v2/incentives

    Incentives at an exact location (downtown Brooklyn here: Con Ed electric, National Grid gas). Same parameters and response as Incentives by ZIP, with lat/lon in place of zip.

    Query parameters

    • latrequirede.g. 40.6928
    • lonrequirede.g. -73.9903
    • statusrequirede.g. all

    Coordinates are placed directly in the region polygons, so there is no ZIP approximation. When the point falls inside more than one electric utility territory, programs from each are returned -- confirm the customer's utility before relying on a utility program.

    Read meta.territories for that: full region objects for every electric utility at the point, matched_by "point" on this path since no ZIP list is consulted. meta.warnings says the same thing in prose for a human, and is [] when there is nothing to report (#117, #118).

    • lat: -90 to 90
    • lon: -180 to 180
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/incentives?lat=40.6928&lon=-73.9903&status=all" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Try it in the Explorer

    Incentive by ID

    GET/api/v2/incentives/{id}

    One incentive, with the pages that list it and every region it covers.

    Path parameters

    • idrequirede.g. 57655aa6-a271-41ba-a35a-9d858c0ca63c

    Response: {"meta": {...}, "item": {...}} where item has the fields of an

    Incentives by ZIP item plus

    • listings: URLs of the pages that list the program (a program can appear on several of the administrator's pages)
    • coverage: regions it applies to ({node_id, type, name, code}); empty for national programs

    The id above is a real program, so the request is runnable as-is; resolve others from Incentives by ZIP. The all-zero UUID this file used to carry is well-formed, so it passes validation and returns not_found every time.

    Errors: invalid_param (id not a UUID), not_found.

    Known deviation: coverage entries currently carry matched_by as an empty string. The field is deliberately absent from the list above -- it is not meaningful on this endpoint -- and should be omitted rather than emptied. See #110.

    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/incentives/57655aa6-a271-41ba-a35a-9d858c0ca63c" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Try it in the Explorer

    Regions

    GET/api/v2/incentives/regions

    The state, county and electric and gas utilities at a location -- "your utility is Con Edison". Takes zip or lat/lon, like Incentives by ZIP.

    Query parameters

    • ziprequirede.g. 11201

    items is in resolution order, which is the order above and not a ranking: electric utility, state, county, gas utility. It is stable across calls -- five cache-busted requests returned the same order -- but do not read it as most-local-first; branch on type. meta.territories is the electric utilities from this same list, so a caller that only needs "which utility" can read it without filtering items (#118).

    • type: state | county | electric_utility | gas_utility
    • code: FIPS (state, county), EIA utility id (electric), HIFLD SVCTERID (gas)
    • matched_by: point (the region's polygon contains the location) or zip_utility_list (EIA lists the utility for some part of the ZIP)

    meta.territories repeats just the electric_utility entries, so a client that only needs "which utility serves this address" does not have to filter items by type. meta.warnings is [] unless something needs attention, such as the location falling in more than one electric territory (#117, #118).

    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/incentives/regions?zip=11201" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "entity_geometry",
        "class": "measured",
        "count": 4,
        "warnings": [],
        "territories": [
          {"node_id": "…", "type": "electric_utility", "name": "CONSOLIDATED EDISON CO-NY INC", "code": "4226", "matched_by": "point"}
        ]
      },
      "items": [
        {"node_id": "88b496b5-2f81-5911-a76d-e1a8c71665cb", "type": "electric_utility", "name": "CONSOLIDATED EDISON CO-NY INC", "code": "4226", "matched_by": "point"},
        {"node_id": "ddb9d166-d74d-5b27-b095-7e11308124fb", "type": "state", "name": "New York", "code": "36", "matched_by": "point"},
        {"node_id": "3fccf0d5-f60e-5ce1-9da0-735baf262f24", "type": "county", "name": "Kings County, NY", "code": "36047", "matched_by": "point"},
        {"node_id": "97f88662-6d70-5e72-96af-96be67074988", "type": "gas_utility", "name": "NATIONAL GRID (LDC360007)", "code": "LDC360007", "matched_by": "point"}
      ]
    }
    Try it in the Explorer