/v1/mep
An MEP profile & memberships
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/europarl-api/v1/mep" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/europarl-api/v1/mep", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/europarl-api/v1/mep");
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/europarl-api/v1/mep",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"mep": {
"id": "1294",
"name": "Elio DI RUPO",
"email": "mailto:[email protected]",
"image": "https://www.europarl.europa.eu/mepphoto/1294.jpg",
"gender": "MALE",
"country": "BEL",
"given_name": "Elio",
"family_name": "Di Rupo",
"place_of_birth": "Morlanwelz",
"membership_count": 28,
"past_memberships": [
{
"end": "1991-06-10",
"role": "MEMBER",
"start": "1989-07-26",
"current": false,
"organization": "214",
"classification": "DELEGATION_PARLIAMENTARY"
},
{
"end": "1991-12-16",
"role": "MEMBER",
"start": "1989-07-25",
"current": false,
"organization": "485",
"classification": "EU_POLITICAL_GROUP"
},
{
"end": "1991-12-16",
"role": "MEMBER",
"start": "1991-06-10",
"current": false,
"organization": "213",
"classification": "DELEGATION_PARLIAMENTARY"
},
{
"end": "1991-12-16",
"role": "MEMBER",
"start": "1989-07-26",
"current": false,
"organization": "12",
"classification": "COMMITTEE_PARLIAMENTARY_STANDING"
},
{
"end": "1991-12-16",
"role": "MEMBER_PARLIAMENT",
"start": "1989-07-25",
"current": false,
"organization": "ep-3",
"classification": null
},
{
"end": "1991-12-16",
"role": "MEMBER",
"start": "1989-07-25",
"current": false,
"organization": "ep-3",
"classification": "EU_INSTITUTION"
},
{
"end": "1991-12-16",
"role": "MEMBER_SUBSTITUTE",
"start": "1989-07-26",
"current": false,
"organization": "1",
"classification": "COMMITTEE_PARLIAMENTARY_STANDING"
},
{
"end": "2025-01-19",
"role": "MEMBER_SUBSTITUTE",
"start": "2024-07-19",
"current": false,
"organization": "7006",
"classification": "COMMITTEE_PARLIAMENTARY_SUB"
},
{
"end": "1991-12-16",
…