:telephone: FonoApi - Mobile Device Description API
https://fonoapi.freshpixl.com/
This is an API which can provide mobile device descriptions such as model, brand, CPU, GPU, dimensions, release date etc. It might be helpful if you are building a website like GSMAera, Phonearena or something similar. This API contains a database of a mobile device descriptions of Android, iOS and some old phones too.. :D
This is the PHP class to communicate with the API. It would be nice if someone can help with other languages though. ;)
API URL: https://fonoapi.freshpixl.com/v1/
getdevice
(https://fonoapi.freshpixl.com/v1/getdevice)Available options
You will need a token to access the Api. no registration, nothing, just grab the key.
You can get it here https://fonoapi.freshpixl.com/token/generate
getlatest
(https://fonoapi.freshpixl.com/v1/getlatest)Available options
Note: the API will return only 100 devices per request
Install the package in your PHP project:
$ composer require shakee93/fonoapi
<?php
use Shakee93\Fonoapi\FonoApi;
require __DIR__.'/vendor/autoload.php';
$apiKey = "xxxxxxxx"; // get your token key here - https://fonoapi.freshpixl.com
$fonoapi = FonoApi::init($apiKey);
try {
$res = $fonoapi::getDevice("i9305"); // the device you need to get details here
foreach ($res as $mobile) {
if (!empty($mobile->DeviceName)) echo "Device : ". $mobile->DeviceName . "<br>";
if (!empty($mobile->Brand)) echo "Brand : ". $mobile->Brand . "<br>";
if (!empty($mobile->cpu)) echo "Cpu : " . $mobile->cpu . "<br>";
if (!empty($mobile->status)) echo "Status : " . $mobile->status . "<br>";
if (!empty($mobile->dimensions)) echo "Dimensions : " . $mobile->dimensions . "<br>";
if (!empty($mobile->_4g_bands)) echo "4g : " .$mobile->_4g_bands . "<br>";
}
} catch (Exception $e) {
echo "ERROR : " . $e->getMessage();
}
curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST -H 'Accept: application/json' -d 'token=YOUR_TOKEN_HERE&limit=5&device=A8'
Library is here : https://github.com/jesusperiago/fonoapi
Library is here : https://github.com/shakee93/fonoapi/tree/master/fonoapi-js
Library is here : https://github.com/mtrung/fonoapi/tree/master/fonoapi-nodejs
Package is here : https://www.npmjs.com/package/fonoapi-nodejs
Library is here : https://github.com/aafanasev/fonoapi-client
Check here : https://github.com/shakee93/fonoapi/blob/master/resultset.md