PARTYPRESS API
REST API for browsing and searching 617,179 party press releases (PARTYPRESS v2.0). Max 500 results per request. Use the next URL in the response to fetch the next page.
Authentication
All endpoints require an API token. Pass it as a query parameter: ?token=YOUR_TOKEN, or as a header: X-API-Token: YOUR_TOKEN. Obtain the token from the project maintainers.
Endpoints
GET /list
Browse press releases with filters and pagination.
| Parameter | Description |
|---|---|
fields | Comma-separated columns to return. Options: id, date, country, party, document_issue, title, text, url, parlgov_party_id |
q | Full-text search (keywords) |
country | Filter by country |
party | Filter by party |
issue | Filter by CAP issue |
date_from | Date from (YYYY-MM-DD) |
date_to | Date to (YYYY-MM-DD) |
limit | Results per page (1–500, default 25) |
offset | Skip N results (for pagination) |
sort_by | date, country, party, document_issue, title |
sort_dir | asc or desc |
Response includes next: URL for the next 500 (or your limit) results, or null if no more.
GET /search
Same as /list but q is required for full-text search.
GET /filters
Returns distinct countries, parties, and issues for filter dropdowns.
GET /release/{id}/sentences
Topic code for each sentence of one press release. The first request classifies that release and caches the result; later requests are a lookup. The Texts page calls this when “Show text” is opened.
GET /download
CSV export. Max 1,000 rows. Use cols to select columns. For larger exports, use /list with pagination via next.
Example
GET /list?token=YOUR_TOKEN&q=climate&country=Germany&fields=date,party,title,text&limit=500
Returns up to 500 results. If total > 500, the response includes next with the URL for the next batch.