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 the country stats with success rates

GET
https://api.smsonline.cloud/cs/getBetterChoices
List the reception success rates of countries with recent reception history, specified by service name.

Request

Query Params
userId
string 
required
User Id linked to API key
Example:
{{userid}}
key
string 
required
API key
Example:
{{APIKey}}
service
string 
required
Service full name
Example:
WhatsApp

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

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 {5}] 
required
country
string 
required
completed
integer 
required
failed
integer 
required
complete_ratio
string 
required
cc
string 
required
Example
{
    "error": false,
    "body": [
        {
            "country": "Nigeria",
            "completed": 5,
            "failed": 4,
            "complete_ratio": "55.6",
            "cc": "19"
        },
        {
            "country": "Spain",
            "completed": 7,
            "failed": 7,
            "complete_ratio": "50.0",
            "cc": "56"
        },
        {
            "country": "Canada",
            "completed": 44,
            "failed": 75,
            "complete_ratio": "37.0",
            "cc": "36"
        },
        {
            "country": "Philippines",
            "completed": 27,
            "failed": 54,
            "complete_ratio": "33.3",
            "cc": "4"
        },
        {
            "country": "Indonesia",
            "completed": 103,
            "failed": 238,
            "complete_ratio": "30.2",
            "cc": "6"
        },
        {
            "country": "Hong Kong",
            "completed": 30,
            "failed": 70,
            "complete_ratio": "30.0",
            "cc": "14"
        },
        {
            "country": "Brazil",
            "completed": 9,
            "failed": 28,
            "complete_ratio": "24.3",
            "cc": "73"
        },
        {
            "country": "Sweden",
            "completed": 4,
            "failed": 13,
            "complete_ratio": "23.5",
            "cc": "46"
        },
        {
            "country": "United Kingdom",
            "completed": 12,
            "failed": 52,
            "complete_ratio": "18.8",
            "cc": "16"
        },
        {
            "country": "India",
            "completed": 4,
            "failed": 35,
            "complete_ratio": "10.3",
            "cc": "22"
        }
    ]
}
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-04-20 14:22:26
Previous
Get Service Details
Next
Purchase Number
Built with