API仕様書

調布データマップ 公開データAPI

認証不要・読み取り専用の非公式API。住民基本台帳の人口・世帯数と2020年町丁境界を提供します。原表空欄・未掲載・未収録を区別し、0で埋めません。各GETはHEADにも対応し、OPTIONSでCORSを確認できます。大量取得には版付き静的JSON・CSVを利用してください。同じデータを/mcpのMCPツールからも取得できます。

API 1.0.0 · OpenAPI 3.1.1

OpenAPIをダウンロード(JSON) · 利用方法・注意事項

共通仕様

ベースURL:https://chofu-data.tokyo/api/v1

認証不要・読み取り専用です。GETに加えてHEAD・OPTIONSに対応します。入力の必須条件や組み合わせは各取得先の説明を確認してください。表の「必須」はOpenAPIの単独パラメーター指定を示し、条件付きの必須指定は説明に記載しています。

応答の data が取得結果、meta が出典・単位・収録範囲・注意事項です。JSONの null は0ではありません。データの版は data_revision で固定できます。

成功応答のETagは If-None-Match で再検証でき、一致時は304で本文を返しません。JSONのエラー形式は Error を参照してください。

公開データセットの一覧

GET /api/v1/datasets

data_revisionを指定すると過去の版に固定できます。ページ分割された結果はnext_urlをたどってください。

リクエスト例

curl 'https://chofu-data.tokyo/api/v1/datasets'

入力条件

パラメーター指定型・条件
data_revisionクエリ条件は説明参照

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

string

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

  • パターン: "^[0-9a-f]{64}$"

応答

200 — 定義・出典・版・必要な注意事項を含む取得結果

応答ヘッダー

  • ETag:
    string
  • X-Data-Revision:
    string
    • パターン: "^[0-9a-f]{64}$"

Content-Type:application/json

DatasetsResponse

定義:DatasetsResponse

応答例(JSON)

ビルド時の公開データを使った取得例です。現在の応答と一致するとは限りません。具体的なデータの版は data_revision を確認してください。

{
  "api_version": "1.0.0",
  "contract_version": "1.0.0",
  "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
  "data": [
    {
      "dataset_id": "population",
      "title": "調布市の町丁別・市全体の人口と世帯数",
      "api_url": "https://chofu-data.tokyo/api/v1/datasets/population?data_revision=633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1"
    },
    {
      "dataset_id": "town_boundaries",
      "title": "調布市の町丁・字等の区域と境界",
      "api_url": "https://chofu-data.tokyo/api/v1/datasets/town_boundaries?data_revision=633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1"
    }
  ],
  "meta": {
    "applied_filters": {},
    "units": {
      "population": "人",
      "male": "人",
      "female": "人",
      "households": "世帯",
      "density": "人/km²"
    },
    "coverage": {
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "expected_frequency": "monthly",
      "freshness_status": "not_verified",
      "latest_reference_date": "2026-10-01",
      "reference_dates": [
        "2022-05-01",
        "2022-06-01",
        "2022-07-01",
        "2022-08-01",
        "2022-09-01",
        "2022-10-01",
        "2022-11-01",
        "2022-12-01",
        "2023-01-01",
        "2023-02-01",
        "2023-03-01",
        "2023-04-01",
        "2023-05-01",
        "2023-06-01",
        "2023-07-01",
        "2023-08-01",
        "2023-09-01",
        "2023-10-01",
        "2023-11-01",
        "2023-12-01",
        "2024-01-01",
        "2024-02-01",
        "2024-03-01",
        "2024-04-01",
        "2024-05-01",
        "2024-06-01",
        "2024-07-01",
        "2024-08-01",
        "2024-09-01",
        "2024-10-01",
        "2024-11-01",
        "2024-12-01",
        "2025-01-01",
        "2025-02-01",
        "2025-03-01",
        "2025-04-01",
        "2025-05-01",
        "2025-06-01",
        "2025-07-01",
        "2025-08-01",
        "2025-09-01",
        "2025-10-01",
        "2025-11-01",
        "2025-12-01",
        "2026-01-01",
        "2026-02-01",
        "2026-03-01",
        "2026-04-01",
        "2026-10-01"
      ],
      "source_checked_at": null,
      "temporal_granularity": "point_in_time",
      "uncollected_reason": "サイト側の未収録。市の未公表を意味しない。",
      "uncollected_reference_dates": [
        "2026-05-01",
        "2026-06-01",
        "2026-07-01",
        "2026-08-01",
        "2026-09-01"
      ]
    },
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "warnings": [
      "個人運営の非公式な加工データです。",
      "最新収録日は市が公表している最新日と一致することを確認したものではありません。",
      "異なる基準日の数値、市全体と町丁別の数値を混ぜて合計しないでください。",
      "欠損値は0ではありません。"
    ],
    "uncollected_reference_dates_in_range": [],
    "sources": [
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r4chouchoubetsu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r4chouchoubetsu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "55214f8519025645439109247fee96d30136a2ae5d54cf25d799ad7db70800f1",
        "source_id": "r4chouchoubetsu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和4年度町丁別人口(エクセル:65KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r5chouchoubetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r5chouchoubetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5b38dd2acad03a3a193453a71c7513a31cb4b2028ce1e70fb520189cb4267480",
        "source_id": "r5chouchoubetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和5年度町丁別人口(エクセル:66KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r6chouchobetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r6chouchobetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "e713096cc35e21cf2015b4432436bde038e3ff3a99046cbfdbe0a865f4241443",
        "source_id": "r6chouchobetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和6年度町丁別人口(エクセル:67KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu0401.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu0401.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "2c93e3756b559dee52e9ee3a87cc67e7b8705af2bda789050c07f79da23bef0d",
        "source_id": "chouchoubetu0401.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和7年度町丁別人口(エクセル:68KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu1001.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu1001.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5524ad31345035b64bffe38b14e72a3c655173b28d83d9b5051de0d1ca141b23",
        "source_id": "chouchoubetu1001.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和8年度町丁別人口(エクセル:15KB)"
      }
    ],
    "links": {
      "release": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/release.json",
      "dataset": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/dataset.json",
      "coverage": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/coverage.json",
      "provenance": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/provenance.json",
      "quality": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/quality.json",
      "sources": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/sources.json",
      "bulk": {
        "town_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.json",
        "town_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.csv",
        "city_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.json",
        "city_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.csv",
        "town_derived_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_derived.json"
      }
    },
    "pagination": null
  }
}
304 — If-None-Matchに一致。本文なし。

応答本文はありません。

400 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

404 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

405 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

414 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

422 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

503 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

定義・単位・収録日・出典・制約

GET /api/v1/datasets/{dataset_id}

data_revisionを指定すると過去の版に固定できます。ページ分割された結果はnext_urlをたどってください。

リクエスト例

