getNumbersStats


URL

https://onlinesim.io/api/getNumbersStats.php?apikey=APIKEY

To obtain the relevant statistics by country and number

Example

  • javascript
    var settings = {
        "async": true,
        "crossDomain": true,
        "url": "https://onlinesim.io/api/getNumbersStats.php?apikey=APIKEY",
        "method": "GET",
        "headers": {"accept": "application/json"}
    }
    $.ajax(settings).done(function (response) {
        console.log(response);
    });
  • php
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://onlinesim.io/api/getNumbersStats.php?apikey=APIKEY",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_SSL_VERIFYHOST => false,
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_HTTPHEADER => [
            "Content-Type: application/json",
        ]
    ));
    $response = curl_exec($curl);
    curl_close($curl);
    var_dump(json_decode($response, true));

statistics on numbers

Parameters

Name of parameter Parameter Type of data Description
country non-required STRING Without parameter - 7

All countries - all@add_countries

Result

After the successful completion, you will get a response in the JSON format, in the following form:

json {"7":{"name":"russia","services":{"0":{"count":null,"popular":true,"price":23,"id":0,"service":"Вконтакте","slug":"VKcom"},"1":{"count":22,"popular":true,"price":2,"id":1,"service":"Facebook","slug":"3223"}

Result Description
[code: name, ..., services: [code: {count, popular, price, id, service, slug}]] The array of available services and countries, in format: code: {Name of the country, services: {order number: { count(null - no data), popular or not, price, service id, service name, service code for getNum}...

Description

Parameter Description
name country name
position Position in the list on the website
code country code, need to order via getNum
new if true, the country was recently added
enabled Enabled country
services Array with the list of available Services
Parameter Description
count Number of available rooms is updated once per minute
popular a popular service or not
price purchase Price
id ID to generate a list
service service name
slug slug for the order via getNum
image: the path to the picture