This API is currently in -BETA- and as such is constantly changing. We could love to hear your feedback, suggestions, comments, and bug reports so please let us know if you have anything to say.
We built this API so that developers can get access to our data without directly interacting with the main website. We primarily expect this to be used by app developers, but welcome (most) other uses as well. If you have any suggestions for any features you think would be beneficial please let us know.
description of how to use the API
androidfilehost.com/api/?action=[method][¶m=value optional]
A JSON array is always returned. There are always values for status, code, and message. If there are any values returned they will be in a data field.
-status
-code
-message
-data (optional)
The device method will return a list of all devices. If a UID (User ID) is provided it will return devices supported by that user only. The list is paginated, showing 25 per page by default.
androidfilehost.com/api/?action=devices
androidfilehost.com/api/?action=devices&uid=1234
androidfilehost.com/api/?action=devices&page=1&limit=25
The standard JSON array, plus an array of devices
-status
-code
-message
-data - an array of devices
The developers method will return a list of all developers. If a DID (Device ID) is provided it will return developers supporting that device only. The list is paginated, showing 25 per page by default.
androidfilehost.com/api/?action=developers
androidfilehost.com/api/?action=developers&did=1234
androidfilehost.com/api/?action=developers&page=1&limit=25
The standard JSON array, plus an array of developers
-status
-code
-message
-data - an array of developers
The update method will look for files marked as an OTA with an exact match in the ro_developerid, ro_board, ro_rom fields, and a ro_version number greater than the version submitted.
androidfilehost.com/api/?action=update&ro_developerid=1234&ro_board=m7ul&ro_rom=SampleRom&ro_version=20130101.0101
The standard JSON array, plus an array of files
-status
-code
-message
-data - an array of files
This method will return any files and subfolders that are in the folder ID that you submitted. If the folder is hidden or protected it will only show the files or subfolders that you have access to. You will need to be logged in access those files.
androidfilehost.com/api/?action=folder&flid=1234
androidfilehost.com/api/?action=folder&flid=1234&api_key=000aaa000aaa&uid=56789
The standard JSON array, plus an array of files and subfolders if there are any
-status
-code
-message
-data/files - an array of files (if any)
-data/subfolders - an array of subfolders (if any)
An object that contains information about the requested device. Usually part of a collection.
An object that contains information about the requested folder. Usually part of a collection. May contain other subfolders and files.
An object that contains information about the requested file. Usually part of a collection.