curl 'https://chofu-data.tokyo/api/v1/datasets/population'

入力条件

パラメーター指定型・条件
dataset_idパス必須
string
  • 選択肢: "population", "town_boundaries"
data_revisionクエリ条件は説明参照

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

string

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

  • パターン: "^[0-9a-f]{64}$"

応答

200 — 定義・出典・版・必要な注意事項を含む取得結果

応答ヘッダー

  • ETag:
    string
  • X-Data-Revision:
    string
    • パターン: "^[0-9a-f]{64}$"

Content-Type:application/json

DatasetResponse

定義:DatasetResponse

応答例(JSON)

ビルド時の公開データを使った取得例です。現在の応答と一致するとは限りません。具体的なデータの版は data_revision を確認してください。

{
  "api_version": "1.0.0",
  "contract_version": "1.0.0",
  "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
  "data": {
    "constraints": [
      "人口表と2020年境界は時点が異なる。境界補正は未実施。",
      "欠月を補間しない。市全体と町丁を混ぜて合計しない。",
      "密度は公園・河川を含む境界全体の面積を使用。"
    ],
    "contract_version": "1.0.0",
    "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
    "dataset_id": "population",
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "foreign_keys": {
      "area_id": "areas.area_id",
      "provenance_id": "provenance.provenance_id"
    },
    "license_source_ids": [
      "r4chouchoubetsu.xlsx",
      "r5chouchoubetu.xlsx",
      "r6chouchobetu.xlsx",
      "chouchoubetu0401.xlsx",
      "chouchoubetu1001.xlsx"
    ],
    "metrics": [
      {
        "aggregation_rules": {
          "across_geography": "sum_non_overlapping_towns_at_same_date; exclude_city; disclose_missing",
          "across_time": "forbidden"
        },
        "allowed_geography_levels": [
          "town_area",
          "municipality"
        ],
        "definition": "人口計",
        "formula": null,
        "metric_id": "population",
        "null_rule": "preserve source_blank / not_in_source; never substitute zero",
        "origin": "source",
        "unit": "人",
        "value_type": "integer"
      },
      {
        "aggregation_rules": {
          "across_geography": "sum_non_overlapping_towns_at_same_date; exclude_city; disclose_missing",
          "across_time": "forbidden"
        },
        "allowed_geography_levels": [
          "town_area",
          "municipality"
        ],
        "definition": "男性人口",
        "formula": null,
        "metric_id": "male",
        "null_rule": "preserve source_blank / not_in_source; never substitute zero",
        "origin": "source",
        "unit": "人",
        "value_type": "integer"
      },
      {
        "aggregation_rules": {
          "across_geography": "sum_non_overlapping_towns_at_same_date; exclude_city; disclose_missing",
          "across_time": "forbidden"
        },
        "allowed_geography_levels": [
          "town_area",
          "municipality"
        ],
        "definition": "女性人口",
        "formula": null,
        "metric_id": "female",
        "null_rule": "preserve source_blank / not_in_source; never substitute zero",
        "origin": "source",
        "unit": "人",
        "value_type": "integer"
      },
      {
        "aggregation_rules": {
          "across_geography": "sum_non_overlapping_towns_at_same_date; exclude_city; disclose_missing",
          "across_time": "forbidden"
        },
        "allowed_geography_levels": [
          "town_area",
          "municipality"
        ],
        "definition": "世帯数",
        "formula": null,
        "metric_id": "households",
        "null_rule": "preserve source_blank / not_in_source; never substitute zero",
        "origin": "source",
        "unit": "世帯",
        "value_type": "integer"
      },
      {
        "aggregation_rules": {
          "across_geography": "recompute_from_matching_population_and_area",
          "across_time": "forbidden"
        },
        "allowed_geography_levels": [
          "town_area"
        ],
        "definition": "人口密度",
        "formula": "population / area_km2; EPSG:6677; area rounded to 8 decimals (km2)",
        "metric_id": "density",
        "null_rule": "preserve source_blank / not_in_source; never substitute zero",
        "origin": "derived",
        "unit": "人/km²",
        "value_type": "number"
      }
    ],
    "municipality_code_system": "全国地方公共団体コードの検査数字を除く5桁",
    "official": false,
    "population_basis": "住民基本台帳",
    "primary_keys": {
      "city_observations": [
        "reference_date",
        "area_id"
      ],
      "town_derived": [
        "reference_date",
        "area_id",
        "boundary_version"
      ],
      "town_observations": [
        "reference_date",
        "area_id"
      ]
    },
    "title": "調布市の町丁別・市全体の人口と世帯数"
  },
  "meta": {
    "applied_filters": {},
    "units": {
      "population": "人",
      "male": "人",
      "female": "人",
      "households": "世帯",
      "density": "人/km²"
    },
    "coverage": {
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "expected_frequency": "monthly",
      "freshness_status": "not_verified",
      "latest_reference_date": "2026-10-01",
      "reference_dates": [
        "2022-05-01",
        "2022-06-01",
        "2022-07-01",
        "2022-08-01",
        "2022-09-01",
        "2022-10-01",
        "2022-11-01",
        "2022-12-01",
        "2023-01-01",
        "2023-02-01",
        "2023-03-01",
        "2023-04-01",
        "2023-05-01",
        "2023-06-01",
        "2023-07-01",
        "2023-08-01",
        "2023-09-01",
        "2023-10-01",
        "2023-11-01",
        "2023-12-01",
        "2024-01-01",
        "2024-02-01",
        "2024-03-01",
        "2024-04-01",
        "2024-05-01",
        "2024-06-01",
        "2024-07-01",
        "2024-08-01",
        "2024-09-01",
        "2024-10-01",
        "2024-11-01",
        "2024-12-01",
        "2025-01-01",
        "2025-02-01",
        "2025-03-01",
        "2025-04-01",
        "2025-05-01",
        "2025-06-01",
        "2025-07-01",
        "2025-08-01",
        "2025-09-01",
        "2025-10-01",
        "2025-11-01",
        "2025-12-01",
        "2026-01-01",
        "2026-02-01",
        "2026-03-01",
        "2026-04-01",
        "2026-10-01"
      ],
      "source_checked_at": null,
      "temporal_granularity": "point_in_time",
      "uncollected_reason": "サイト側の未収録。市の未公表を意味しない。",
      "uncollected_reference_dates": [
        "2026-05-01",
        "2026-06-01",
        "2026-07-01",
        "2026-08-01",
        "2026-09-01"
      ]
    },
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "warnings": [
      "個人運営の非公式な加工データです。",
      "最新収録日は市が公表している最新日と一致することを確認したものではありません。",
      "異なる基準日の数値、市全体と町丁別の数値を混ぜて合計しないでください。",
      "欠損値は0ではありません。"
    ],
    "uncollected_reference_dates_in_range": [],
    "sources": [
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r4chouchoubetsu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r4chouchoubetsu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "55214f8519025645439109247fee96d30136a2ae5d54cf25d799ad7db70800f1",
        "source_id": "r4chouchoubetsu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和4年度町丁別人口(エクセル:65KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r5chouchoubetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r5chouchoubetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5b38dd2acad03a3a193453a71c7513a31cb4b2028ce1e70fb520189cb4267480",
        "source_id": "r5chouchoubetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和5年度町丁別人口(エクセル:66KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r6chouchobetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r6chouchobetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "e713096cc35e21cf2015b4432436bde038e3ff3a99046cbfdbe0a865f4241443",
        "source_id": "r6chouchobetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和6年度町丁別人口(エクセル:67KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu0401.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu0401.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "2c93e3756b559dee52e9ee3a87cc67e7b8705af2bda789050c07f79da23bef0d",
        "source_id": "chouchoubetu0401.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和7年度町丁別人口(エクセル:68KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu1001.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu1001.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5524ad31345035b64bffe38b14e72a3c655173b28d83d9b5051de0d1ca141b23",
        "source_id": "chouchoubetu1001.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和8年度町丁別人口(エクセル:15KB)"
      }
    ],
    "links": {
      "release": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/release.json",
      "dataset": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/dataset.json",
      "coverage": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/coverage.json",
      "provenance": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/provenance.json",
      "quality": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/quality.json",
      "sources": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/sources.json",
      "bulk": {
        "town_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.json",
        "town_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.csv",
        "city_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.json",
        "city_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.csv",
        "town_derived_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_derived.json"
      }
    },
    "pagination": null
  }
}
304 — If-None-Matchに一致。本文なし。

