Check & Vote: French and EU parliaments

v1.0.0
eu.checkandvote/open-data Checked 7 hours ago Published 4 days ago

French and European parliament open data: bills, amendments, roll-call votes, MPs, decrees.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_texts Search bills, decrees, reports and amendments

Search French and European legislation by keywords: bills (legislative files), decrees and ordinances published in the Journal officiel, and parliamentary reports. Use it FIRST whenever the user names a law, a topic or a decree and you need its identifier. Returns a page of results (kind, id, title, date, status). Open a BILL with get_bill and a DECREE with get_decree. Omit 'type' to search all three corpora; use type=BILL with jurisdiction=EU for European files. Amendments are NEVER in the default results: when a precise measure (a tax, a mechanism) appears in no title, search the amendments…

ParameterTypeDescription
authorintegerIdentifier of a person (see /people): keeps only the texts and amendments this person signed, as 'authorRole' says. Applies to bills, decrees, reports and amendments. An unknown person is refused (400…
authorGrouparrayIdentifiers of political groups (see /groups), comma-separated: keeps only the bills and amendments whose author belonged to one of them on the filing date (several groups: any of them). For a bill, a…
authorRolestringRole of 'author': AUTHOR (first signatory of a bill or amendment, rapporteur of a report, signatory of a decree), COSIGNATORY (a co-signer who has not withdrawn; bills and amendments only, reports and…
chamberstringRestrict amendments to those tabled in this chamber (NATIONAL_ASSEMBLY or SENATE); default: both. Only with type=AMENDMENT; refused (400) otherwise.
excludeTreatiesbooleantrue removes international treaty ratification bills (bills marked as such in either chamber). Applies to bills only. Does not apply to amendments.
fromstringEarliest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date.
governmentintegerIdentifier of a government (see /governments). Keeps only the bills filed and the decrees and ordinances signed while it was in office. The government in office on a date is the last one appointed on…
jurisdictionstringRestrict bills to FR or EU. EU excludes decrees and reports.
languagestringLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation ex…
naturearrayRestrict decrees to these natures, comma-separated. Does not apply to amendments.
orderstringSort direction. Default: the criterion's own.
outcomestringRestrict amendments to this fate (PENDING means not yet discussed). Only with type=AMENDMENT; refused (400) otherwise.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
qstringSearch terms. Every word must be found; if nothing comes out, rephrase with legal vocabulary. 'or' and "quoted phrases" are accepted for amendments. With type=AMENDMENT, a bare amendment number (I-135…
sizeintegerItems per page (default 10, maximum 25).
sortstringSort criterion. Default: RELEVANCE with 'q', DATE without.
statusstringRestrict bills to IN_PROGRESS or PROMULGATED. Does not apply to amendments.
tostringLatest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date.
typearrayCorpora to search, comma-separated (BILL, DECREE, REPORT, AMENDMENT). Default: BILL, DECREE and REPORT, never AMENDMENT. AMENDMENT must be asked alone: mixed with another type, the request is refused…
votePositionstringFOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'.
votedByintegerIdentifier of a person (see /people): keeps only the amendments put to a roll-call vote in which this person voted (as 'votePosition' says, any position otherwise). An amendment decided by a show of h…

get_bill Get a legislative bill

Get one legislative bill (dossier législatif): its steps through Parliament, the roll-call votes held on it, its text versions (each with a 'textId' for get_text), its themes, authors and summaries. Use it after search_texts, or from a vote's 'billId'. Content is in French unless 'language' asks for another language of the Union and a translation exists (European bills).

ParameterTypeDescription
billId *integerBill identifier: the 'id' of a BILL result of search_texts, or the 'billId' of a vote or of a text.
languagestringLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation ex…

list_bill_amendments List the amendments of a bill

List the amendments tabled on a bill, most recently tabled first: number, article, author, group, fate and tabling date. Use the 'outcome' filter to keep only amendments that were ADOPTED, REJECTED, FELL (tombé), WITHDRAWN, NOT_MOVED (non soutenu) or are still PENDING (not yet discussed). A major bill has thousands: search them with 'q' (keywords, or an amendment number such as I-1358, 1-1358 or 1358; results by relevance, an exact number first), filter by 'outcome' and by signatory with 'author' (a person id) and 'authorRole', and by chamber with 'chamber' (NATIONAL_ASSEMBLY or SENATE; a bil…

ParameterTypeDescription
billId *integerBill identifier, from search_texts or get_vote.
authorintegerIdentifier of a person (see /people): keeps only the amendments this person signed, as 'authorRole' says. Combines with 'q' and 'outcome'. An unknown person is refused (400).
authorGrouparrayIdentifiers of political groups (see /groups), comma-separated: keeps only the amendments whose author belonged to one of them on the filing date (several groups: any of them). For an amendment of the…
authorRolestringRole of 'author': AUTHOR (first signatory), COSIGNATORY (a co-signer) or ANY (default). No effect without 'author'.
chamberstringRestrict to amendments tabled in this chamber (NATIONAL_ASSEMBLY or SENATE). Default: both. A bill that went through both chambers has an amendment 'n° 12' on each side.
outcomestringRestrict to amendments with this fate. PENDING means not yet discussed.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
qstringSearch terms within this bill's amendments: number, article, summary, wording. Every word must be found; 'or' and "quoted phrases" are accepted. A bare number (I-1358, 1-1358, I 1358, 1358) finds the…
sizeintegerItems per page (default 10, maximum 25).
votePositionstringFOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'.
votedByintegerIdentifier of a person (see /people): keeps only the amendments put to a roll-call vote in which this person voted (as 'votePosition' says, any position otherwise). An amendment decided by a show of h…

list_bill_reasons List the reasons citizens give on a bill

List the reasons that citizens of the application give to one opinion on a bill: 'stance' is FOR, AGAINST or ABSTENTION, and the reasons come most shared first, each with how many citizens share it. Anonymous: no author is ever returned. These are opinions of the application's users, neither an official source nor a representative poll: say so when you quote them.

ParameterTypeDescription
billId *integerBill identifier, from search_texts or get_vote.
stance *stringThe opinion whose reasons are listed.
limitintegerMaximum number of reasons (default 10).

get_bill_long_summary Get the long summary of a bill

Get the long, plain-language summary of a bill. Use it when the user wants to understand what a bill does and the short summary of get_bill is not enough. In French unless 'language' asks for another language of the Union (translated on demand).

ParameterTypeDescription
billId *integerBill identifier, from search_texts or get_vote.
languagestringLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation ex…

list_bill_decrees List the decrees that apply a law

List the implementing decrees of a promulgated law, with the link that was used to find them. Use it to answer 'has this law been applied?'. Empty when the bill is not a promulgated law. Open one with get_decree.

ParameterTypeDescription
billId *integerIdentifier of a promulgated bill, from search_texts.

get_text Read one version of a bill's text

Read one version of the text of a bill (filed text, committee text, adopted text...): its wording ('fullText'), explanatory memorandum, summaries and the versions it can be compared with (see compare_texts). Use it when the user asks what a bill SAYS. The wording of a law is long: it is returned in windows of 12000 characters; 'contentWindow.nextOffset' gives the 'contentOffset' to read on.

ParameterTypeDescription
textId *integerText identifier: a 'textId' of get_bill ('texts') or of get_vote.
contentCharsintegerNumber of characters of 'fullText' to return (default 12000, maximum 30000).
contentOffsetintegerIndex of the first character of 'fullText' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on.
languagestringLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation ex…

compare_texts Compare two versions of a bill's text

Paragraph-level comparison between a text and another version of the same bill, always from the older to the newer. Use it to see what an amendment process or a Senate reading changed. Without 'otherTextId' the previous version of the procedure is used; an error says when no comparison is possible. Long comparisons are cut: the 'truncated' field says so.

ParameterTypeDescription
textId *integerText identifier, from get_bill ('texts') or get_vote ('textId').
otherTextIdintegerIdentifier of the version to compare with. Must be one of the 'comparableVersions' of get_text. Default: the previous version.

get_decree Get a decree or ordinance

Get one decree or ordinance published in the Journal officiel: visas, notice, articles, signatories and the laws it applies. Use it after search_texts (kind DECREE) or list_bill_decrees. Long articles are cut: the 'truncated' field says so.

ParameterTypeDescription
decreeId *integerDecree identifier, from search_texts (kind DECREE) or list_bill_decrees.

get_eu_official_text Read the official text of a European act

Official EU legislative text. With 'billId' alone: lists the official versions of a European bill (proposal, Parliament position, adopted act) with the languages each exists in (empty for French bills). With 'textId': reads that version as XHTML in the requested 'language' (with a fallback language, stated in the answer), in windows of 12000 characters ('contentWindow.nextOffset' gives the 'contentOffset' to read on). Give exactly one of 'billId' and 'textId'.

ParameterTypeDescription
billIdintegerIdentifier of a European bill (jurisdiction EU). Give it alone to LIST its official text versions.
contentCharsintegerNumber of characters of 'xhtml' to return (default 12000, maximum 30000).
contentOffsetintegerIndex of the first character of 'xhtml' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on.
languagestringLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation ex…
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).
textIdintegerIdentifier of one official version, from the list this tool returns for a billId. Give it to READ that version.

list_votes List or search roll-call votes

List the roll-call votes (scrutins publics) of one chamber, newest first by default: National Assembly (default), Senate or European Parliament. Returns each vote's id, title, date, outcome and totals. Use it to find 'the vote on X' (search by title with 'q'), then open it with get_vote for the tallies per political group. Paginated.

ParameterTypeDescription
chamberstringChamber to list. NATIONAL_ASSEMBLY, SENATE or EUROPEAN_PARLIAMENT.
fromstringEarliest date (inclusive), ISO yyyy-MM-dd.
kindarrayRestrict to these kinds of vote, comma-separated.
orderstringSort direction.
outcomestringRestrict to adopted or rejected votes.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
qstringSearch terms, matched against the title.
sizeintegerItems per page (default 10, maximum 25).
sortstringSort criterion.
tostringLatest date (inclusive), ISO yyyy-MM-dd.

get_vote Get a roll-call vote with the tallies per group

Get one roll-call vote: result, totals, the text voted on and the tallies per political group (for, against, abstentions). Use it to answer 'how did group X vote on Y?'. For how each individual member voted use list_vote_member_votes; for the text voted on use get_vote_text_context.

ParameterTypeDescription
voteId *integerVote identifier, from list_votes, get_bill ('votes') or get_person_votes ('voteId').

list_vote_member_votes How each member voted

List how each member of the chamber voted in a roll call (for, against, abstention, non-voting), with their political group. Only roll calls with 'nominal' true have it. A chamber has hundreds of members: this is PAGINATED, 25 per page; use 'page' to read on, and prefer get_vote when only group totals are needed.

ParameterTypeDescription
voteId *integerVote identifier, from list_votes or get_vote.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).

list_vote_amendments Amendments voted on

List the amendment(s) an amendment vote was about, with author, wording and justification. Use it when a vote's kind is AMENDMENT and the user asks what the amendment said. Empty for other votes.

ParameterTypeDescription
voteId *integerVote identifier, from list_votes or get_vote.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).

get_amendment Get one amendment

Get one amendment of a bill, tabled in the National Assembly or the Senate ('chamber'): author, group, article amended, fate (outcome: ADOPTED, REJECTED, FELL, WITHDRAWN, NOT_MOVED, PENDING), dates, the amended wording and its justification as HTML, the bill it belongs to and the roll-call votes that put it to the vote; for a Senate amendment, the committee's and the Government's opinions ('commissionOpinion', 'governmentOpinion'). Use it after search_texts, list_bill_amendments or list_vote_amendments when the user asks what an amendment said or what became of it; search_texts (type=AMENDMENT…

ParameterTypeDescription
amendmentId *integerAmendment identifier, from search_texts (type=AMENDMENT), list_bill_amendments or list_vote_amendments.

get_vote_text_context The text a vote relates to

Get the bill, the text and the summaries of what a vote was about. Use it to explain a vote in plain words after get_vote. When the text voted on has no summary, 'nearbySummary' holds the summary of another version of the bill: say it is not the text voted on. Says so in a 'message' when the vote is not attached to a text.

ParameterTypeDescription
voteId *integerVote identifier, from list_votes or get_vote.

search_people Find a deputy, senator, MEP, minister or election candidate

Find people of the public registry: deputies, senators, MEPs, ministers, presidents and public figures, as well as political content creators (video makers, media outlets, magazines, columnists; kind=CONTENT_CREATOR, parliamentarians included) and candidates in the 2024 French legislative election (kind=CANDIDATE). Candidates who never held a mandate are NOT in the default result: if a name returns nothing, search again with kind=CANDIDATE. Search by name with 'q'; filter by political group, department, country, kind or in-office status. Returns identifiers to use with get_person and get_perso…

ParameterTypeDescription
countryarrayCountries represented (MEPs), ISO 3166-1 alpha-2, comma-separated or repeated.
departmentstringDepartment, by number (77, 2A, 971) or name (Seine-et-Marne). Applies to parliamentarians and to candidates (the department of the constituency they stood in).
grouparrayIdentifiers of political groups, comma-separated (see /groups).
kindarrayKinds of person, comma-separated. Default: every kind except CONTENT_CREATOR and CANDIDATE. CONTENT_CREATOR selects political content creators (video makers, media outlets, magazines, columnists), par…
orderstringSort direction. Default: the criterion's own.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
qstringSearch terms. Every word must be found in the name, department, profession...
sizeintegerItems per page (default 10, maximum 25).
sortstringSort criterion. PARTICIPATION and LOYALTY require exactly one 'kind' among DEPUTY, SENATOR and MEP.
statusstringIN_OFFICE or FORMER.

get_person Get a person of the public registry

Get one person: biography, public contact details, mandates and political group memberships over time; 'contentCreator' and 'contentFormat' say whether and how the person publishes political content; 'candidacies' lists the rounds of the 2024 legislative election the person stood in (nuance attributed by the Ministry of the Interior, votes, elected). Use it after search_people. Citizens are never exposed.

ParameterTypeDescription
personId *integerPerson identifier, from search_people, list_vote_member_votes ('personId') or get_bill ('author').

get_person_votes How a parliamentarian voted

List the roll-call votes of a parliamentarian with their position (for, against, abstention, absent), newest first. Use it to answer 'how did X vote?'. Default kinds: whole texts, motions and others; pass kind=AMENDMENT or ARTICLE for finer votes. Paginated.

ParameterTypeDescription
personId *integerPerson identifier, from search_people.
kindarrayKinds of vote, comma-separated. Default: WHOLE_TEXT, MOTION, OTHER.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 10, maximum 25).

list_person_proposals Bills filed by a parliamentarian

List the bills and resolutions a parliamentarian filed as author or co-signed, with their identifiers. Use it for 'what did X propose?'. Open one with get_text. Paginated.

ParameterTypeDescription
personId *integerPerson identifier, from search_people.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).

