GridBase
    Console

    Search the API reference

    Find an endpoint by name or path

    Utilities

    Published residential, commercial and industrial utility tariffs for a US postal code, by utility type.

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

    How utilities behaves
    /api/v2/utilities/us/{utility_type}/rates/{postal_code}

    utility_type is one of electric, natural-gas, water, wastewater, and an unknown one is refused with the four named in detail.allowed.

    Behaviour worth knowing

    A bad ZIP and an unserved ZIP are different answers. 10001 with no water tariff is 200 with items: [] and a warning saying the code exists but nothing is published for its county. 00000, which is not a postal code, is 404.

    total is the filtered count, so a caller paging knows how far it goes.

    Paging is stable. Rates load in bulk — 3,144 rows per utility type sharing one updated_at — so ties are the normal case. The ordering is on a validated column and ends on the primary key, which makes it total: a row cannot come back on two pages while another never comes back at all.

    The tariff is decoded, not passed through. The column is jsonb; a row that cannot be read is null with its id, fips and dates still true, rather than malformed JSON handed to the client mid-parse.

    The field is rate, as the column and the filters call it.

    Rates are per county

    The join is postal code → FIPS → tariff, so every postal code in a county returns the same rows. meta.notes says so, because "my neighbour's ZIP returns identical numbers" otherwise looks like a bug.

    Caching

    Static tier: these are published tariffs reloaded by an ingest job, not readings. Only 2xx responses are cached, and a cached response replays its original status.

    Not on the free plan

    Published tariffs are a paid group. A free account gets 403 plan_required with detail.group: "tariffs" here and on /geo/zip/{postal_code}/utility-rates, which reads the same rates from the postal-code side.

    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.

    Utility Rates

    GET/api/v2/utilities/us/electric/rates/{zip}

    The tariffs published for a postal code.

    Path parameters

    • ziprequirede.g. 10001

    Query parameters

    • classoptionale.g. residential
    • sizeoptionale.g. small
    • sortoptionale.g. updated_at
    • diroptionale.g. desc
    • limitoptionale.g. 100
    • offsetoptionale.g. 0

    One route for all four utility types, the type in the path.

    Path Parameters

    • utility_type: electric | natural-gas | water | wastewater
    • postal_code: 5-digit US ZIP

    Query Parameters

    • class: filters on the tariff's own class key (jsonb containment).
    • size: filters on its size key.
    • sort: fips | start_date | updated_at. Default updated_at.
    • dir: asc | desc. Default desc.
    • limit: default 100, max 1000.
    • offset: default 0.

    Response

    rate is the publisher's own structure, passed through rather than flattened: the shape differs by utility type and a common one would lose what a water tariff says. The field is rate, which is what the column and both filters call it.

    end_date is null while the tariff is the current one.

    When there is nothing

    A postal code that exists but has no tariff of that type is 200, an empty list and meta.warnings saying so. A postal code that is not in the reference table is 404 — a typo and an unserved area are different facts.

    Errors

    400invalid_paramunknown utility_type (detail.allowed names the four); postal_code not 5 digits; unknown sort or dir
    400limit_exceededlimit above 1000
    404not_foundno such postal code
    Cache
    static tier.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/utilities/us/electric/rates/10001" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "fips_utility_rate",
        "class": "reference",
        "count": 1, "limit": 100, "offset": 0, "total": 1,
        "sort": "updated_at", "dir": "desc",
        "sortable": ["fips", "start_date", "updated_at"],
        "sort_directions": ["asc", "desc"],
        "notes": ["rates are published per county (FIPS), so every postal code in a county returns the same tariff"]
      },
      "items": [
        {
          "id": "...",
          "fips": "36061",
          "utility_type": "electric",
          "start_date": "2025-01-01T00:00:00Z",
          "end_date": null,
          "updated_at": "2026-03-02T11:40:12.118Z",
          "rate": {
            "class": "residential",
            "res_rate": 0.123,
            "comm_rate": 0.102,
            "ind_rate": 0.085,
            "notes": ["Carbon emissions per kWh sourced from EPA eGRID ..."]
          }
        }
      ]
    }
    Try it in the Explorer