応答本文はありません。

400 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

404 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

405 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

414 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

422 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

503 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

区域名・IDの検索

GET /api/v1/areas

data_revisionを指定すると過去の版に固定できます。ページ分割された結果はnext_urlをたどってください。

リクエスト例

curl 'https://chofu-data.tokyo/api/v1/areas?q=%E9%A3%9B%E7%94%B0%E7%B5%A6&limit=1'

入力条件

パラメーター指定型・条件
data_revisionクエリ条件は説明参照

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

string

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

  • パターン: "^[0-9a-f]{64}$"
qクエリ条件は説明参照

区域名・別名・IDの部分一致。候補を返し、自動で1区域に確定しません。

string

区域名・別名・IDの部分一致。候補を返し、自動で1区域に確定しません。

  • 最小文字数: 1
  • 最大文字数: 100
geography_levelクエリ条件は説明参照

市全体と町丁別を明示します。人口取得では必須。

string

市全体と町丁別を明示します。人口取得では必須。

  • 選択肢: "municipality", "town_area"
limitクエリ条件は説明参照

1ページの最大行数。欠損行も件数に含みます。

integer

1ページの最大行数。欠損行も件数に含みます。

  • 省略時: 100
  • 最小値: 1
  • 最大値: 500
cursorクエリ条件は説明参照

次ページの不透明なトークン。ほかのクエリパラメーターと併用できません。

string

次ページの不透明なトークン。ほかのクエリパラメーターと併用できません。

  • 最大文字数: 2048

応答

200 — 定義・出典・版・必要な注意事項を含む取得結果

応答ヘッダー

  • ETag:
    string
  • X-Data-Revision:
    string
    • パターン: "^[0-9a-f]{64}$"

Content-Type:application/json

AreasResponse

定義:AreasResponse

応答例(JSON)

ビルド時の公開データを使った取得例です。現在の応答と一致するとは限りません。具体的なデータの版は data_revision を確認してください。

