/v1/politicians
Search politicians by name
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/bundestag-api/v1/politicians" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bundestag-api/v1/politicians", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bundestag-api/v1/politicians");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bundestag-api/v1/politicians",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 20,
"query": "Scholz",
"total": 36,
"politicians": [
{
"id": 184179,
"sex": "m",
"name": "Samuel Niklas Scholz",
"party": "Volt",
"last_name": "Scholz",
"birth_year": 1997,
"first_name": "Samuel Niklas"
},
{
"id": 183987,
"sex": "m",
"name": "Matthias Michael Maria Scholz",
"party": "Die PARTEI",
"last_name": "Scholz",
"birth_year": null,
"first_name": "Matthias Michael Maria"
},
{
"id": 183829,
"sex": "m",
"name": "Andreas Scholz",
"party": "FREIE WÄHLER",
"last_name": "Scholz",
"birth_year": 1983,
"first_name": "Andreas"
},
{
"id": 183184,
"sex": "m",
"name": "Michael Scholz",
"party": "Die Linke",
"last_name": "Scholz",
"birth_year": 1974,
"first_name": "Michael"
},
{
"id": 182681,
"sex": "m",
"name": "Konstantin Scholz",
"party": "SPD",
"last_name": "Scholz",
"birth_year": 2002,
"first_name": "Konstantin"
},
{
"id": 181720,
"sex": "m",
"name": "Alex Scholze",
"party": "SPD",
"last_name": "Scholze",
"birth_year": 1992,
"first_name": "Alex"
},
{
"id": 180724,
"sex": "m",
"name": "Gregory Scholz",
"party": "SPD",
"last_name": "Scholz",
"birth_year": 1981,
"first_name": "Gregory"
},
{
"id": 180508,
"sex": "m",
"name": "Marco Scholz",
"party": "BAYERNPARTEI",
"last_name": "Scholz",
"birth_year": null,
"first_name": "Marco"
},
{
"id": 179890,
"sex": "f",
"name": "Louisa Scholz",
"party": "FDP",
"last_name": "Scholz",
"birth_year": 2003,
"first_name": "Louisa"
},
{
"id": 178453,
"sex": "f",
"name": "Friederike Scholz",
"party": "BÜNDNIS 90/DIE GRÜNEN",
"last_name": "Scholz",
"birth_year": 1973,
"first_name": "Friederike"
},
{
"id":
…