Welcome to the AndroidFileHost API

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.

Usage

description of how to use the API

androidfilehost.com/api/?action=[method][&param=value optional]

Returns

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)

Methods

devices

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.

Parameters

Example Usage, return all devices

androidfilehost.com/api/?action=devices

Example Usage, return all devices from a specific developer

androidfilehost.com/api/?action=devices&uid=1234

Example Usage, specify number returned per page and page number

androidfilehost.com/api/?action=devices&page=1&limit=25

Returns

The standard JSON array, plus an array of devices

-status
-code
-message
-data - an array of devices


developers

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.

Parameters

Example Usage, return all developers

androidfilehost.com/api/?action=developers

Example Usage, return all developers supporting a specific device

androidfilehost.com/api/?action=developers&did=1234

Example Usage, specify number returned per page and page number

androidfilehost.com/api/?action=developers&page=1&limit=25

Returns

The standard JSON array, plus an array of developers

-status
-code
-message
-data - an array of developers


update

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.

Parameters

Example Usage

androidfilehost.com/api/?action=update&ro_developerid=1234&ro_board=m7ul&ro_rom=SampleRom&ro_version=20130101.0101

Returns

The standard JSON array, plus an array of files

-status
-code
-message
-data - an array of files


folder

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.

Parameters

Example Usage, normal use

androidfilehost.com/api/?action=folder&flid=1234

Example Usage, with an API key

androidfilehost.com/api/?action=folder&flid=1234&api_key=000aaa000aaa&uid=56789

Returns

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)


Objects

device

An object that contains information about the requested device. Usually part of a collection.

Fields


folder

An object that contains information about the requested folder. Usually part of a collection. May contain other subfolders and files.

Fields


file

An object that contains information about the requested file. Usually part of a collection.

Fields