{
  "api_version": "1.0.0",
  "contract_version": "1.0.0",
  "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
  "data": [
    {
      "aliases": [
        "飛田給一丁目"
      ],
      "area_id": "13208001001",
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "geography_level": "town_area",
      "municipality_code": "13208",
      "name": "飛田給一丁目",
      "parent_area_id": "chofu-city",
      "source_code": "13208001001",
      "source_code_system": "census-2020-KEY_CODE",
      "valid_from": null,
      "valid_to": null,
      "validity_status": "not_verified"
    }
  ],
  "meta": {
    "applied_filters": {
      "q": "飛田給",
      "geography_level": null
    },
    "units": {
      "area_km2": "km2"
    },
    "coverage": {
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "expected_frequency": "monthly",
      "freshness_status": "not_verified",
      "latest_reference_date": "2026-10-01",
      "reference_dates": [
        "2022-05-01",
        "2022-06-01",
        "2022-07-01",
        "2022-08-01",
        "2022-09-01",
        "2022-10-01",
        "2022-11-01",
        "2022-12-01",
        "2023-01-01",
        "2023-02-01",
        "2023-03-01",
        "2023-04-01",
        "2023-05-01",
        "2023-06-01",
        "2023-07-01",
        "2023-08-01",
        "2023-09-01",
        "2023-10-01",
        "2023-11-01",
        "2023-12-01",
        "2024-01-01",
        "2024-02-01",
        "2024-03-01",
        "2024-04-01",
        "2024-05-01",
        "2024-06-01",
        "2024-07-01",
        "2024-08-01",
        "2024-09-01",
        "2024-10-01",
        "2024-11-01",
        "2024-12-01",
        "2025-01-01",
        "2025-02-01",
        "2025-03-01",
        "2025-04-01",
        "2025-05-01",
        "2025-06-01",
        "2025-07-01",
        "2025-08-01",
        "2025-09-01",
        "2025-10-01",
        "2025-11-01",
        "2025-12-01",
        "2026-01-01",
        "2026-02-01",
        "2026-03-01",
        "2026-04-01",
        "2026-10-01"
      ],
      "source_checked_at": null,
      "temporal_granularity": "point_in_time",
      "uncollected_reason": "サイト側の未収録。市の未公表を意味しない。",
      "uncollected_reference_dates": [
        "2026-05-01",
        "2026-06-01",
        "2026-07-01",
        "2026-08-01",
        "2026-09-01"
      ]
    },
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "warnings": [
      "個人運営の非公式な加工データです。",
      "最新収録日は市が公表している最新日と一致することを確認したものではありません。",
      "2020年境界を使用。現在の住居表示境界との完全一致や境界変化を補正した比較は保証しません。"
    ],
    "uncollected_reference_dates_in_range": [],
    "sources": [
      {
        "attribution": "総務省統計局・e-Stat『令和2年国勢調査 町丁・字等別境界』、国立情報学研究所『Geoshapeリポジトリ』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r2ka13208.topojson",
        "license_id": "e-Stat-terms-of-use",
        "license_url": "https://www.e-stat.go.jp/terms-of-use",
        "modifications": [
          "同一区域の図形結合",
          "GeoJSON変換",
          "面積・形状内代表点計算"
        ],
        "original_attribution_metadata": {
          "id": "x0402:13208",
          "metadata": {
            "cc:attributionText": "「令和2年国勢調査町丁・字等別境界データ」をもとにNIIが加工",
            "cc:attributionURL": "https://www.e-stat.go.jp/",
            "cc:license": "https://www.e-stat.go.jp/terms-of-use",
            "cc:useGuidelines": "https://www.e-stat.go.jp/gis/statmap-search?page=1&type=2&aggregateUnitForBoundary=A&toukeiCode=00200521&toukeiYear=2020&serveyId=A002005212020&coordsys=1&format=shape&datum=2000",
            "dc:issued": "2022-06-24",
            "dc:source": "r2ka13208.shp",
            "dc:subject": [
              "町丁・字境界",
              "国勢調査",
              "政府統計"
            ],
            "dc:title": "東京都調布市:フル解像度TopoJSON",
            "type": [
              "町丁・字等境界"
            ]
          },
          "type": "Topology"
        },
        "original_url": "https://github.com/okiyuki99/streamlit-chofu-visualization/blob/fcec4a092a20e854f5d92b04491b8d501f185702/data/r2ka13208.topojson",
        "publisher": "総務省統計局 / 国立情報学研究所",
        "retrieved_at": "2026-10-19",
        "sha256": "35f3afe72b5e9249af5d1eb5c7fd0035f02dda3d6049ddbf74351bc6edb34778",
        "source_id": "census-2020-boundaries",
        "source_url": "https://geoshape.ex.nii.ac.jp/ka/resource/13208.html"
      }
    ],
    "links": {
      "release": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/release.json",
      "dataset": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/boundaries/dataset.json",
      "coverage": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/coverage.json",
      "provenance": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/provenance.json",
      "quality": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/quality.json",
      "sources": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/sources.json",
      "bulk": {
        "geojson": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/boundaries/census-2020.geojson"
      }
    },
    "pagination": {
      "total_rows": 3,
      "returned_rows": 1,
      "limit": 1,
      "next_cursor": "eyJ2IjoxLCJlbmRwb2ludCI6InNlYXJjaEFyZWFzIiwicXVlcnkiOiJkYXRhX3JldmlzaW9uPTYzM2U1ZWRmMjI0NWNiNmY2NGZlYTU2NmI1ZmUzMzEyOWJmMmM0Njg4ZGU5MThhYmU1ZDQwZjgxNzBmZmU4ZjEmbGltaXQ9MSZxPSVFOSVBMyU5QiVFNyU5NCVCMCVFNyVCNSVBNiIsIm9mZnNldCI6MX0=",
      "next_url": "https://chofu-data.tokyo/api/v1/areas?cursor=eyJ2IjoxLCJlbmRwb2ludCI6InNlYXJjaEFyZWFzIiwicXVlcnkiOiJkYXRhX3JldmlzaW9uPTYzM2U1ZWRmMjI0NWNiNmY2NGZlYTU2NmI1ZmUzMzEyOWJmMmM0Njg4ZGU5MThhYmU1ZDQwZjgxNzBmZmU4ZjEmbGltaXQ9MSZxPSVFOSVBMyU5QiVFNyU5NCVCMCVFNyVCNSVBNiIsIm9mZnNldCI6MX0%3D"
    }
  }
}
304 — If-None-Matchに一致。本文なし。

応答本文はありません。

400 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

404 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

405 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

414 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

422 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

503 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

人口・世帯数・人口密度の取得

GET /api/v1/population/observations

初回はgeography_levelと、dateまたはfrom/toが必須。cursor指定時はcursorだけを渡します。基準日・区域IDの昇順。集計・補間・暗黙の日付置換は行いません。期間内の未収録月はmetaに含めます。

リクエスト例

curl 'https://chofu-data.tokyo/api/v1/population/observations?geography_level=municipality&date=latest&metrics=population%2Chouseholds'

入力条件

パラメーター指定型・条件
data_revisionクエリ条件は説明参照

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

string

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

  • パターン: "^[0-9a-f]{64}$"
geography_levelクエリ条件は説明参照

市全体と町丁別を明示します。人口取得では必須。

string

市全体と町丁別を明示します。人口取得では必須。

  • 選択肢: "municipality", "town_area"
area_idsクエリ条件は説明参照

区域IDをカンマ区切りで最大10件。省略時は指定した地理粒度の全区域。

array<string>

区域IDをカンマ区切りで最大10件。省略時は指定した地理粒度の全区域。

  • 最少件数: 1
  • 最大件数: 10
  • 重複不可
  • 各要素 — パターン: "^(chofu-city|13208[0-9]+)$"

カンマ区切りで指定します。

dateクエリ条件は説明参照

基準日またはlatest(最新収録日)。from/toとの併用不可。

string

基準日またはlatest(最新収録日)。from/toとの併用不可。

  • パターン: "^(?:\\d{4}-\\d{2}-\\d{2}|latest)$"
fromクエリ条件は説明参照

期間の開始日(含む)。toも必須。未収録月は補間しません。

string

期間の開始日(含む)。toも必須。未収録月は補間しません。

  • パターン: "^\\d{4}-\\d{2}-\\d{2}$"
toクエリ条件は説明参照

期間の終了日(含む)。fromも必須。

string

期間の終了日(含む)。fromも必須。

  • パターン: "^\\d{4}-\\d{2}-\\d{2}$"
metricsクエリ条件は説明参照

カンマ区切り。densityは町丁別のみ。時点間・区域間の集計は行いません。

array<string>

カンマ区切り。densityは町丁別のみ。時点間・区域間の集計は行いません。

  • 省略時: ["population"]
  • 最少件数: 1
  • 重複不可
  • 各要素 — 選択肢: "population", "male", "female", "households", "density"

カンマ区切りで指定します。

limitクエリ条件は説明参照

1ページの最大行数。欠損行も件数に含みます。

integer

1ページの最大行数。欠損行も件数に含みます。

  • 省略時: 100
  • 最小値: 1
  • 最大値: 500
cursorクエリ条件は説明参照

次ページの不透明なトークン。ほかのクエリパラメーターと併用できません。

string

次ページの不透明なトークン。ほかのクエリパラメーターと併用できません。

  • 最大文字数: 2048

応答

200 — 定義・出典・版・必要な注意事項を含む取得結果

応答ヘッダー

  • ETag:
    string
  • X-Data-Revision:
    string
    • パターン: "^[0-9a-f]{64}$"

Content-Type:application/json

ObservationsResponse

定義:ObservationsResponse

応答例(JSON)

ビルド時の公開データを使った取得例です。現在の応答と一致するとは限りません。具体的なデータの版は data_revision を確認してください。

