Documentation
Informations about a specific public service office
- URL Scheme
- /info/office/id
Arguments
name | type | description | default |
---|---|---|---|
id | int | id of the office | required |
URL Parameters
name | type | description | default |
---|---|---|---|
api_key | string | your api_key | required |
format | string | output format xml/json | xml |
Response
name | type | description |
---|---|---|
success | int | successful request 1/0 |
error | array | if error was not successfull, ths node contains error code and error msg |
request | array | information about the request, when successfull |
office | array | More extented informations about the public service office |
Request example
https://api.presseportal.de/api/info/office/6337?api_key=yourapikey
https://api.presseportal.de/api/info/office/69791?api_key=yourapikey&format=json
Response example
<?xml version="1.0" encoding="UTF-8"?>
<response>
<success>1</success>
<request>
<uri>https://presseportal.de/api/info/office/6337</uri>
<format>xml</format>
<office>6337</office>
</request>
<office>
<id>6337</id>
<url>https://www.presseportal.de/polizeipresse/pm/6337/polizei_hamburg/api</url>
<name>Polizei Hamburg</name>
<shortname>POL-HH</shortname>
<rss>https://www.presseportal.de/rss/dienststelle_6337.rss2</rss>
<logo>https://www.presseportal.de/logo/6337</logo>
<homepage>www.polizei.hamburg.de</homepage>
</office>
</response>