このページではDocumentation Index
Fetch the complete documentation index at: https://docs.data.kushiro.app/llms.txt
Use this file to discover all available pages before exploring further.
curl で kushiro-data API の基本的な使い方を確認します。
1. Health check
2. Source 一覧を取得する
source_id は metrics / points の必須 query parameter です。
まず source 一覧で目的のデータセットを探してください。
3. 数値データを取得する
人口・観光客数・財政指標などの数値データはGET /api/v1/metrics から取得します。
| Parameter | 必須 | 説明 |
|---|---|---|
source | yes | source ID |
metric | no | metric 名の完全一致 |
from | no | period.start_date の下限。YYYY-MM-DD |
to | no | period.end_date の上限。YYYY-MM-DD |
town | no | 町名の完全一致 |
age | no | 年齢ラベルの完全一致 |
limit | no | default 1000、max 10000 |
offset | no | default 0 |
4. 施設・地点系データを取得する
施設、AED、避難場所、学校、議会だより索引などの施設・地点系データはGET /api/v1/points から取得します。
| Parameter | 必須 | 説明 |
|---|---|---|
source | yes | source ID |
category | no | point category の完全一致 |
limit | no | default 1000、max 10000 |
offset | no | default 0 |
Pagination
metrics と points は共通して total, limit, offset を返します。
次ページを取得するときは offset に前回の offset + limit を指定してください。