get getTariffs

https://onlinesim.io/api/getTariffs.php
single-service activations

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.

Service list

Servers

https://onlinesim.io
Onlinesim server

Parameters

locale_price
Price charged for the service in the currency of your profile (USD by default)
In: query
Schema:
  • string
    Example: "string"
country
Country for which you want to get a tariff list for single-service activations
In: query
Schema:
  • string
    Example: "string"
filter_country
Filter for country
In: query
Schema:
  • string
    Example: "string"
filter_service
Filter for service
In: query
Schema:
  • string
    Example: "string"
count
Filter for count
In: query
Schema:
  • string
    Example: "string"
page
Page of the tariff list (pagination navigation)
In: query
Schema:
  • string
    Example: "string"
lang

Response 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: query
Schema:
  • string
    Example: "en"
    Enum: fr de ru en zh

Responses

200

OK
Content Type:
application/json
  • Schema
  • object
    Example: {"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
      mixed
      1, if the request has been completed successfully, or an error message
      Example: 1
      One Of:
      • integer
        Example: 0
      • string
        Example: "string"
    • countries
      object
      Example: {"country_code":{"name":"string","original":"string","code":0,"pos":0,"other":true,"new":true,"enable":true}}
    • services
      object
      Example: {"service_name":{"id":0,"count":0,"price":"string","service":"string","slug":"string"}}
    • favorite_countries
      object
      List of favorite countries (country can be added to your favorites in the user dashboard by clicking pin icon in the country list)
      Example: {}
    • favorite_services
      array
      Example: [{}]
      Items:
      • object
        List of favorite services (service can be added to your favorites in the user dashboard by clicking pin icon in the service list)
        Example: {}
    • page
      integer
      Pagination index (for navigation)
      Example: 0
    • country
      integer
      Selected country
      Example: 0
    • filter
      string
      List of enabled filters
      Example: "string"
    • end
      boolean
      Check if this page is the last one (auxiliary parameter for navigation)
      Example: true
    • favorites
      object
      Favorites list
      Example: {}