{
  "api_version": "1.0.0",
  "contract_version": "1.0.0",
  "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
  "data": [
    {
      "dataset_id": "population",
      "municipality_code": "13208",
      "area_id": "chofu-city",
      "area_name": "調布市",
      "geography_level": "municipality",
      "reference_date": "2026-10-01",
      "population": 242443,
      "households": 128031,
      "observation_status": "reported",
      "missing_reason": null,
      "provenance_id": "population:2026-10-01",
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1"
    }
  ],
  "meta": {
    "applied_filters": {
      "geography_level": "municipality",
      "area_ids": [
        "chofu-city"
      ],
      "date": "latest",
      "from": null,
      "to": null,
      "reference_dates": [
        "2026-10-01"
      ],
      "metrics": [
        "population",
        "households"
      ],
      "order": [
        "reference_date",
        "area_id"
      ]
    },
    "units": {
      "population": "人",
      "households": "世帯"
    },
    "coverage": {
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "expected_frequency": "monthly",
      "freshness_status": "not_verified",
      "latest_reference_date": "2026-10-01",
      "reference_dates": [
        "2022-05-01",
        "2022-06-01",
        "2022-07-01",
        "2022-08-01",
        "2022-09-01",
        "2022-10-01",
        "2022-11-01",
        "2022-12-01",
        "2023-01-01",
        "2023-02-01",
        "2023-03-01",
        "2023-04-01",
        "2023-05-01",
        "2023-06-01",
        "2023-07-01",
        "2023-08-01",
        "2023-09-01",
        "2023-10-01",
        "2023-11-01",
        "2023-12-01",
        "2024-01-01",
        "2024-02-01",
        "2024-03-01",
        "2024-04-01",
        "2024-05-01",
        "2024-06-01",
        "2024-07-01",
        "2024-08-01",
        "2024-09-01",
        "2024-10-01",
        "2024-11-01",
        "2024-12-01",
        "2025-01-01",
        "2025-02-01",
        "2025-03-01",
        "2025-04-01",
        "2025-05-01",
        "2025-06-01",
        "2025-07-01",
        "2025-08-01",
        "2025-09-01",
        "2025-10-01",
        "2025-11-01",
        "2025-12-01",
        "2026-01-01",
        "2026-02-01",
        "2026-03-01",
        "2026-04-01",
        "2026-10-01"
      ],
      "source_checked_at": null,
      "temporal_granularity": "point_in_time",
      "uncollected_reason": "サイト側の未収録。市の未公表を意味しない。",
      "uncollected_reference_dates": [
        "2026-05-01",
        "2026-06-01",
        "2026-07-01",
        "2026-08-01",
        "2026-09-01"
      ]
    },
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "warnings": [
      "個人運営の非公式な加工データです。",
      "最新収録日は市が公表している最新日と一致することを確認したものではありません。",
      "異なる基準日の数値、市全体と町丁別の数値を混ぜて合計しないでください。",
      "欠損値は0ではありません。"
    ],
    "uncollected_reference_dates_in_range": [],
    "sources": [
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r4chouchoubetsu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r4chouchoubetsu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "55214f8519025645439109247fee96d30136a2ae5d54cf25d799ad7db70800f1",
        "source_id": "r4chouchoubetsu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和4年度町丁別人口(エクセル:65KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r5chouchoubetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r5chouchoubetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5b38dd2acad03a3a193453a71c7513a31cb4b2028ce1e70fb520189cb4267480",
        "source_id": "r5chouchoubetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和5年度町丁別人口(エクセル:66KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r6chouchobetu.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/r6chouchobetu.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "e713096cc35e21cf2015b4432436bde038e3ff3a99046cbfdbe0a865f4241443",
        "source_id": "r6chouchobetu.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和6年度町丁別人口(エクセル:67KB"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu0401.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu0401.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "2c93e3756b559dee52e9ee3a87cc67e7b8705af2bda789050c07f79da23bef0d",
        "source_id": "chouchoubetu0401.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和7年度町丁別人口(エクセル:68KB)"
      },
      {
        "attribution": "調布市『町丁別人口』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "chouchoubetu1001.xlsx",
        "license_id": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "modifications": [
          "区域名の正規化・境界ID対応",
          "シート名による基準日補正"
        ],
        "original_url": "https://www.city.chofu.lg.jp/documents/4693/chouchoubetu1001.xlsx",
        "published_at": null,
        "publisher": "調布市",
        "retrieved_at": "2026-10-19",
        "sha256": "5524ad31345035b64bffe38b14e72a3c655173b28d83d9b5051de0d1ca141b23",
        "source_id": "chouchoubetu1001.xlsx",
        "source_url": "https://www.city.chofu.lg.jp/030040/p017111.html",
        "title": "令和8年度町丁別人口(エクセル:15KB)"
      }
    ],
    "links": {
      "release": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/release.json",
      "dataset": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/dataset.json",
      "coverage": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/coverage.json",
      "provenance": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/provenance.json",
      "quality": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/quality.json",
      "sources": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/sources.json",
      "bulk": {
        "town_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.json",
        "town_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_observations.csv",
        "city_observations_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.json",
        "city_observations_csv": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/city_observations.csv",
        "town_derived_json": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/town_derived.json"
      }
    },
    "pagination": {
      "total_rows": 1,
      "returned_rows": 1,
      "limit": 100,
      "next_cursor": null,
      "next_url": null
    }
  }
}
304 — If-None-Matchに一致。本文なし。

応答本文はありません。

400 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

404 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

405 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

414 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

422 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

503 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

町丁境界の属性とGeoJSON取得先

GET /api/v1/boundaries/{area_id}

data_revisionを指定すると過去の版に固定できます。ページ分割された結果はnext_urlをたどってください。

リクエスト例

curl 'https://chofu-data.tokyo/api/v1/boundaries/13208001001'

入力条件

パラメーター指定型・条件
area_idパス必須
string
  • パターン: "^13208[0-9]+$"
data_revisionクエリ条件は説明参照

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

string

データの版。省略時はカタログの現行版。次ページでも同じ版を使います。

  • パターン: "^[0-9a-f]{64}$"
boundary_versionクエリ条件は説明参照

境界の版。人口密度は2020年境界を分母に使います。

string

境界の版。人口密度は2020年境界を分母に使います。

  • 選択肢: "census-2020"

応答

200 — 定義・出典・版・必要な注意事項を含む取得結果

応答ヘッダー

  • ETag:
    string
  • X-Data-Revision:
    string
    • パターン: "^[0-9a-f]{64}$"

Content-Type:application/json

BoundaryResponse

定義:BoundaryResponse

応答例(JSON)

ビルド時の公開データを使った取得例です。現在の応答と一致するとは限りません。具体的なデータの版は data_revision を確認してください。

