Skip to main content

categories/{id}/parents

Retrieves all of the parent categories for the specified child category id.

Arguments:

  • api_key (required)
  • id (required)

Example request:

http://[domain]/api/categories/354/parents.xml?api_key=[api_key]

Example response:

<?xml version="1.0" encoding="utf-8"?>
<categories parent="354">
<category id="200033" name="Councillors, democracy and elections">
<broaderItem category_id="100004"/>
</category>
<category id="200100" name="Unitary authorities">
<broaderItem category_id="100004"/>
</category>
</categories>