Skip to content

Returns possibly cached information of foodsharing petition at bundestag.

GET
/api/petition-data

Authorizations

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

Responses

Successful
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/petition-data'

Samples

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