Denmark Speeches

v0.1.0
io.github.pipeworx-io/denmark-speeches Checked 2 days ago Published 3 days ago

Danish parliamentary speeches -- who said what in the Folketing chamber, searchable.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dk_speeches_by_member

Speeches given in the Danish Parliament (Folketing) chamber by one member, newest first, with party, date, agenda item, the bill or debate number (case_ref) with a link to the Folketing case page, word count and the opening of each speech. Resolve the speaker by name (spelling-tolerant; a name that matches nobody returns found:false with the nearest names) or by Folketing actor id, which every row also carries so it joins to folketinget_dk_* and dk_resolve_person. Covers 2014-10-07 to 2022-06-07 (947 sittings); the response states the coverage. Danish text.

ParameterTypeDescription
actor_idnumberFolketing actor id (from folketinget_dk_find_actor); use instead of member.
fromstringISO date, earliest speech to include.
include_chairbooleanInclude speeches given as chair of the sitting (default true). Set false for substantive speeches only.
limitnumberRows per call (default 20, max 50).
memberstringMember name, e.g. "Mette Frederiksen" or "Pia Kjærsgaard".
offsetnumberRows to skip, for paging (use next_offset).
tostringISO date, latest speech to include.

dk_speeches_in_debate

Every speech in one Folketing debate: pass the bill, motion or debate number (case, e.g. "L 71", "B 12", "F 57", with session such as 20211 when the number is old) and/or a sitting date. Returns each agenda item with its speeches in order, speaker, party, Folketing actor id and the speech text (truncated per speech; max_chars). With a case, also returns the Folketing case id (sag_id) from its open data when available. Covers 2014-10-07 to 2022-06-07; the response states the coverage. Danish text.

ParameterTypeDescription
casestringBill (L), motion (B) or debate (F) number, e.g. "L 71". Numbers restart each session.
datestringSitting date, ISO. With no case, returns every agenda item of that day.
limitnumberMax speeches returned (default 40, max 100).
max_charsnumberMax characters of text per speech (default 1200). Use dk_speech_get for a full speech.
sessionstringFolketing session code, e.g. "20211" for 2021-22. Needed when the number exists in several sessions.

dk_speech_get

One Danish chamber speech in full, by speech_id (e.g. "ParlaMint-DK_20220607130013") or numeric speech_seq from any dk_speeches_* row. Returns the whole text, the speaker with party, birth date, ministerial terms and Folketing actor id, and the sitting, agenda item and bill or debate number.

ParameterTypeDescription
speech_id *stringspeech_id or speech_seq from a dk_speeches_* result.