get getTariffs
https://onlinesim.io/api/getTariffs.php
This request will provide you Onlinesim tariff list for single-service activations.
It is actually a representation of a service list ("Buy a number" section) located on the main page.
Servers
https://onlinesim.io
Onlinesim server
Security
Parameters
locale_price
Price charged for the service in the currency of your profile (USD by default)
In:
query
Schema:
- stringExample:
"string"
country
Country for which you want to get a tariff list for single-service activations
In:
query
Schema:
- stringExample:
"string"
filter_country
Filter for country
In:
query
Schema:
- stringExample:
"string"
filter_service
Filter for service
In:
query
Schema:
- stringExample:
"string"
count
Filter for count
In:
query
Schema:
- stringExample:
"string"
page
Page of the tariff list (pagination navigation)
In:
query
Schema:
- stringExample:
"string"
lang
Response language: fr
- French, de
- German, ru
- Russian, en
- English, zh
- Chinese
In:
query
Schema:
- stringExample:
"en"
Enum:fr
de
ru
en
zh
Responses
200
OK
Content Type:
application/json
- Schema
- objectExample:
{"response":1,"countries":{"country_code":{"name":"string","original":"string","code":0,"pos":0,"other":true,"new":true,"enable":true}},"services":{"service_name":{"id":0,"count":0,"price":"string","service":"string","slug":"string"}},"favorite_countries":{},"favorite_services":[{}],"page":0,"country":0,"filter":"string","end":true,"favorites":{}}
Properties:response
mixed1, if the request has been completed successfully, or an error messageExample:1
One Of:- integerExample:
0
- stringExample:
"string"
countries
objectExample:{"country_code":{"name":"string","original":"string","code":0,"pos":0,"other":true,"new":true,"enable":true}}
services
objectExample:{"service_name":{"id":0,"count":0,"price":"string","service":"string","slug":"string"}}
favorite_countries
objectList of favorite countries (based on recent purchases)Example:{}
favorite_services
arrayExample:[{}]
Items:- objectList of favorite services (based on recent purchases)Example:
{}
page
integerPagination index (for navigation)Example:0
country
integerSelected countryExample:0
filter
stringList of enabled filtersExample:"string"
end
booleanCheck if this page is the last one (for pagination)Example:true
favorites
objectFavorites listExample:{}