Skip to content

Returns general foosharing statistics​

GET
/api/statistics

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

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

Responses​

Successful

application/json
JSON
{
  
"generalStatistic": {
  
  
"fetchWeight": 0,
  
  
"fetchCount": 0,
  
  
"cooperationsCount": 0,
  
  
"botCount": 0,
  
  
"foodsaverCount": 0,
  
  
"fairteilerCount": 0,
  
  
"totalBaskets": 0,
  
  
"avgWeeklyBaskets": 0,
  
  
"countAllFoodsaver": 0,
  
  
"countActiveFoodSharePoints": 0,
  
  
"avgDailyFetchCount": 0
  
},
  
"regionsActivity": {
  
  
"pickupOverAllTime": [
  
  
  
{
  
  
  
  
"name": "string",
  
  
  
  
"fetchWeight": 0,
  
  
  
  
"fetchCount": 0
  
  
  
}
  
  
],
  
  
"pickupInDefinedPeriod": null,
  
  
"pickupCurrentMonth": null
  
}
}

Playground​

Authorization

Samples​