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
Name of parameter | Parameter | Type of data | Description |
---|---|---|---|
country | non-required | STRING | Without parameter - 7 All countries - all 7 - Russia 380 - Ukraine 49 - Germany 44 - Britain 33 - France 34 - Spain 46 - Sweden 31 - Netherlands 359 - Bulgaria 48 - Poland 212 - Morocco 91 - India 45 - Denmark 351 - Portugal 62 - Indonesia 357 - Cyprus 1000 - Canada Virtual 1 - USA 420 - Czech 40 - Romania 63 - Philippines 998 - Uzbekistan 84 - Vietnam 371 - Latvia 370 - Lithuania 372 - Estonia 381 - Serbia 373 - Moldova 995 - Georgia 996 - Kyrgyzstan 77 - Kazakhstan 55 - Brazil 254 - Kenya 52 - Mexico 54 - Argentina 90 - Turkey 20 - Egypt 972 - Israel 967 - Yemen 852 - Hong Kong 234 - Nigeria 353 - Ireland 225 - Ivory Coast 233 - Ghana 232 - Sierre Lyone 509 - Haiti 886 - Taiwan 58 - Venezuela 57 - Colombia 60 - Malaysia 504 - Honduras 235 - Chad 226 - Burkina Faso 92 - Pakistan 220 - Gambia 992 - Tajikistan 964 - Iraq 98 - Iran 994 - Azerbaijan 93 - Afghanistan 591 - Bolivia 231 - Liberia 94 - Sri Lanka 976 - Mongolia 977 - Nepal 223 - Mali 358 - Finland 224 - Guinea 66 - Thailand 30 - Greece 65 - Singapore 375 - Belorussia 32 - Belgium 237 - Cameroon 39 - Italy 593 - Ecuador 966 - Saudi Arabia 41 - Switzerland 962 - Jordan 389 - North Macedonia 51 - Peru 505 - Nicaragua 249 - Sudan 503 - Salvador 256 - Uganda 260 - Zambia 265 - Malawi 245 - Guinea Bissau 222 - Mauritania 216 - Tunisia 228 - Togo 221 - Senegal 43 - Austria 385 - Croatia 86 - China 856 - Laos 95 - Myanma |
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 |