Check & Vote: French and EU parliaments
v1.0.0French 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…
| Parameter | Type | Description |
|---|---|---|
author | integer | Identifier 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… |
authorGroup | array | Identifiers 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… |
authorRole | string | Role 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… |
chamber | string | Restrict amendments to those tabled in this chamber (NATIONAL_ASSEMBLY or SENATE); default: both. Only with type=AMENDMENT; refused (400) otherwise. |
excludeTreaties | boolean | true removes international treaty ratification bills (bills marked as such in either chamber). Applies to bills only. Does not apply to amendments. |
from | string | Earliest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date. |
government | integer | Identifier 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… |
jurisdiction | string | Restrict bills to FR or EU. EU excludes decrees and reports. |
language | string | Language 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… |
nature | array | Restrict decrees to these natures, comma-separated. Does not apply to amendments. |
order | string | Sort direction. Default: the criterion's own. |
outcome | string | Restrict amendments to this fate (PENDING means not yet discussed). Only with type=AMENDMENT; refused (400) otherwise. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
q | string | Search 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… |
size | integer | Items per page (default 10, maximum 25). |
sort | string | Sort criterion. Default: RELEVANCE with 'q', DATE without. |
status | string | Restrict bills to IN_PROGRESS or PROMULGATED. Does not apply to amendments. |
to | string | Latest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date. |
type | array | Corpora 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… |
votePosition | string | FOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'. |
votedBy | integer | Identifier 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).
| Parameter | Type | Description |
|---|---|---|
billId * | integer | Bill identifier: the 'id' of a BILL result of search_texts, or the 'billId' of a vote or of a text. |
language | string | Language 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…
| Parameter | Type | Description |
|---|---|---|
billId * | integer | Bill identifier, from search_texts or get_vote. |
author | integer | Identifier 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). |
authorGroup | array | Identifiers 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… |
authorRole | string | Role of 'author': AUTHOR (first signatory), COSIGNATORY (a co-signer) or ANY (default). No effect without 'author'. |
chamber | string | Restrict 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. |
outcome | string | Restrict to amendments with this fate. PENDING means not yet discussed. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
q | string | Search 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… |
size | integer | Items per page (default 10, maximum 25). |
votePosition | string | FOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'. |
votedBy | integer | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
billId * | integer | Bill identifier, from search_texts or get_vote. |
stance * | string | The opinion whose reasons are listed. |
limit | integer | Maximum 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).
| Parameter | Type | Description |
|---|---|---|
billId * | integer | Bill identifier, from search_texts or get_vote. |
language | string | Language 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.
| Parameter | Type | Description |
|---|---|---|
billId * | integer | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
textId * | integer | Text identifier: a 'textId' of get_bill ('texts') or of get_vote. |
contentChars | integer | Number of characters of 'fullText' to return (default 12000, maximum 30000). |
contentOffset | integer | Index of the first character of 'fullText' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on. |
language | string | Language 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.
| Parameter | Type | Description |
|---|---|---|
textId * | integer | Text identifier, from get_bill ('texts') or get_vote ('textId'). |
otherTextId | integer | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
decreeId * | integer | Decree 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'.
| Parameter | Type | Description |
|---|---|---|
billId | integer | Identifier of a European bill (jurisdiction EU). Give it alone to LIST its official text versions. |
contentChars | integer | Number of characters of 'xhtml' to return (default 12000, maximum 30000). |
contentOffset | integer | Index of the first character of 'xhtml' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on. |
language | string | Language 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… |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items per page (default 25, maximum 25). |
textId | integer | Identifier 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.
| Parameter | Type | Description |
|---|---|---|
chamber | string | Chamber to list. NATIONAL_ASSEMBLY, SENATE or EUROPEAN_PARLIAMENT. |
from | string | Earliest date (inclusive), ISO yyyy-MM-dd. |
kind | array | Restrict to these kinds of vote, comma-separated. |
order | string | Sort direction. |
outcome | string | Restrict to adopted or rejected votes. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
q | string | Search terms, matched against the title. |
size | integer | Items per page (default 10, maximum 25). |
sort | string | Sort criterion. |
to | string | Latest 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.
| Parameter | Type | Description |
|---|---|---|
voteId * | integer | Vote 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.
| Parameter | Type | Description |
|---|---|---|
voteId * | integer | Vote identifier, from list_votes or get_vote. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
voteId * | integer | Vote identifier, from list_votes or get_vote. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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…
| Parameter | Type | Description |
|---|---|---|
amendmentId * | integer | Amendment 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.
| Parameter | Type | Description |
|---|---|---|
voteId * | integer | Vote 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…
| Parameter | Type | Description |
|---|---|---|
country | array | Countries represented (MEPs), ISO 3166-1 alpha-2, comma-separated or repeated. |
department | string | Department, by number (77, 2A, 971) or name (Seine-et-Marne). Applies to parliamentarians and to candidates (the department of the constituency they stood in). |
group | array | Identifiers of political groups, comma-separated (see /groups). |
kind | array | Kinds 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… |
order | string | Sort direction. Default: the criterion's own. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
q | string | Search terms. Every word must be found in the name, department, profession... |
size | integer | Items per page (default 10, maximum 25). |
sort | string | Sort criterion. PARTICIPATION and LOYALTY require exactly one 'kind' among DEPUTY, SENATOR and MEP. |
status | string | IN_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.
| Parameter | Type | Description |
|---|---|---|
personId * | integer | Person 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.
| Parameter | Type | Description |
|---|---|---|
personId * | integer | Person identifier, from search_people. |
kind | array | Kinds of vote, comma-separated. Default: WHOLE_TEXT, MOTION, OTHER. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
personId * | integer | Person identifier, from search_people. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
personId * | integer | Person 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.
| Parameter | Type | Description |
|---|---|---|
chamber | string | NATIONAL_ASSEMBLY, SENATE or EUROPEAN_PARLIAMENT. |
includeFormer | boolean | Also list groups that no longer exist. |
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. |
q | string | Search terms (name of the government or its Prime Minister). |
size | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
governmentId * | integer | Government identifier, from list_governments. |