/v1/mep
An MEP profile & memberships
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/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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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",
…