get getNumbersStats
https://onlinesim.io/api/getNumbersStats.phpThis request retrieves detailed information on quantity of numbers in terms of countries and services from Onlinesim server.
You can use this request to monitor prices for a certain service to gain more benefit of its purchase or keep track on when numbers of particular countries will be available again (if they were disabled previously or ran out of stock).
It is actually a representation of a service list ("Buy a number" section) located on the main page.
.png)
Security
Parameters
countryCountry code (Е.164 standard, without "+" sign), see getNumbersStats
query- integerExample:
46>= 1
langResponse language: fr - French, de - German, ru - Russian, en - English, zh - Chinese
query- stringExample:
"en"Enum:frderuenzh
Responses
200
DEPRECATED, use getTariffs instead. Successful response for
getNumbersStatsrequest: the server returns lists of available numbers by countries and services or throws an exception.
- Schema
- Examples
- objectgetNumbersStats modelExample:
{"name":"sweden","position":1,"code":46,"other":7.5,"new":true,"enabled":true,"services":{"service_#name#":{"count":281,"popular":true,"code":46,"price":14,"id":4,"service":"Вконтакте","slug":"vkcom"}}}Properties:namestringRequiredCountry name, to which mobile number belongsExample:"sweden"positionintegerRequiredPosition of a country in the list of our websiteExample:1>= 0codeintegerRequiredCountry code (Е.164 standard, without "+" sign)Example:46>= 1othernumberRequiredPrice for "Other sites" serviceExample:7.5newbooleanRequiredCountry was recently added to the listExample:trueenabledbooleanRequiredAvailability of virtual numbers of a countryExample:trueservicesobjectList of services available for order on numbers of the current countryExample:{"service_#name#":{"count":281,"popular":true,"code":46,"price":14,"id":4,"service":"Вконтакте","slug":"vkcom"}}