Skip to content

Instantly share code, notes, and snippets.

@pixelmord
Forked from stefanw/bundestag-api.md
Last active August 29, 2015 14:25
Show Gist options
  • Save pixelmord/9fd6a247d0606025528a to your computer and use it in GitHub Desktop.
Save pixelmord/9fd6a247d0606025528a to your computer and use it in GitHub Desktop.

Bundestag XML API

The German parliament iPhone app "Bundestag" uses XML endpoints at bundestag.de to get fresh data. This guide lists them.

Authentication

Since version 4.2 the iPhone app requires an HTTP basic auth header for new endpoints. For backwards compatibility some old endpoints don't require authentication.

The authentication credentials are:

For version 4.2:

Username: IOS_APP_v4.2.0

Password: 4vbw*x4t9waefhCtzxlJCQ*

User-Agent: Bundestag 4.2 rv:310 (iPhone; iPhone OS 6.1.3; de_DE)

For version 4.2.1:

Username: IOS_APP_v4.2.1

Password: RjKtvXnR6EhX8/xqJGRvQcFGDFWoGGTD

User-Agent: Bundestag 4.2.1 rv:327 (iPhone; iPhone OS 7.0.2; de_DE)

The User-Agent header is not checked.

Endpoints that don't require authentication

https://www.bundestag.de/xml/plenum/index.xml

https://www.bundestag.de/xml/besuche/aktuell/index.xml

https://www.bundestag.de/xml/besuche/index.xml

https://www.bundestag.de/xml/impressum/index.xml

https://www.bundestag.de/includes/datasources/tv.xml

https://www.bundestag.de/includes/datasources/tv2.xml

Example of a biography:

http://www.bundestag.de/xml/mdb/biografien/F/flosbach_klaus_peter.xml

Endpoints that require authentication

https://www.bundestag.de/xml/aktuell/index.xml

https://www.bundestag.de/xml/ausschuesse/index.xml

https://www.bundestag.de/xml/mdb/index.xml

https://www.bundestag.de/xml/mdb/mdbteaser/index.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment