Ready-made tools for journalists
Widgets, images and data to use what Congress votes on in a story.
Widgets for articles
Every widget is an <iframe> that loads in under a second, no third-party cookies, with a link back to the source. Copy the snippet, paste in your CMS.
The same card as on the site: what it does in plain language, who it affects, how it ended and how every group voted. Swap the number for the law id (the one in its /initiatives/… address).
HTML snippet
<iframe src="https://www.holapolitica.org/embed/llei/92" width="100%" height="620" frameborder="0" loading="lazy" title="A law in Congress · Hola Política" ></iframe>
What Congress decided in one sitting: the figures, the topics and every law with its result. With "darrer" it updates itself to the latest sitting.
HTML snippet
<iframe src="https://www.holapolitica.org/embed/ple/darrer" width="100%" height="560" frameborder="0" loading="lazy" title="The Congress plenary · Hola Política" ></iframe> <!-- For a given sitting: /embed/ple/2026-09-30 -->
The deputies each constituency elected, by party. Built for local press in a campaign: one widget per province.
HTML snippet
<iframe src="https://www.holapolitica.org/embed/diputats/Barcelona" width="100%" height="760" frameborder="0" loading="lazy" title="Deputies by province · Hola Política" ></iframe>
More widgets
Single votes, groups, topics and a filterable explorer. They keep working at the same addresses.
For a piece about a group: the topic it proposes most, where it votes in favour most often and where it votes against most often, plus seat count. Three facts to place a group at a glance.
HTML snippet
<iframe src="https://www.holapolitica.org/embed/groups/gp-socialista" width="100%" height="320" frameborder="0" loading="lazy" title="Parliamentary group - Hola Política" ></iframe>
For a topic-focused piece: every group ranked by its share of votes in favour and against. Pick the topic and copy the code.
HTML snippet
<iframe src="https://www.holapolitica.org/embed/topics/habitatge/parties" width="100%" height="420" frameborder="0" loading="lazy" title="Votes by group on a topic - Hola Política" ></iframe>
All slugs (group, topic) and ids (vote, law, person) come from our database. You can find them by browsing /votes, /groups, /topics or /persons - or by querying the API at /apidocs.
Social cards (Open Graph)
Every vote, initiative, group or person has a 1200×630 OG image generated automatically. When you share a Hola Política link on Bluesky, X or LinkedIn, the preview already includes the vote result or the deputy's card - no manual mockup needed.
If you want to use the image directly as a file (article header, etc.), these are the stable URLs from the Next.js convention:
https://www.holapolitica.org/opengraph-image https://www.holapolitica.org/votes/16673/opengraph-image https://www.holapolitica.org/groups/gp-socialista/opengraph-image https://www.holapolitica.org/topics/habitatge/opengraph-image https://www.holapolitica.org/persons/<id>/opengraph-image https://www.holapolitica.org/initiatives/<id>/opengraph-image https://www.holapolitica.org/stats/opengraph-image
Data slice ideas
These are open routes that combine easily - they're not 'stories', they're uninterpreted data the newsroom can dress up:
- Average cohesion per group in the current legislature and comparison with previous ones (once we have full historical coverage).
- Approval by topic: which thematic blocks have more approved vs rejected initiatives. All topics, no rankings.
- Coincidence between pairs of groups: full symmetric matrix with the percentage of votes where two groups voted the same way.
- Demographics per group: gender distribution and average age of active members. All parties visible.
- Aggregate attendance per group and deputy. Clear caveats for institutional roles (government, mesa) where the metric isn't comparable.
REST API and datasets
The API is documented at /apidocs - public REST endpoints, stable pagination, JSON. No API key or registration. Responses are cached for up to an hour on the API server.
High-volume use (> 100 req/min sustained) email us before deploying anything - we'll provision quotas and warm the cache.
Licenses
- Data: CC-BY 4.0. Attribution to Hola Política and the original source (Congreso de los Diputados).
- Source code: EUPL-1.2 - repository at github.com/Pardo24/holapolitica.
- Widgets and OG images: free for editorial use with the same attribution requirement.
If your newsroom wants a specific slice (e.g. all votes from a party in a quarter, or activity by constituency), email us and we'll prepare it.
daniel@holapolitica.org