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 getPlatforms
This function returns the full list of platforms available for the selected instance. The identifier of a platform is also its id_section. There is no difference between a platform or section (category) in terms of identifiers. The platform is just the first level in the hierarchy.
http://api2.softonic.com/<inst>/section_getPlatforms/<id_section>.<format>?key=YOUR_API_KEY
Parameters
- <inst>: Softonic instance (en, es, it, pt ...)
- <format>: XML, JSON or PHP
XML response sample
http://api2.softonic.com/en/section_getPlatforms/2.xml?key=API_KEY&results=2
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok" total_items="6">
<platforms>
<platform>
<id_section>2</id_section>
<name>Windows</name>
</platform>
<platform>
<id_section>1177</id_section>
<name>Phones</name>
</platform>
<platform>
<id_section>2900</id_section>
<name>Web Apps</name>
</platform>
<platform>
<id_section>724</id_section>
<name>Mac</name>
</platform>
<platform>
<id_section>1020</id_section>
<name>Palm OS</name>
</platform>
<platform>
<id_section>1111</id_section>
<name>Pocket PC</name>
</platform>
</platforms>
</response>
JSON response sample
http://api2.softonic.com/en/section_getPlatforms/2.json?key=API_KEY&results=2
{
"status":"ok",
"total_items":6,
"platforms":[
{
"platform":{
"id_section":2,
"name":"Windows"
}
},
{
"platform":{
"id_section":1177,
"name":"Phones"
}
},
{
"platform":{
"id_section":2900,
"name":"Web Apps"
}
},
{
"platform":{
"id_section":724,
"name":"Mac"
}
},
{
"platform":{
"id_section":1020,
"name":"Palm OS"
}
},
{
"platform":{
"id_section":1111,
"name":"Pocket PC"
}
}
]
}
Copyright Softonic © 2009-2012 - All rights reserved
Softonic