curl --request GET \
--url https://data.kushiro.app/api/v1/metricsimport requests
url = "https://data.kushiro.app/api/v1/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kushiro.app/api/v1/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.kushiro.app/api/v1/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.kushiro.app/api/v1/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.kushiro.app/api/v1/metrics")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kushiro.app/api/v1/metrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"metrics": [
{
"id": 1,
"source_id": "kushiro_population_households_monthly",
"metric": "population_total",
"value": 163000,
"unit": "persons",
"period": {
"granularity": "month",
"start_date": "2026-04-01",
"end_date": "2026-04-30",
"label": "2026-04"
},
"town": null,
"age_bucket": null,
"category": null,
"fetched_at": "2026-04-29T00:00:00.000Z",
"raw_blob_key": "raw/kushiro_population_households_monthly/2026-04-29T00-00-00.000Z/file.xlsx"
}
],
"total": 1,
"limit": 1000,
"offset": 0
}{
"error": "invalid query parameters",
"issues": [
{
"path": "source",
"message": "Invalid input: expected string, received undefined"
}
]
}{
"error": "internal server error"
}Query numeric data
Returns numeric data records. source is required; all other filters are optional exact-match or date-range filters.
curl --request GET \
--url https://data.kushiro.app/api/v1/metricsimport requests
url = "https://data.kushiro.app/api/v1/metrics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.kushiro.app/api/v1/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.kushiro.app/api/v1/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.kushiro.app/api/v1/metrics"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.kushiro.app/api/v1/metrics")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kushiro.app/api/v1/metrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"metrics": [
{
"id": 1,
"source_id": "kushiro_population_households_monthly",
"metric": "population_total",
"value": 163000,
"unit": "persons",
"period": {
"granularity": "month",
"start_date": "2026-04-01",
"end_date": "2026-04-30",
"label": "2026-04"
},
"town": null,
"age_bucket": null,
"category": null,
"fetched_at": "2026-04-29T00:00:00.000Z",
"raw_blob_key": "raw/kushiro_population_households_monthly/2026-04-29T00-00-00.000Z/file.xlsx"
}
],
"total": 1,
"limit": 1000,
"offset": 0
}{
"error": "invalid query parameters",
"issues": [
{
"path": "source",
"message": "Invalid input: expected string, received undefined"
}
]
}{
"error": "internal server error"
}Query Parameters
Source ID to query.
1Metric name exact match, for example population_total or households_total. Repeat the parameter (?metric=a&metric=b) to match any of several metrics (IN/OR). Takes precedence over metric_prefix when both are given.
201Metric name prefix match, for example water_ to fetch every metric of one business line in a source that namespaces metrics by prefix. Ignored when metric is also supplied.
1Inclusive lower bound for period.start_date in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$"2026-04-01"
Inclusive upper bound for period.end_date in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$"2026-04-01"
Exact match for a town name.
1Exact match for an age label, for example 0歳 or 100歳以上.
1Exact match for a categorical axis kind (dim_category.kind), for example industry. Combine with category_code.
1Exact match for a categorical axis code (dim_category.code), for example the major industry code E. Used together with category_kind.
1Maximum number of items to return. Defaults to 1000.
1 <= x <= 10000Number of items to skip. Defaults to 0.
x >= 0