You are here:
Softonic API
-
Softonic API
-
Resources
-
API Methods
- testEcho
Api
- getHotSoftware
- getHomeChoice
Latest
- getPlatforms
- getChildren
- getParents
- getPrograms
Section
- getInfo
- getRelated
- getScreenshots
- getOpinions
- getOpinion
- getFans
- getVideos
- getDownloadHistory
- getFreeDownloadUrl
Program
- Search
Search
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
- <inst>: Softonic instance (en, es, it, pt ...)
- <format>: XML, JSON or PHP
- <id_section>: A unique section id or a unique platform id.
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\/"
}
}
]
}
Copyright Softonic © 2009-2012 - All rights reserved
Softonic