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.

Service list

Parameters

query7
NameTypeDescription
locale_pricestring

Price charged for the service in the currency of your profile (USD by default)

countrystring

Country code (according to countries list)

filter_countrystring

Filter for countries (discards country objects not related to the target country, leaving only the requested one)

filter_servicestring

Filter for service (discards service objects not related to the target one, leaving only the requested one)

countstring

Number of services displayed on one page of the response

pagestring

Page of the tariff list (pagination navigation)

langstring

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

Enum:frderuenzhDefault:ru

Responses

200

Successful response (with response: "1") or an error (with response: "ERROR_CODE")

Content-Typeapplication/json
Schema
schemaoneOf

Successful response for getTariffs or a common error

One Of
[0]object
[1]object

Examples

List of tariffs providedexample_lines

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": {}
}

Code Samples

Generating examples...