{
  "api_version": "1.0.0",
  "contract_version": "1.0.0",
  "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
  "data": {
    "area_id": "13208001001",
    "area_km2": 0.25878195,
    "bbox": [
      139.519935,
      35.658626,
      139.528263,
      35.664796
    ],
    "boundary_version": "census-2020",
    "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
    "provenance_id": "boundary-transform",
    "representative_point": [
      139.52407227651514,
      35.6617185
    ],
    "source_code": "13208001001",
    "area_name": "飛田給一丁目"
  },
  "meta": {
    "applied_filters": {
      "area_id": "13208001001",
      "boundary_version": "census-2020"
    },
    "units": {
      "area_km2": "km2"
    },
    "coverage": {
      "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
      "expected_frequency": "monthly",
      "freshness_status": "not_verified",
      "latest_reference_date": "2026-10-01",
      "reference_dates": [
        "2022-05-01",
        "2022-06-01",
        "2022-07-01",
        "2022-08-01",
        "2022-09-01",
        "2022-10-01",
        "2022-11-01",
        "2022-12-01",
        "2023-01-01",
        "2023-02-01",
        "2023-03-01",
        "2023-04-01",
        "2023-05-01",
        "2023-06-01",
        "2023-07-01",
        "2023-08-01",
        "2023-09-01",
        "2023-10-01",
        "2023-11-01",
        "2023-12-01",
        "2024-01-01",
        "2024-02-01",
        "2024-03-01",
        "2024-04-01",
        "2024-05-01",
        "2024-06-01",
        "2024-07-01",
        "2024-08-01",
        "2024-09-01",
        "2024-10-01",
        "2024-11-01",
        "2024-12-01",
        "2025-01-01",
        "2025-02-01",
        "2025-03-01",
        "2025-04-01",
        "2025-05-01",
        "2025-06-01",
        "2025-07-01",
        "2025-08-01",
        "2025-09-01",
        "2025-10-01",
        "2025-11-01",
        "2025-12-01",
        "2026-01-01",
        "2026-02-01",
        "2026-03-01",
        "2026-04-01",
        "2026-10-01"
      ],
      "source_checked_at": null,
      "temporal_granularity": "point_in_time",
      "uncollected_reason": "サイト側の未収録。市の未公表を意味しない。",
      "uncollected_reference_dates": [
        "2026-05-01",
        "2026-06-01",
        "2026-07-01",
        "2026-08-01",
        "2026-09-01"
      ]
    },
    "definition_status": {
      "household_definition": "not_verified",
      "nationality_scope": "not_verified",
      "reference_time": "not_verified"
    },
    "warnings": [
      "個人運営の非公式な加工データです。",
      "最新収録日は市が公表している最新日と一致することを確認したものではありません。",
      "2020年境界を使用。現在の住居表示境界との完全一致や境界変化を補正した比較は保証しません。"
    ],
    "uncollected_reference_dates_in_range": [],
    "sources": [
      {
        "attribution": "総務省統計局・e-Stat『令和2年国勢調査 町丁・字等別境界』、国立情報学研究所『Geoshapeリポジトリ』を加工して作成",
        "data_revision": "633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1",
        "filename": "r2ka13208.topojson",
        "license_id": "e-Stat-terms-of-use",
        "license_url": "https://www.e-stat.go.jp/terms-of-use",
        "modifications": [
          "同一区域の図形結合",
          "GeoJSON変換",
          "面積・形状内代表点計算"
        ],
        "original_attribution_metadata": {
          "id": "x0402:13208",
          "metadata": {
            "cc:attributionText": "「令和2年国勢調査町丁・字等別境界データ」をもとにNIIが加工",
            "cc:attributionURL": "https://www.e-stat.go.jp/",
            "cc:license": "https://www.e-stat.go.jp/terms-of-use",
            "cc:useGuidelines": "https://www.e-stat.go.jp/gis/statmap-search?page=1&type=2&aggregateUnitForBoundary=A&toukeiCode=00200521&toukeiYear=2020&serveyId=A002005212020&coordsys=1&format=shape&datum=2000",
            "dc:issued": "2022-06-24",
            "dc:source": "r2ka13208.shp",
            "dc:subject": [
              "町丁・字境界",
              "国勢調査",
              "政府統計"
            ],
            "dc:title": "東京都調布市:フル解像度TopoJSON",
            "type": [
              "町丁・字等境界"
            ]
          },
          "type": "Topology"
        },
        "original_url": "https://github.com/okiyuki99/streamlit-chofu-visualization/blob/fcec4a092a20e854f5d92b04491b8d501f185702/data/r2ka13208.topojson",
        "publisher": "総務省統計局 / 国立情報学研究所",
        "retrieved_at": "2026-10-19",
        "sha256": "35f3afe72b5e9249af5d1eb5c7fd0035f02dda3d6049ddbf74351bc6edb34778",
        "source_id": "census-2020-boundaries",
        "source_url": "https://geoshape.ex.nii.ac.jp/ka/resource/13208.html"
      }
    ],
    "links": {
      "release": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/release.json",
      "dataset": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/boundaries/dataset.json",
      "coverage": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/population/coverage.json",
      "provenance": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/provenance.json",
      "quality": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/quality.json",
      "sources": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/sources.json",
      "bulk": {
        "geojson": "https://chofu-data.tokyo/data/releases/633e5edf2245cb6f64fea566b5fe33129bf2c4688de918abe5d40f8170ffe8f1/boundaries/census-2020.geojson"
      }
    },
    "pagination": null
  }
}
304 — If-None-Matchに一致。本文なし。

応答本文はありません。

400 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

404 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

405 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

414 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

422 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

503 — 理由付きJSONエラー。数値0や空配列への置き換えは行いません。

Content-Type:application/json

Error

定義:Error

データ型・応答スキーマ

必須項目と型を示します。条件分岐・入れ子の制約を含むJSON Schemaは「完全な定義」で確認できます。

Coverage

object
  • 未定義の項目は不可
項目必須型・条件
reference_dates必須
array<string>
  • 各要素 — パターン: "^\\d{4}-\\d{2}-\\d{2}$"
latest_reference_date必須
string
  • パターン: "^\\d{4}-\\d{2}-\\d{2}$"
expected_frequency必須
string
temporal_granularity必須
string
uncollected_reference_dates必須
array<string>
  • 各要素 — パターン: "^\\d{4}-\\d{2}-\\d{2}$"
uncollected_reason必須
string
freshness_status必須
string
source_checked_at必須
string | null
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "reference_dates": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
    },
    "latest_reference_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "expected_frequency": {
      "type": "string"
    },
    "temporal_granularity": {
      "type": "string"
    },
    "uncollected_reference_dates": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
    },
    "uncollected_reason": {
      "type": "string"
    },
    "freshness_status": {
      "type": "string"
    },
    "source_checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "required": [
    "reference_dates",
    "latest_reference_date",
    "expected_frequency",
    "temporal_granularity",
    "uncollected_reference_dates",
    "uncollected_reason",
    "freshness_status",
    "source_checked_at",
    "data_revision"
  ],
  "additionalProperties": false
}

