GEThttps://onlinesim.io/api/getTariffs.php
Get information about tariffs for "SMS receiving" service
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 in the user dashboard.
.png)
Parameters
query7
| Name | Type | Description |
|---|---|---|
locale_price | string | Price charged for the service in the currency of your profile (USD by default) |
country | string | Country code (according to countries list) |
filter_country | string | Filter for countries (discards country objects not related to the target country, leaving only the requested one) |
filter_service | string | Filter for service (discards service objects not related to the target one, leaving only the requested one) |
count | string | Number of services displayed on one page of the response |
page | string | Page of the tariff list (pagination navigation) |
lang | string | Response language:
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 Enum: frderuenzhDefault:ru |
Responses
200Successful response (with response: "1") or an error (with response: "ERROR_CODE")
Successful response (with response: "1") or an error (with response: "ERROR_CODE")
schemaoneOf
[0]object
[1]object
Examples
List of tariffs provided
Successful response
{
"response": "1",
"countries": {
"_7": {
"name": "Russia",
"original": "russia",
"code": 7,
"pos": 0,
"other": false,
"new": false,
"enable": true
}
},
"services": {
"_vkcom": {
"id": 1,
"count": 3721,
"price": "0.55",
"service": "VKontakte",
"slug": "vkcom"
}
},
"favorite_countries": {},
"favorite_services": [],
"page": 1,
"country": 7,
"filter": "",
"end": false,
"favorites": {}
}