JavaScript PHP HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit a744e10 Apr 30, 2018
Permalink
Failed to load latest commit information.
fonoapi-js Update readme.md May 9, 2016
.gitignore fixed request url bug Mar 24, 2017
LICENSE Initial commit Feb 4, 2016
README.md typo fix Apr 30, 2018
demo.php Static init Used Mar 17, 2016
fonoapi-v1.php fixed request url bug Mar 24, 2017
resultset.md Rename resultse.md to resultset.md Jun 6, 2016

README.md

GitHub stars GitHub issues GitHub license

FonoApi - Mobile Device Description Api

  • Database Updated : 21st September 2016
  • Database Updated (New Devices Added) : 27th November 2016
  • Database Updated (Old Device Data Updated) : 27th November 2016
  • Database Updated (New Devices Added) : 4th January 2017
  • Database Updated (Old Device Data Updated) : 4th January 2017
  • Database Updated (New Devices Added) : 6th February 2017
  • Database Updated (Old Device Data Updated) : 6th February 2017
  • Database Updated (New Devices Added) : 3rd March 2017
  • Database Updated (Old Device Data Updated) : 3rd March 2017
  • Database Updated (New Devices Added) : 5th April 2017
  • Database Updated (Old Device Data Updated) : 5th April 2017
  • Database Updated : 8th May 2017
  • Database Updated : 10th July 2017
  • Database Updated : 10th August 2017
  • Database Updated : 15th September 2017
  • Database Updated : 15th October 2017
  • Database Updated : 17th November 2017
  • Database Updated : 12th December 2017
  • Database Updated : 22th January 2018
  • Database Updated : 23th February 2018
  • Database Updated : 30th April 2018

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 lke gsmarena, phonearena or something similar to that. this api contains a database of a mobile device descriptions of android, apple, ios and 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

Api Url : https://fonoapi.freshpixl.com/v1/

Method : getdevice (https://fonoapi.freshpixl.com/v1/getdevice)

available options

  • brand - pass the Mobile Device Brand (example : "samsung", "htc")
  • device* - pass nearly relevent mobile device name (example : "i9305", "A8") this might result multiple results at a time.
  • position - when a set of results is returned you can get a specific device by passing the position of your device on the result set. count starts from 0
  • token* -
Method : getlatest (https://fonoapi.freshpixl.com/v1/getlatest)

available options

  • brand - It gives the latest you can filter the brand (example : "samsung", "htc")
  • limit - limit the result count (Max 100)
  • token* -

NOTE : the Api will return only 100 devices per request


PHP Demo
<?php

	include_once("fonoapi-v1.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 Example
curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST -H 'Accept: application/json' -d 'token=YOUR_TOKEN_HERE&limit=5&device=A8'
Python

Library is here : https://github.com/jesusperiago/fonoapi

jQuery

Library is here : https://github.com/shakee93/fonoapi/tree/master/fonoapi-js

Nodejs

Library is here : https://github.com/mtrung/fonoapi/tree/master/fonoapi-nodejs
Package is here : https://www.npmjs.com/package/fonoapi-nodejs

Java

Library is here : https://github.com/aafanasev/fonoapi-client


Result Set Structure

Check here : https://github.com/shakee93/fonoapi/blob/master/resultset.md