Skip to content

Returns the age band distribution from a region.

GET
/api/statistics/regions/{regionId}/age-band

If home region is set only the home region of foodsavers from this regionId are considered.

Authorizations

Parameters

Path Parameters

regionId*
Typestring
Required

Query Parameters

homeRegion

result limit to home region

Typestring

Responses

Successful
JSON
[
{
"ageBand": "string",
"numberOfAgeBand": 0
}
]

Samples

cURL
curl -X GET http://localhost/api/statistics/regions/{regionId}/age-band
JavaScript
fetch("http://localhost/api/statistics/regions/{regionId}/age-band")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/statistics/regions/{regionId}/age-band");
Python
import requests
response = requests.get("http://localhost/api/statistics/regions/{regionId}/age-band")
print(response.json())