Duke Energy API
duke-energy.com
- Actions
- 3
- Category
- Utilities
- Login
- Some actions
- Output
- JSON
Call the Duke Energy API
Submit a task, then poll the job until it settles. This example runs duk_download_bill.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "duk_download_bill",
"credential_id": "<your-credential-id>",
"params": {
"account_number": "<account_number>"
}
}'3 actions on duke-energy.com
Read
Download Bill
duk_download_billreadlogin required10 credits / callDownload a Duke Energy bill as a PDF. Give the account number (from List Accounts) and, optionally, the document number or bill date (from List Bills) — by default it downloads the most recent downloadable bill for that account.
- account_number
- string · required
- document_number
- string
- bill_date
- string
List Accounts
duk_list_accountsreadlogin required10 credits / callList all of the contract accounts on your Duke Energy login. One login can own several accounts, so this returns them all — each with its account number, service address, status, and nickname — so you can pick the exact account for List Bills or Download Bill.
List Bills
duk_list_billsreadlogin required10 credits / callList the bills and statements for a Duke Energy contract account. Each bill includes its date, amount, document number, invoice number, service period, and whether a PDF is available — along with the document number you pass to Download Bill. Requires an account number from List Accounts.
- account_number
- string · required
Duke Energy API questions
- Is there an API for Duke Energy?
- Duke Energy does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for duke-energy.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape Duke Energy data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when duke-energy.com changes its markup, Anakin updates the action.
- Do I need a Duke Energy account?
- Some Duke Energy actions read data that is only visible when signed in, so those need a credential you connect once. Actions marked "read" without a login requirement run anonymously.
- What does the Duke Energy API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Utilities APIs
ABCWUA Account
Albuquerque Bernalillo County Water Utility Authority — accounts, bills, PDF download
AES Indiana My Account
AES Indiana (IPL) My Account — login, list accounts, list bills, download bill PDF
American Water MyWater
American Water residential customer portal — accounts, billing history, and bill PDFs
Appalachian Electric Cooperative SmartHub
Appalachian Electric Cooperative SmartHub — accounts, bills, PDF download
Appalachian Power
Appalachian Power (AEP) — accounts, bills, PDF download
Appalachian Power (OLBP)
Appalachian Power online bill pay — list accounts, list bills, download bill PDFs