Sejmomat
PL · EN

API

Open JSON API: Sejm votes linked to amendment texts, club results, named votes, MPs and changes to the law. Files are static and refreshed with the site; any website can fetch them (CORS enabled).

Base URL: https://sejmomat.pl/api/v1/ · index.json

Endpoints

PathContents
sittings.jsonlist of sittings with vote counts
sittings/{sitting}.jsona sitting's votes: result, topic, prints, linked amendments (without text)
votes/{sitting}/{votingNumber}.jsonfull vote: amendment text, committee recommendation, changes to the law, club results, club line, line-breakers, named votes
bills.json, bills/{print}.jsonbills (by the print opening the process), changes to existing law, proposers' success, votes
mps.json, mps/{id}.jsonMPs: turnout, line-breaking, signed motions, club history
clubs.jsonclubs: members, cohesion, effectiveness, agreement with other clubs
prints/{print}.jsonprint: metadata and parsed amendments / minority motions / Senate amendments
adopted-amendments.jsonproposers' success (clubs, MPs) and adopted amendments

Example

fetch("https://sejmomat.pl/api/v1/votes/66/21.json")
  .then((r) => r.json())
  .then((v) => console.log(v.result.label, v.amendments[0].text, v.clubs.KO));

Conventions