API V2 Documentation
Public service stories for specific office types
- URL Scheme
- /stories/police/officetype/name [/media]
Arguments
name | type | description | default |
---|---|---|---|
media | string | requested media type | optional |
name | string | requested officetype | optional |
Following types are available:
Office type | parameter to be called |
---|---|
Polizei | polizei |
Feuerwehr | feuerwehr |
Bundesbehörden | bundesbehoerden |
Staatsanwaltschaft | staatsanwaltschaft |
Zoll | zoll |
THW | thw |
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/officetype/zoll?api_key=yourapikey https://api.presseportal.de/api/v2/stories/police/officetype/feuerwehr/image?api_key=yourapikey