API V2 Documentation
Public service stories without any further restricitions
- URL Scheme
- /stories/police [/media]
Arguments
name | type | description | default |
---|---|---|---|
media | string | requested media type | optional |
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 Requests
https://api.presseportal.de/api/v2/stories/police?api_key=yourapikey https://api.presseportal.de/api/v2/stories/police/image?api_key=yourapikey&limit=5&teaser=1 https://api.presseportal.ch/api/article/police?api_key=yourapikey&encoded=1