Client examples and integrations for the MISO LMP API: real-time, hourly, and day-ahead wholesale electricity prices (LMP) for the MISO grid, as JSON. Built for bots, home automation, and scripts, not trading terminals.
This repo is examples only. The API itself is a hosted service, so there's nothing to install or run here except the snippets.
- Full docs: https://miso-lmp-api.vercel.app/docs.html
- OpenAPI spec: https://miso-lmp-api.vercel.app/openapi.json
- Get a free key:
POST /api/v1/signup(see below)
Get a free-tier key (150 requests/day, no payment info required):
curl -X POST https://miso-lmp-api.vercel.app/api/v1/signup \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com"}'Save the api_key from the response. It's shown once and can't be recovered later.
Get the current price at the grid node nearest a lat/lon:
curl "https://miso-lmp-api.vercel.app/api/v1/lmp/nearest?lat=41.85&lon=-87.65" \
-H "x-api-key: YOUR_KEY"| Directory | What it is |
|---|---|
home-assistant/ |
REST sensor + automation for running appliances when grid prices are cheap |
python/ |
Minimal Python client example |
javascript/ |
Minimal Node/JS client example |
| Tier | Price | Requests/day | History |
|---|---|---|---|
| Free | $0 | 150 | 2 days |
| Hobbyist | $5/mo | 2,000 | 7 days |
| Developer | $9/mo | 10,000 | 30 days |
| Professional | $49/mo | 500,000 | 2 years |
Upgrade anytime via POST /api/stripe/checkout; manage or cancel via POST /api/stripe/portal. Both are documented in the OpenAPI spec.
The example code in this repo is MIT licensed, so copy and adapt it freely. The API service itself is a separately hosted product, not covered by this license.