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.

Open interactive API docs →

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.

ParameterDescription
fieldsComma-separated columns to return. Options: id, date, country, party, document_issue, title, text, url, parlgov_party_id
qFull-text search (keywords)
countryFilter by country
partyFilter by party
issueFilter by CAP issue
date_fromDate from (YYYY-MM-DD)
date_toDate to (YYYY-MM-DD)
limitResults per page (1–500, default 25)
offsetSkip N results (for pagination)
sort_bydate, country, party, document_issue, title
sort_dirasc 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.