URL
https://onlinesim.ru/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.ru/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.ru/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
Name of parameter | Parameter | Type of data | Description |
---|---|---|---|
country | non-required | STRING | Without parameter - 7 All countries - all 7 - Россия 380 - Украина 49 - Германия 44 - Британия 33 - Франция 34 - Испания 46 - Швеция 31 - Нидерланды 359 - Болгария 212 - Марокко 91 - Индия 45 - Дания 351 - Португалия 62 - Индонезия 357 - Кипр 1000 - Канада Virtual 1 - США 420 - Чехия 48 - Польша 40 - Румыния 63 - Филиппины 998 - Узбекистан 84 - Вьетнам 371 - Латвия 370 - Литва 372 - Эстония 381 - Сербия 373 - Молдова 995 - Грузия 996 - Киргизия 77 - Казахстан 55 - Бразилия 52 - Мексика 54 - Аргентина 90 - Турция 20 - Египет 972 - Израиль 967 - Йемен 852 - Гонконг 234 - Нигерия 353 - Ирландия 225 - Кот-д’Ивуар 233 - Гана 232 - Сиерре Лионе 254 - Кения 509 - Гаити 886 - Тайвань 58 - Венесуэла 57 - Колумбия 60 - Малайзия 504 - Гондурас 92 - Пакистан 226 - Буркина-Фасо 220 - Гамбия 992 - Таджикистан 964 - Ирак 98 - Иран 994 - Азербайджан 93 - Афганистан 591 - Боливия 231 - Либерия 94 - Шри-Ланка 976 - Монголия 977 - Непал 223 - Мали 235 - Чад 358 - Финляндия 224 - Гвинея 30 - Греция 65 - Сингапур 375 - Белоруссия 32 - Бельгия 237 - Камерун 39 - Италия 593 - Эквадор 966 - Саудовская Аравия 41 - Швейцария 66 - Тайланд 962 - Иордания 389 - Северная Македония 51 - Перу 505 - Никарагуа 249 - Судан 503 - Сальвадор 256 - Уганда 260 - Замбия 265 - Малави 245 - Гвинея Бисау 222 - Мавритания 216 - Тунис 228 - Того 221 - Сенегал 43 - Австрия 385 - Хорватия 86 - Китай 856 - Лаос |
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}... |
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 |