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 Services

GET
https://api.smsonline.cloud/cs/getListByCountry
This API endpoint returns a list of services available for phone numbers in the specified country.
The response includes an id, which is required when placing an order.

Request

Query Params
userId
string 
required
User Id linked to API key
Example:
{{userid}}
key
string 
required
API key
Example:
{{APIKey}}
country
string 
required
Country Code
Example:
3
service
string 
optional

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/getListByCountry?userId={{userid}}&key={{APIKey}}&country=3&service'

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
object 
required
data
array [object {8}] 
required
Example
{
    "error": false,
    "body": {
        "data": [
            {
                "id": "qf",
                "name": "RedBook",
                "price": 0.2,
                "quantity": 0,
                "deliverability": 31.25,
                "discountRate": 1,
                "m": "19f35f106d56d5d8c68398c1502cbcef",
                "n": "3c7b039f8e131c40626aeda9ce5eaf36"
            }
        ]
    }
}
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-02-16 11:46:47
Previous
Get Available Countries
Next
Get Service Details
Built with