Softonic API

Section getParents

This function returns the full path to a specific section. You can use this function to retrieve the immediate parent of a section or to create a full browseable breadcrumbs.

http://api2.softonic.com/<inst>/section_getParents/<id_section>.<format>?key=YOUR_API_KEY

Parameters

XML response sample

http://api2.softonic.com/en/section_getParents/179.xml?key=API_KEY&results=2

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok" total_items="4">
  <sections>
    <section>
      <id_section>2</id_section>
      <name>Windows</name>
      <url>http://en.softonic.com/</url>
    </section>
    <section>
      <id_section>149</id_section>
      <name>Internet software</name>
      <url>http://en.softonic.com/windows/internet-software</url>
    </section>
    <section>
      <id_section>178</id_section>
      <name>FTP</name>
      <url>http://en.softonic.com/windows/ftp-software</url>
    </section>
    <section>
      <id_section>179</id_section>
      <name>FTP Clients</name>
      <url>http://en.softonic.com/windows/ftp-clients</url>
    </section>
  </sections>
</response>

JSON response sample

http://api2.softonic.com/en/section_getParents/2.json?key=API_KEY&results=2

{
	"status":"ok",
	"total_items":1,
	"sections":[
		{
			"section":{
				"id_section":2,
				"name":"Windows",
				"url":"http:\/\/www.softonic.de\/"
			}
		}
	]
}