City of Lebanon API
citisenportal.com
City of Lebanon — utility bills
- Actions
- 3
- Category
- Utilities
- Login
- Some actions
- Output
- JSON
Call the City of Lebanon API
Submit a task, then poll the job until it settles. This example runs leb_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": "leb_download_bill",
"credential_id": "<your-credential-id>",
"params": {
"account_number": "<account_number>"
}
}'3 actions on citisenportal.com
Read
Download Bill
leb_download_billreadlogin required10 credits / callDownload one of your CitiSen utility 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
leb_list_accountsreadlogin required10 credits / callList every utility account on your CitiSen login, with its service address, amount due and due date. Use these account numbers in List Bills and Download Bill.
List Bills
leb_list_billsreadlogin required10 credits / callList the statements for one of your CitiSen utility accounts, newest first, with bill date, due date and amount. Give the account number from List Accounts.
- account_number
- string · required
- page_size
- integer
City of Lebanon API questions
- Is there an API for City of Lebanon?
- City of Lebanon does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for citisenportal.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 City of Lebanon 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 citisenportal.com changes its markup, Anakin updates the action.
- Do I need a City of Lebanon account?
- Some City of Lebanon 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 City of Lebanon 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