get_person_activity Parliamentary activity of a person

Get a parliamentarian's participation in roll-call votes and how often they vote with their group. Use it for 'is X active / loyal to their group?'. An error says when the person has no parliamentary mandate.

ParameterTypeDescription
personId *integerPerson identifier, from search_people.

list_groups List political groups

List the political groups sitting in a chamber (National Assembly by default, Senate or European Parliament), with their id and acronym. Use it to resolve a group name ('the socialists') to the group id that search_people filters on, and to the acronym that vote tallies carry. Former groups with includeFormer=true.

ParameterTypeDescription
chamberstringNATIONAL_ASSEMBLY, SENATE or EUROPEAN_PARLIAMENT.
includeFormerbooleanAlso list groups that no longer exist.
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).

list_themes List the policy themes

List the themes (policy domains) that classify bills and votes. Labels are in French. Use it to know the vocabulary a bill's or a vote's 'themes' come from.

ParameterTypeDescription
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeintegerItems per page (default 25, maximum 25).

list_governments List the governments of the Republic

List the governments of the French Republic, most recent first, with their Prime Minister and dates. Search with 'q'. Open one with get_government. Paginated.

ParameterTypeDescription
pageintegerPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
qstringSearch terms (name of the government or its Prime Minister).
sizeintegerItems per page (default 10, maximum 25).

get_government Get a government with its members

Get a government of the French Republic and its members with their function and dates.

ParameterTypeDescription
governmentId *integerGovernment identifier, from list_governments.