ParseForge Scrapers

Sweden Riksdag Documents Scraper

parseforge/sweden-riksdag-scraper

AutomationOther

Scrapes Swedish Parliament documents by search term and returns each document as a flat row with full text, type, date, and committee.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
45
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

Sweden Riksdag Documents Scraper

Scrape Swedish Parliament documents by any search term, up to a million per run. Each document comes with its full text, type, date, and committee. No login or API key. Export to CSV, JSON, Excel, or XML.

The Riksdag's official website lets you search documents, but not download them in bulk. This Actor queries the public document API directly, so you can pull every motion, report, and written question that matches a keyword like klimat or skatt, without writing any code.

Who uses it What they scrape Sweden Riksdag for
Policy analysts Track how a specific issue is being debated in the Swedish Parliament
Journalists Find motions and reports on a topic for a story
NGOs and advocacy groups Monitor legislative activity relevant to their cause
Researchers Build a corpus of parliamentary documents for text analysis

What it does

This Actor collects Swedish Parliament documents by search term and returns each one as a flat row.

  • ๐Ÿ” Keyword search: enter any Swedish term, like energi or migration, and get every matching document.
  • ๐Ÿ“„ Full text included: each result contains the complete document text, not a summary.
  • ๐Ÿ“Š Structured output: documents are returned as flat rows with type, date, committee, and more.
  • โšก Scalable: collect up to 1,000,000 documents in a single run.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Sweden Riksdag data

๐Ÿ“ˆ Track legislative trends.

A policy analyst runs the Actor weekly with the term 'klimat' to see new motions and reports, then charts how often climate is discussed over time.

๐Ÿ“ฐ Investigate a story.

A journalist searches for 'skatt' to find all recent tax-related documents, then reads the full texts to identify key proposals.

๐ŸŽ“ Build a research dataset.

A university researcher collects thousands of documents on 'migration' to train a text classifier or run sentiment analysis.

๐Ÿ“ข Monitor for advocacy.

An NGO sets up a scheduled run for 'energi' to get alerts whenever a new energy policy document is published.

Why choose this scraper

What you get
No API key Uses the public Riksdag document API, so you can start immediately
Full text search Finds documents that mention your keyword anywhere in the body
Bulk export Get all results in one dataset, ready for analysis
Swedish source Covers all document types from the Swedish Parliament

How it compares

No other Store actor targets Sweden Riksdag the same way, so the honest comparison is with the alternatives teams actually weigh.

Sweden Riksdag Documents Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When Sweden Riksdag changes Maintained for you You fix it You re-learn the page
Proxies, retries, anti-bot Built in Your problem Browser only
Output Fixed JSON schema, CSV/Excel export Whatever you build Copy-paste
Cost Pay per result Engineering time Analyst hours

Configure the run

Drive the Actor with a single search term. The query matches document titles and full text, and the maxItems limit controls how many documents are returned. The Input tab lists every parameter.

A first run with the defaults:

{
 "searchQuery": "klimat",
 "maxItems": 10
}

A larger pull:

{
 "searchQuery": "klimat",
 "maxItems": 200
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $2.10
1,000 results $21.00
10,000 results $210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Sweden Riksdag Documents Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Sweden Riksdag through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/sweden-riksdag-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your search term. It must be a Swedish word or phrase that appears in document titles or full text. Try a broader term like 'klimat' instead of a very specific phrase.

The run is taking too long.

Lower the maxItems value. The Actor processes documents sequentially, so a high limit can take time. You can also run multiple queries in parallel.

Some documents are missing full text.

Occasionally the Riksdag API does not provide full text for certain document types. The Actor will still return the metadata, but the text field may be empty.

I get an error about invalid search term.

Make sure the searchQuery is a non-empty string without special characters. Avoid using quotes or operators; a simple keyword.

FAQ

Question Answer
What types of documents does this scrape? It returns all document types available on the Riksdag website, including motions, committee reports, written questions, and interpellations.
Can I search in English? The search works best with Swedish keywords, since documents are primarily in Swedish. Some documents may have English summaries, but the full text is usually Swedish.
Is there a rate limit? The Actor respects the Riksdag API's rate limits and handles retries automatically. You can set maxItems to control the volume.
How do I get the full text of each document? The full text is included in the output as a field, so you can read or analyze it directly from the dataset.
Can I filter by date or document type? Currently the Actor only filters by search term. You can post-process the results in your dataset to filter by date or type.
What format is the output? The Actor returns a flat JSON array, which you can export to CSV, Excel, JSON, or XML from the Apify platform.
Do I need an API key for the Riksdag? No, the Actor uses the public API endpoint without authentication.
Can I schedule this to run automatically? Yes, you can set up a schedule in Apify to run the Actor daily, weekly, or at any interval.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Sveriges Riksdag. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
searchQuery required string Required. Keyword to search Swedish Parliament documents (for example klimat, skatt, energi). Matches document titles and full text. klimat
maxItems integer Maximum number of Riksdag documents to collect per run. 10

Pricing

from $19.00 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.019 to $0.021

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~sweden-riksdag-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Sweden Riksdag Documents Scraper on Apify All scrapers