SMSOnline API Doc
  1. Lookup
SMSOnline API Doc
  • Preparation
  • FAQ
  • V3
    • Customer API
      • Payments
        • Cryptocurrency via Cryptomus
          • Create new payment
          • Get direct wallet
          • Get transaction status
        • Credit Card via Pay4bit
          • Create new payment
      • Favourites
        • Get favourite services
        • Toggle favourite status
      • Get Account Balance
      • Get invoices
      • Get Coupons
    • Phones API
      • Lookup API
        • Get service list by country and carrier
        • Get service detail by country and carrier
      • Inventory API
        • Get inventory
      • Order API
        • Order a number
        • Get order data
        • Change order status
      • Get Popular list
      • Get all available countries/carriers
    • Statistics API
      • Get statistics
  • V2(Deprecated)
    • Warning: V2 API is deprecated
    • Account
      • Get Balance
      • Make a top-up with crypto
      • (Get direct wallet address) Make a top-up with crypto
    • Lookup
      • Get Available Countries
        GET
      • Get Available Services
        GET
      • Get Service Details
        GET
      • Get the country stats with success rates
        GET
    • Manage phone numbers
      • Purchase Number
      • Return Number
      • Request Another SMS
      • Get Status of A Single Number
      • Get Bulk Status of Numbers With Conditions
  1. Lookup

Get Available Countries

GET
https://api.smsonline.cloud/cs/getAvailableCountries
This API endpoint returns a list of currently available countries.

Request

Query Params
userId
string 
required
User Id linked to API key
Example:
{{userid}}
key
string 
required
API key
Example:
{{APIKey}}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.smsonline.cloud/cs/getAvailableCountries?userId={{userid}}&key={{APIKey}}'

Responses

🟢200Success
application/json
If the request is completed successfully, a 200 response code is returned.
Body
error
boolean 
required
If the request fails, the status will be true.
body
array [object {2}] 
required
country
string 
required
Display name
code
integer 
required
Country Code: Used for the order request.
Example
{
    "error": false,
    "body": [
        {
            "country": "United Kingdom",
            "code": 16
        },
        {
            "country": "United States",
            "code": 12
        },
        {
            "country": "Canada",
            "code": 36
        },
        {
            "country": "France",
            "code": 78
        },
        {
            "country": "Germany",
            "code": 43
        },
        {
            "country": "Sweden",
            "code": 46
        },
        {
            "country": "Spain",
            "code": 56
        },
        {
            "country": "Italy",
            "code": 86
        },
        {
            "country": "India",
            "code": 22
        },
        {
            "country": "Mexico",
            "code": 54
        },
        {
            "country": "Ukraine",
            "code": 1
        },
        {
            "country": "Australia",
            "code": 175
        },
        {
            "country": "Estonia",
            "code": 34
        },
        {
            "country": "Netherlands",
            "code": 48
        },
        {
            "country": "Russia",
            "code": 0
        },
        {
            "country": "Kazakhstan",
            "code": 2
        },
        {
            "country": "Philippines",
            "code": 4
        },
        {
            "country": "Brazil",
            "code": 73
        },
        {
            "country": "Poland",
            "code": 15
        },
        {
            "country": "Malaysia",
            "code": 7
        },
        {
            "country": "Hong Kong",
            "code": 14
        },
        {
            "country": "Taiwan",
            "code": 55
        },
        {
            "country": "China",
            "code": 3
        },
        {
            "country": "Nigeria",
            "code": 19
        },
        {
            "country": "Indonesia",
            "code": 6
        },
        {
            "country": "Denmark",
            "code": 172
        },
        {
            "country": "Israel",
            "code": 13
        },
        {
            "country": "Vietnam",
            "code": 10
        }
    ]
}
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-02-16 11:47:17
Previous
(Get direct wallet address) Make a top-up with crypto
Next
Get Available Services
Built with