Skip to main content

categories/top

Retrieve details of all top level categories only.

Arguments:

  • api_key (required)

Example request:

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

Example response:

<?xml version="1.0" encoding="utf-8"?>
<categories>
<category id="20000" name="Category One"
narrower_items="3" broader_items="0"/>
<category id="20001" name="Category Two"
narrower_items="3" broader_items="0"/>
<category id="20002" name="Category Three"
narrower_items="5" broader_items="0"/>
<category id="20003" name="Category Four"
narrower_items="0" broader_items="0"/>
<category id="20004" name="Category Five"
narrower_items="0" broader_items="0"/>
<category id="20037" name="Another Cat"
narrower_items="0" broader_items="0"/>
</categories>