Skip to main content

councillors/allcouncillorsforparty

Retrieves the details for all councillors of a specified political party.

Arguments:

  • api_key (required)
  • partyID (required)
  • per_page (optional - default 10)
  • page (optional - default 1)

Example request:

http://[domain]/api/councillors/councillorsforparty.xml?
api_key=[api_key]&partyID=2&per_page=1&page=70

Example response:

<?xml version="1.0" encoding="utf-8"?>
<councillors page="70" pages="86" per_page="1" total="86">
<councillor id="232">
<name>Suzannah Reeves</name>
<address>8 Example Grove, MANCHESTER, M20 3AA</address>
<telephone>07535 000 000</telephone>
<email>cllr.s.reeves@mysite.gov.uk</email>
<party>Labour</party>
<imageURL>http://mysite.co.uk/images/one.jpg</imageURL>
<ward>Old Moat</ward>
<position>None</position>
</councillor>
</councillors>