Price of a number for a service
GEThttps://onlinesim.io/api/getPrice.php
Price (USD) of one number of the country for the service. A service without its own price in this country gets
the country's price for "other services". POST with the same parameters works too.
Security
Parameters
query3
| Name | Type | Description |
|---|---|---|
service* | string | Service slug from the service list. The value is lowercased and |
country | integer | Country code. Default: the country saved in the profile settings |
lang | string | Language of the texts in the answer (country and service names, status texts): Enum: frderuenzh |
Responses
200Price or an error
application/jsonschemaoneOf
[0]object
[1]object
[2]object
Examples
Price
{
"response": "1",
"price": 0.36
}Unknown country
{
"response": "UNDEFINED_COUNTRY"
}429HTTP 429: more than 400 requests per minute from one profile (from one IP for requests without a key), or more than 200 requests per minute from one profile to getNum, getPrice, getState and setOperationOk together
application/jsonschemaobject
Examples
Request rate limit exceeded
{
"response": "TRY_AGAIN_LATER"
}456HTTP 456: the API key is invalid or the OAuth token has expired. Public methods answer the same way when an invalid key is sent
application/jsonschemaobject
Examples
Invalid API key or expired token
{
"response": "ERROR_WRONG_KEY"
}