Public APIs
Srp Energy favicon

Srp Energy

Environment

Hourly usage energy report for Srp customers.

Srp Energy's website screenshot

About Srp Energy

This is unofficial documentation for the SRP Energy Usage API, covering how to retrieve hourly electricity usage and cost data from Salt River Project (SRP), an Arizona utility. The documented process involves three steps: authenticating with account credentials, fetching an xsrf-token, and calling the usage endpoint with a billing account number and date range to retrieve hourly consumption, generation, and cost data.

The API response includes hourly usage broken down by on-peak, off-peak, shoulder, and super-off-peak kilowatt-hours and costs. The documentation notes that time-of-use customers do not receive total kWh or total cost directly from the API and that these values must be calculated using the SRP TOU price plan formula, while EZ-3 customers see usage and cost split across the four peak categories instead of totals.

This resource is intended for developers building tools or integrations that need programmatic access to SRP customer energy usage data, such as home energy monitoring or automation projects. It documents an unofficial reverse-engineered API rather than an official SRP-published service.

Key features

  • Authenticates with SRP customer credentials via login endpoint
  • Fetches an xsrf-token required for authorized API calls
  • Retrieves hourly energy usage data for a billing account by date range
  • Returns hourly consumption, generation, received, and demand data
  • Calculates totalKwh and totalCost for time-of-use price plan customers

Frequently asked questions

Is this an official SRP API?

No, this is unofficial documentation of the SRP Energy Usage API.

What credentials are required to use the API?

A valid SRP customer username and password are required to log in and obtain an xsrf-token.

What data does the usage endpoint return?

It returns hourly consumption, generation, received, usage, and demand lists including kWh and cost values.

How do I query usage for a specific billing account?

Call the hourlydetail endpoint with the billing account code, start date, end date, and xsrf-token header.

Do time-of-use customers see total cost values?

No, time-of-use customers show 0.0 for totalKwh and totalCost, with values split across onPeak, offPeak, shoulder, and superOffPeak instead.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product