jp-power-outage API: Developer Friendly API of Power Outage Information in Japan

ryo-a.github.io/jp-power-outage

停電世帯数情報API(非公式)

電力会社の停電情報(地域と世帯数)を10分おきに取得し、JSONで配信するAPIです。現在は東京電力(東京電力パワーグリッド)管内の情報のみ取得できます。
個人が運用する非公式のAPIであり、電力会社公式のものではないことにご留意ください。

なお、このページ(ryo-a.github.io/jp-power-outage)はアクセス解析にGoogle Analyticsを利用しています。API部分ではユーザのトラッキングを行っていません。

エンドポイント

最新情報(10分おき更新)

https://ryo-a.github.io/jp-power-outage/api/v1/latest/都道府県名.json

(例)群馬県のデータ

https://ryo-a.github.io/jp-power-outage/api/v1/latest/gunma.json

東電管内: ibaraki, tochigi, gunma, saitama, chiba, tokyo, kanagawa, yamanashi, shizuoka


過去の情報(およそ2ヶ月保存予定)

https://ryo-a.github.io/jp-power-outage/api/v1/old/YYYY/MM/DD/都道府県名/都道府県名-HHmm.json

(例)2019年9月20日 0:10 JST の千葉県のデータ

https://ryo-a.github.io/jp-power-outage/api/v1/old/2019/09/20/chiba/chiba-0010.json

取得できる要素

(例)2019年9月20日 3:10 JST の群馬県のデータ

{
    "群馬県": {
        "number_str": "約200軒",
        "number": 200,
        "timestamp": "2019-09-20T03:00:02.268679",
        "source": "http://teideninfo.tepco.co.jp/html/00000000000.html",
        "author": "出典:東京電力パワーグリッド Webサイト / 非公式API: https://ryo-a.github.io/jp-power-outage/",
        "cities": {
            "下仁田町": {
                "number_str": "約200軒",
                "number": 200,
                "areas": {
                    "大字西野牧": {
                        "number_str": "約200軒",
                        "number": 200
                    }
                }
            }
        }
    }
}
            

number_str: 電力会社のページに記載されている文字列(「約」や「軒」などを含む)。String。
number: number_strの内容を数値型にして抜き出したもの。Integer。
less_than: 「100軒未満」の場合にtrueとなる。Boolean。

運用者

@ryo-a