Source

object
  • 追加の項目を許可
項目必須型・条件
source_id必須
string
publisher必須
string
source_url必須
string
original_url必須
string
license_id必須
string
license_url必須
string
attribution必須
string
modifications必須
array<string>
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "source_id": {
      "type": "string"
    },
    "publisher": {
      "type": "string"
    },
    "source_url": {
      "type": "string"
    },
    "original_url": {
      "type": "string"
    },
    "license_id": {
      "type": "string"
    },
    "license_url": {
      "type": "string"
    },
    "attribution": {
      "type": "string"
    },
    "modifications": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "required": [
    "source_id",
    "publisher",
    "source_url",
    "original_url",
    "license_id",
    "license_url",
    "attribution",
    "modifications",
    "data_revision"
  ],
  "additionalProperties": true
}

Pagination

object
  • 未定義の項目は不可
項目必須型・条件
total_rows必須
integer
  • 最小値: 0
returned_rows必須
integer
  • 最小値: 0
limit必須
integer

1ページの最大行数。欠損行も件数に含みます。

  • 省略時: 100
  • 最小値: 1
  • 最大値: 500
next_cursor必須
string | null
next_url必須
string | null
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "total_rows": {
      "type": "integer",
      "minimum": 0
    },
    "returned_rows": {
      "type": "integer",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 100,
      "description": "1ページの最大行数。欠損行も件数に含みます。"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "next_url": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "total_rows",
    "returned_rows",
    "limit",
    "next_cursor",
    "next_url"
  ],
  "additionalProperties": false
}

Metadata

object
  • 未定義の項目は不可

定義:Coverage / Source / Pagination

項目必須型・条件
applied_filters必須
object
units必須
object
  • 追加の項目: string
coverage必須
Coverage

定義:Coverage

definition_status必須
object
  • 追加の項目: string
warnings必須
array<string>
uncollected_reference_dates_in_range必須
array<string>
  • 各要素 — パターン: "^\\d{4}-\\d{2}-\\d{2}$"
sources必須
array<Source>

定義:Source

links必須
object
  • 未定義の項目は不可
内側の項目
release(必須)
string
dataset(必須)
string
coverage(必須)
string
provenance(必須)
string
quality(必須)
string
sources(必須)
string
bulk(必須)
object
  • 追加の項目: string
pagination必須
Pagination | null
  • anyOf: いずれかの条件を満たす(完全な定義を参照)

定義:Pagination

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object"
    },
    "units": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "coverage": {
      "$ref": "#/components/schemas/Coverage"
    },
    "definition_status": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "uncollected_reference_dates_in_range": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Source"
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "release": {
          "type": "string"
        },
        "dataset": {
          "type": "string"
        },
        "coverage": {
          "type": "string"
        },
        "provenance": {
          "type": "string"
        },
        "quality": {
          "type": "string"
        },
        "sources": {
          "type": "string"
        },
        "bulk": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "release",
        "dataset",
        "coverage",
        "provenance",
        "quality",
        "sources",
        "bulk"
      ],
      "additionalProperties": false
    },
    "pagination": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/Pagination"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "applied_filters",
    "units",
    "coverage",
    "definition_status",
    "warnings",
    "uncollected_reference_dates_in_range",
    "sources",
    "links",
    "pagination"
  ],
  "additionalProperties": false
}

Observation

任意のJSON値 | 任意のJSON値 | 任意のJSON値 | 任意のJSON値 | 任意のJSON値
  • 未定義の項目は不可
  • anyOf: いずれかの条件を満たす(完全な定義を参照)
  • allOf: すべての条件を満たす(完全な定義を参照)
項目必須型・条件
dataset_id必須
"population"
  • 固定値: "population"
municipality_code必須
"13208"
  • 固定値: "13208"
area_id必須
string
area_name必須
string
geography_level必須
"municipality" | "town_area"
  • 選択肢: "municipality", "town_area"
reference_date必須
string
  • パターン: "^\\d{4}-\\d{2}-\\d{2}$"
population—
integer | null
  • 最小値: 0
male—
integer | null
  • 最小値: 0
female—
integer | null
  • 最小値: 0
households—
integer | null
  • 最小値: 0
density—
number | null
  • 最小値: 0
observation_status必須
"reported" | "missing"
  • 選択肢: "reported", "missing"
missing_reason必須
null | "source_blank" | "not_in_source"
  • 選択肢: null, "source_blank", "not_in_source"
provenance_id必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
area_km2—
number
  • この値より大きい: 0
boundary_version—
string
boundary_provenance_id—
string
calculation_method—
string
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "dataset_id": {
      "const": "population"
    },
    "municipality_code": {
      "const": "13208"
    },
    "area_id": {
      "type": "string"
    },
    "area_name": {
      "type": "string"
    },
    "geography_level": {
      "enum": [
        "municipality",
        "town_area"
      ]
    },
    "reference_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "population": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "male": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "female": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "households": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "density": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "observation_status": {
      "enum": [
        "reported",
        "missing"
      ]
    },
    "missing_reason": {
      "enum": [
        null,
        "source_blank",
        "not_in_source"
      ]
    },
    "provenance_id": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "area_km2": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "boundary_version": {
      "type": "string"
    },
    "boundary_provenance_id": {
      "type": "string"
    },
    "calculation_method": {
      "type": "string"
    }
  },
  "required": [
    "dataset_id",
    "municipality_code",
    "area_id",
    "area_name",
    "geography_level",
    "reference_date",
    "observation_status",
    "missing_reason",
    "provenance_id",
    "data_revision"
  ],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "population"
      ]
    },
    {
      "required": [
        "male"
      ]
    },
    {
      "required": [
        "female"
      ]
    },
    {
      "required": [
        "households"
      ]
    },
    {
      "required": [
        "density"
      ]
    }
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "observation_status": {
            "const": "missing"
          }
        }
      },
      "then": {
        "properties": {
          "population": {
            "type": "null"
          },
          "male": {
            "type": "null"
          },
          "female": {
            "type": "null"
          },
          "households": {
            "type": "null"
          },
          "density": {
            "type": "null"
          },
          "missing_reason": {
            "enum": [
              "source_blank",
              "not_in_source"
            ]
          }
        }
      },
      "else": {
        "properties": {
          "population": {
            "type": "integer",
            "minimum": 0
          },
          "male": {
            "type": "integer",
            "minimum": 0
          },
          "female": {
            "type": "integer",
            "minimum": 0
          },
          "households": {
            "type": "integer",
            "minimum": 0
          },
          "density": {
            "type": "number",
            "minimum": 0
          },
          "missing_reason": {
            "type": "null"
          }
        }
      }
    },
    {
      "if": {
        "required": [
          "density"
        ]
      },
      "then": {
        "required": [
          "area_km2",
          "boundary_version",
          "boundary_provenance_id",
          "calculation_method"
        ],
        "properties": {
          "geography_level": {
            "const": "town_area"
          }
        }
      }
    }
  ]
}

DatasetSummary

object
  • 未定義の項目は不可
項目必須型・条件
dataset_id必須
"population" | "town_boundaries"
  • 選択肢: "population", "town_boundaries"
title必須
string
api_url必須
string
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "dataset_id": {
      "enum": [
        "population",
        "town_boundaries"
      ]
    },
    "title": {
      "type": "string"
    },
    "api_url": {
      "type": "string"
    }
  },
  "required": [
    "dataset_id",
    "title",
    "api_url"
  ],
  "additionalProperties": false
}

Dataset

object
  • 追加の項目を許可
項目必須型・条件
dataset_id必須
"population" | "town_boundaries"
  • 選択肢: "population", "town_boundaries"
title必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "dataset_id": {
      "enum": [
        "population",
        "town_boundaries"
      ]
    },
    "title": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "required": [
    "dataset_id",
    "title",
    "data_revision"
  ],
  "additionalProperties": true
}

Area

object
  • 未定義の項目は不可
項目必須型・条件
area_id必須
string
name必須
string
geography_level必須
"municipality" | "town_area"
  • 選択肢: "municipality", "town_area"
municipality_code必須
"13208"
  • 固定値: "13208"
aliases必須
array<string>
parent_area_id必須
string | null
source_code必須
string | null
source_code_system必須
string | null
valid_from必須
string | null
valid_to必須
string | null
validity_status必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "area_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "geography_level": {
      "enum": [
        "municipality",
        "town_area"
      ]
    },
    "municipality_code": {
      "const": "13208"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "parent_area_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_code_system": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid_from": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid_to": {
      "type": [
        "string",
        "null"
      ]
    },
    "validity_status": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "required": [
    "area_id",
    "name",
    "geography_level",
    "municipality_code",
    "aliases",
    "parent_area_id",
    "source_code",
    "source_code_system",
    "valid_from",
    "valid_to",
    "validity_status",
    "data_revision"
  ],
  "additionalProperties": false
}

Boundary

object
  • 未定義の項目は不可
項目必須型・条件
area_id必須
string
area_name必須
string
boundary_version必須
string
area_km2必須
number
  • この値より大きい: 0
representative_point必須
array<number>
  • 最少件数: 2
  • 最大件数: 2
bbox必須
array<number>
  • 最少件数: 4
  • 最大件数: 4
source_code必須
string
provenance_id必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "area_id": {
      "type": "string"
    },
    "area_name": {
      "type": "string"
    },
    "boundary_version": {
      "type": "string"
    },
    "area_km2": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "representative_point": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "number"
      }
    },
    "bbox": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "items": {
        "type": "number"
      }
    },
    "source_code": {
      "type": "string"
    },
    "provenance_id": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "required": [
    "area_id",
    "area_name",
    "boundary_version",
    "area_km2",
    "representative_point",
    "bbox",
    "source_code",
    "provenance_id",
    "data_revision"
  ],
  "additionalProperties": false
}

Error

object
  • 未定義の項目は不可
項目必須型・条件
error必須
object
  • 未定義の項目は不可
内側の項目
code(必須)
string
message(必須)
string
details(必須)
object
完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object"
        }
      },
      "required": [
        "code",
        "message",
        "details"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

DatasetsResponse

object
  • 未定義の項目は不可

定義:DatasetSummary / Metadata

項目必須型・条件
api_version必須
"1.0.0"
  • 固定値: "1.0.0"
contract_version必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
data必須
array<DatasetSummary>

定義:DatasetSummary

meta必須
Metadata

定義:Metadata

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "api_version": {
      "const": "1.0.0"
    },
    "contract_version": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DatasetSummary"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/Metadata"
    }
  },
  "required": [
    "api_version",
    "contract_version",
    "data_revision",
    "data",
    "meta"
  ],
  "additionalProperties": false
}

DatasetResponse

object
  • 未定義の項目は不可

定義:Dataset / Metadata

項目必須型・条件
api_version必須
"1.0.0"
  • 固定値: "1.0.0"
contract_version必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
data必須
Dataset

定義:Dataset

meta必須
Metadata

定義:Metadata

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "api_version": {
      "const": "1.0.0"
    },
    "contract_version": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "data": {
      "$ref": "#/components/schemas/Dataset"
    },
    "meta": {
      "$ref": "#/components/schemas/Metadata"
    }
  },
  "required": [
    "api_version",
    "contract_version",
    "data_revision",
    "data",
    "meta"
  ],
  "additionalProperties": false
}

AreasResponse

object
  • 未定義の項目は不可

定義:Area / Metadata

項目必須型・条件
api_version必須
"1.0.0"
  • 固定値: "1.0.0"
contract_version必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
data必須
array<Area>

定義:Area

meta必須
Metadata

定義:Metadata

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "api_version": {
      "const": "1.0.0"
    },
    "contract_version": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Area"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/Metadata"
    }
  },
  "required": [
    "api_version",
    "contract_version",
    "data_revision",
    "data",
    "meta"
  ],
  "additionalProperties": false
}

ObservationsResponse

object
  • 未定義の項目は不可

定義:Observation / Metadata

項目必須型・条件
api_version必須
"1.0.0"
  • 固定値: "1.0.0"
contract_version必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
data必須
array<Observation>

定義:Observation

meta必須
Metadata

定義:Metadata

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "api_version": {
      "const": "1.0.0"
    },
    "contract_version": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Observation"
      }
    },
    "meta": {
      "$ref": "#/components/schemas/Metadata"
    }
  },
  "required": [
    "api_version",
    "contract_version",
    "data_revision",
    "data",
    "meta"
  ],
  "additionalProperties": false
}

BoundaryResponse

object
  • 未定義の項目は不可

定義:Boundary / Metadata

項目必須型・条件
api_version必須
"1.0.0"
  • 固定値: "1.0.0"
contract_version必須
string
data_revision必須
string
  • パターン: "^[0-9a-f]{64}$"
data必須
Boundary

定義:Boundary

meta必須
Metadata

定義:Metadata

完全な定義(JSON Schema)
{
  "type": "object",
  "properties": {
    "api_version": {
      "const": "1.0.0"
    },
    "contract_version": {
      "type": "string"
    },
    "data_revision": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "data": {
      "$ref": "#/components/schemas/Boundary"
    },
    "meta": {
      "$ref": "#/components/schemas/Metadata"
    }
  },
  "required": [
    "api_version",
    "contract_version",
    "data_revision",
    "data",
    "meta"
  ],
  "additionalProperties": false
}