Skip to main content

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.

このページでは curlkushiro-data API の基本的な使い方を確認します。

1. Health check

curl https://data.kushiro.app/api/v1/health
レスポンス例:
{
  "status": "ok",
  "time": "2026-05-06T00:00:00.000Z"
}

2. Source 一覧を取得する

curl https://data.kushiro.app/api/v1/sources
source_idmetrics / points の必須 query parameter です。 まず source 一覧で目的のデータセットを探してください。

3. 数値データを取得する

人口・観光客数・財政指標などの数値データは GET /api/v1/metrics から取得します。
curl "https://data.kushiro.app/api/v1/metrics?source=kushiro_population_households_monthly&limit=10"
期間や metric 名で絞り込む例:
curl "https://data.kushiro.app/api/v1/metrics?source=kushiro_population_households_monthly&metric=population_total&from=2026-01-01&to=2026-12-31"
主な query parameter:
Parameter必須説明
sourceyessource ID
metricnometric 名の完全一致
fromnoperiod.start_date の下限。YYYY-MM-DD
tonoperiod.end_date の上限。YYYY-MM-DD
townno町名の完全一致
ageno年齢ラベルの完全一致
limitnodefault 1000、max 10000
offsetnodefault 0

4. 施設・地点系データを取得する

施設、AED、避難場所、学校、議会だより索引などの施設・地点系データは GET /api/v1/points から取得します。
curl "https://data.kushiro.app/api/v1/points?source=kushiro_aed_locations&limit=10"
category で絞り込む例:
curl "https://data.kushiro.app/api/v1/points?source=kushiro_aed_locations&category=aed&limit=10"
主な query parameter:
Parameter必須説明
sourceyessource ID
categorynopoint category の完全一致
limitnodefault 1000、max 10000
offsetnodefault 0

Pagination

metricspoints は共通して total, limit, offset を返します。 次ページを取得するときは offset に前回の offset + limit を指定してください。
curl "https://data.kushiro.app/api/v1/metrics?source=kushiro_population_households_monthly&limit=1000&offset=1000"