get getTariffs
https://onlinesim.io/api/getTariffs.phpThis 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 in the user dashboard.
.png)
Servers
https://onlinesim.ioOnlinesim server
Security
Parameters
locale_pricePrice charged for the service in the currency of your profile (USD by default)
In:
querySchema:
- stringExample:
"string"
countryCountry for which you want to get a tariff list for single-service activations
In:
querySchema:
- stringExample:
"string"
filter_countryFilter for country
In:
querySchema:
- stringExample:
"string"
filter_serviceFilter for service
In:
querySchema:
- stringExample:
"string"
countFilter for count
In:
querySchema:
- stringExample:
"string"
pagePage of the tariff list (pagination navigation)
In:
querySchema:
- stringExample:
"string"
langResponse language:
fr - French,
de - German,
ru - Russian,
en - English,
zh - Chinese. Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English.
In:
querySchema:
- stringExample:
"en"Enum:frderuenzh
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:responsemixed1, if the request has been completed successfully, or an error messageExample:1One Of:- integerExample:
0 - stringExample:
"string"
countriesobjectExample:{"country_code":{"name":"string","original":"string","code":0,"pos":0,"other":true,"new":true,"enable":true}}servicesobjectExample:{"service_name":{"id":0,"count":0,"price":"string","service":"string","slug":"string"}}favorite_countriesobjectList of favorite countries (country can be added to your favorites in the user dashboard by clicking pin icon in the country list)Example:{}favorite_servicesarrayExample:[{}]Items:- objectList of favorite services (service can be added to your favorites in the user dashboard by clicking pin icon in the service list)Example:
{}
pageintegerPagination index (for navigation)Example:0countryintegerSelected countryExample:0filterstringList of enabled filtersExample:"string"endbooleanCheck if this page is the last one (auxiliary parameter for navigation)Example:truefavoritesobjectFavorites listExample:{}