compare_sites
Compare and rank 2–25 US ZIP-code sites for a facility, data center, or EV load by grid carbon and electricity cost, with a low-carbon daily run window and annual totals.
Instructions
Compare and rank 2-25 candidate US sites (ZIP codes) for a facility, data center or EV/flexible load on grid carbon and electricity cost in one call. Per site: eGRID CO2e kg/kWh (location-based), Green-e residual mix (market-based), carbon-free %, $/kWh for the sector (the average of the ZIP's primary full-service utility - full-service first, then public power, IOU, co-op, the same heuristic as lookup's utility.primary - unless a delivery-only utility serves the ZIP (retail choice), else the state average; all EIA-861 2023, see rate_basis), and the cleanest daily window from the 7-day hourly profile of its balancing authority. With annual_kwh, also annual tCO2e and cost. Returns competition ranks by carbon, cost and combined, gap percentages, and best_* = null with *_tied lists when sites tie.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zips | Yes | Candidate US ZIP codes (5 digits or ZIP+4) | |
| sector | No | Retail rate sector. Default COM (commercial); use IND for industrial/data-center loads. | |
| duration | No | Length of the cleanest daily window in hours (default 4) | |
| annual_kwh | No | Optional annual consumption in kWh (e.g. 87,600,000 for a 10 MW constant load) to get annual tCO2e and cost per site |