Utilities
Oklahoma Natural Gas logo

Oklahoma Natural Gas API

oklahomanaturalgas.com

Oklahoma Natural Gas — utility accounts, bills and bill PDFs

Actions
3
Category
Utilities
Login
Some actions
Output
JSON

Call the Oklahoma Natural Gas API

Submit a task, then poll the job until it settles. This example runs ong_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": "ong_download_bill",
    "credential_id": "<your-credential-id>",
    "params": {
      "account_number": "<account_number>"
    }
  }'

3 actions on oklahomanaturalgas.com

Read

  • Download Bill

    ong_download_billreadlogin required10 credits / call

    Download one of your Oklahoma Natural Gas bills as a PDF. Give the account number from List Accounts, and optionally the bill id from List Bills; leave the bill id empty for the most recent bill.

    account_number
    string · required
    bill_id
    string
  • List Accounts

    ong_list_accountsreadlogin required10 credits / call

    List every Oklahoma Natural Gas billing account on your login, with the current amount due and due date.

  • List Bills

    ong_list_billsreadlogin required10 credits / call

    List the statement history for one Oklahoma Natural Gas account. Give the account number from List Accounts.

    account_number
    string · required

Oklahoma Natural Gas API questions

Is there an API for Oklahoma Natural Gas?
Oklahoma Natural Gas does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for oklahomanaturalgas.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 Oklahoma Natural Gas 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 oklahomanaturalgas.com changes its markup, Anakin updates the action.
Do I need a Oklahoma Natural Gas account?
Some Oklahoma Natural Gas 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 Oklahoma Natural Gas 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

All Utilities sites