Skip to main content

documents/all

Retrieves a paginated list of all the documents that are live and approved within the Platform.

Arguments:

  • api_key (required)
  • per_page (optional - default 25)
  • page (optional - default 1)

Example request:

http:/[domain]/api/documents/all.xml?api_key=[api_key]&per_page=10&page=1

Example response:

<?xml version="1.0" encoding="utf-8"?>
<documents page="1" pages="162" per_page="10" total="1618">
<document id="66" pages="1" visible="true">
<title>Councils in Greater Manchester</title>
<date>1263480553</date>
<categories>
<category id="100004" name="Category one"/>
</categories>
</document>
<document id="67" pages="4" visible="true">
<title>Comments, compliments and complaints</title>
<date>1300201434</date>
<categories>
<category id="200025" name="Category one"/>
</categories>
</document>
<document id="69" pages="1" visible="true">
<title>How to use this website</title>
<date>1283353336</date>
<categories>
<category id="200116" name="Category one"/>
</categories>
</document>
</documents>