API V2 Documentation
Public service stories for specific federal states
- URL Scheme
- /stories/police/federalstate/name [/media]
Arguments
name | type | description | default |
---|---|---|---|
media | string | requested media type | optional |
name | string | requested State | optional |
Following states can be called:
State | parameter to be called |
---|---|
Baden-Württemberg | baden-wuerttemberg |
Bayern | bayern |
Berlin-Brandenburg | berlin-brandenburg |
Bremen | bremen |
Hamburg | hamburg |
Hessen | hessen |
Mecklenburg-Vorpommern | mecklenburg-vorpommern |
Niedersachsen | niedersachsen |
Nordrhein-Westfalen | nordrhein-westfalen |
Rheinland-Pfalz | rheinland-pfalz |
Saarland | saarland |
Sachsen | sachsen |
Sachsen-Anhalt | sachsen-anhalt |
Schleswig-Holstein | schleswig-holstein |
Thüringen | thueringen |
URL Parameters
name | type | description | default |
---|---|---|---|
api_key | string | your api_key | required |
start | int | start/offset of the result article list | 0 |
limit | int | limit of articles in response | 50 |
lang | string | language of the stories | de |
encoded | int | request an additional node with a HTML-encoded story body | 0 |
Response
name | type | description | |
---|---|---|---|
success | int | successful request 1/0 | |
error | array | if call was not successful, this node contains error code and error msg. If the call succeeded, this node will not be delivered. | |
request | array | information about the request, when successful | |
content | array | list of stories, only when request successful. In case of error, this node will not be delivered | |
story | array | story data, see here for the details of the story node |
Example Request
https://api.presseportal.de/api/v2/stories/police/federalstate/hamburg?api_key=yourapikey https://api.presseportal.de/api/v2/stories/police/federalstate/hamburg/image?api_key=yourapikey