ready-made APIby Christian Moore

City Power Johannesburg Outages & Tariffs

api.citypower.co.za

Get City Power's loadshedding status, timetable and suburb planner, planned and unplanned outages, electricity tariffs, tenders, news, FAQs, meter reading schedules, prepaid vending options and contact details for Johannesburg.

Writ CloudRESTMCPwebhookschedule10 credits / call

No website sign-in or persona needed. Free to install. Try any function below with your own values, no account: 10 free credits a day per device. Cloud calls after that use your own credits. Pricing →

The name api.citypower.co.za belongs to its owner. This API is not affiliated with, endorsed by or sponsored by api.citypower.co.za. You are responsible for how you use it.

Functions included in this API

01 · Functions15 functions

The form is the docs.

Choose a function, fill in its inputs, and run it: the answer comes back from the live site, with your values. Without an account you get 10 free credits a day per device for this; install the listing in Writ to keep calling it.

15 functionschoose one to explore
01get_tariffs_and_chargesCurrent City Power electricity tariffs grouped by type (RESIDENTIAL, BUSINESS, LARGE_POWER_USERS) with seasonal pricing blocks, plus the tariff document links.02get_loadshedding_statusCurrent loadshedding status (active stage) and urgent notifications. active_stage and notifications are null when no loadshedding is active (the site answers an empty body).03get_loadshedding_scheduleFull loadshedding timetable (blockId, timeRange, dayId, stageId per entry) and the area-to-block mapping (id, name, blockId). documents is the site's Loadshedding document-links page, null when the site has none.04get_loadshedding_plannerLoadshedding planner for a suburb: all areas (id, name, blockId), the full timetable, and matched_areas = areas whose name contains the suburb (case-insensitive partial match). Without a suburb, matched_areas is an empty array.05get_outages_statusOutages and faults published by City Power, grouped by outage type (Planned / UnPlanned Power Outage); each category has id, name, description and an outages array (id, name, region, dateIssued, substation, outage_date, affected_areas, outage_document).06get_customer_relations_infoCustomer service resources: links (the site's Customer Relations document-links page, null when the site has none) and meter_reading_schedules (title, schedules_content, link, email, files).07get_homepage_statusHomepage overview: company values (question/answer), home quick-link sections (title, text, links), company statistics (title, amount, description), plus the current loadshedding active_stage and notifications (null when none).08get_latest_newsLatest City Power news articles and press releases: news_id, subject (headline), subtitle (author), story (paragraphs), created_on, published_date.09get_meter_reading_schedulesMeter reading schedule information: id, title, schedules_content (submission instructions), link, email and files (step-by-step guide documents).10get_prepaid_vending_infoPrepaid electricity vending options: page id, page name and linksItems (vendor link_name, link_image, link, link_pdf).11get_tender_bulletinsCurrent tenders issued by City Power (the site's Available Tenders list): id, name, tenderpage, tendercode, closingDate, description (contacts and dates), datePostedOn, bidAdverts and bidDocuments attachments.12get_faqAll City Power FAQs: id, question, answer (paragraphs), faqType (Tariffs, General, SSEG, ...), documentLocation (or null), creationTime, createdBy.13get_contact_infoCity Power contact details: Queries (queryname, telephone, weekdays, sat, sun, email), Contacts (contactname, telephone, email, headoffice) and Addresses (service delivery centres: sdcname, telephone, addressItems with addressname and Google Maps addresslink).14get_sseg_infoSmall Scale Embedded Generation (SSEG) / solar feed-in information: the FAQ entries whose faqType is SSEG (id, question, answer, faqType, documentLocation).15get_company_reportsCompany reports and financial statements by category (reportpage: Annual Reports, Annual Financial Statements, Business Plans, Quarterly Reports, Service Level Agreements, ...) and financial year (finyears with finYear and reports: report_id, report_name, report_url).
When a call does not work
No key · GET

AI assistants and tools that can only open a URL can call it with no key: one URL per function, its inputs in the query string. Each call spends the free keyless allowance, 10 credits a day per IP address.

GET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_tariffs_and_chargesGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_loadshedding_statusGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_loadshedding_scheduleGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_outages_statusGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_customer_relations_infoGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_homepage_statusGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_latest_newsGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_meter_reading_schedulesGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_prepaid_vending_infoGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_tender_bulletinsGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_faqGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_contact_infoGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_sseg_infoGET https://api.usewrit.app/api/marketplace/listings/city-power-johannesburg-outages-tariffs/run?function_name=get_company_reports
02 · Checks and timingsmeasured per function

Built to be called again.

Every function was called on the live site before this API was published, and keeps being measured. The numbers are the listing’s own.

3.33 stypical callmedian of 1 function
1measured runsacross 15 functions
—daily checks passedchecks start with the first install
—buyer runs succeededno counted buyer runs yet
functionmedian · 95th percentilemedianruns
get_tariffs_and_charges Not measured —
get_loadshedding_status Not measured —
get_loadshedding_schedule Not measured —
get_loadshedding_planner Not measured —
get_outages_status Not measured —
get_customer_relations_info 3.33 s 1
get_homepage_status Not measured —
get_latest_news Not measured —
get_meter_reading_schedules Not measured —
get_prepaid_vending_info Not measured —
get_tender_bulletins Not measured —
get_faq Not measured —
get_contact_info Not measured —
get_sseg_info Not measured —
get_company_reports Not measured —
Checked daily No daily check results published yet. Checks begin with the first install; no pass rate is claimed.
Repaired when it breaks A function that fails its check is re-tested and rebuilt. Installed copies receive the update; you redeploy nothing.
Buyer runs counted No counted buyer runs published yet; uptime counts real buyers’ runs only. Writ service status →

Historical measurements from the public listing, refreshed Dec 4, 2026. Timing samples are not an uptime claim or a guarantee for your next call.

03 · Your copyyour account

Install your copy. Call it your way.

10 credits
Priced per cloud call.

The listing’s base price is 10 credits per call. Longer runs, residential traffic and CAPTCHA solving can add usage. A site or Writ failure is free; your own input or login failures can be billable. Full usage rates →

cloud
No computer to keep running.

Marketplace copies execute in Writ Cloud, in your own account. Requirements and prices are checked before you use the listing.

REST · MCP
Every way to call it, at once.

Use your API key, connect an assistant, set a schedule with email or webhook delivery, or export answers as a dataset.

read-only
It only reads.

The published functions read data from the source website. No website sign-in or persona is needed for this listing.

private copy
Your account, your usage.

Your installed copy belongs to your account. Its underlying recipe stays sealed with its creator; no creator credentials are included.

04 · Or build your ownwebsite → API

Missing a function? Describe it.

Give Writ a website and say what you want. It builds and tests the API for your task.

On your computeryour machine

Build it in Writ Desktop and run it from your own IP. Execution on your machine costs 0 credits.

Get Writ Desktop →
In Writ Cloudcloud

Keep your API online without leaving your computer running. Cloud calls start at 2 credits, or 20 with a browser.

Build an API →
05 · More ready-madeAll APIs →
06 · Questions
Does City Power have an API?
This page is an independent API and MCP server for api.citypower.co.za: Writ built it on the site’s public pages and tests it, and it has 15 functions you can call today. It is not an official City Power product. For an official API, check City Power’s own developer pages.
How do I use the City Power API from Claude, ChatGPT or Cursor?
Install it in Writ, then add Writ’s MCP server (https://api.usewrit.app/mcp) to Claude, ChatGPT, Cursor or any MCP client: your assistant can run this API’s functions and read the results. From your own code, call the same functions over REST with a Writ API key.
How much does a call to the City Power API cost?
10 credits per call, charged only when the call succeeds. New accounts start with 1,000 free credits, then 500 a month on the Free plan, no card.