Skip to content

Returns the age band distribution from a region​

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

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

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

regionId*
Type
integer
Required
Minimum
1

Query Parameters

onlyHomeRegion
Type
boolean
Default
false

Responses​

Successful

application/json
JSON
[
  
{
  
  
"ageBand": "string",
  
  
"numberOfAgeBand": 0
  
}
]

Playground​

Authorization
Variables
Key
Value

Samples​