Skip to content

Returns the age band distribution from a region.

GET
/api/statistics/regions/{regionId}/pickups

Authorizations

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

Parameters

Path Parameters

regionId*
Typestring
Required

Responses

Successful
JSON
{
"type": "Foodsharing\Modules\Region\DTO\RegionPickupStatistics"
}
Authorization
api_key
Variables
Key
Value
regionId*
cURL
curl -X GET \
'http://localhost/api/statistics/regions/{regionId}/pickups'

Samples

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