Country

Request which ranges are available in a specified country.

Request

Endpoint: /api/country/uk/ranges
Method: GET
Headers: Accept: application/vnd.cloudlx.v1+json
Authorization: Bearer <access_token>

Optional GET request parameters

search Description The number must contain these digits
Type Integer
Example 123
max_per_page Description Limit the number of results returned (max 200)
Type Integer
Example 50
page Description The page number, if the number of results exceeds max_per_page
Type Integer
Example 2

Response

Example:

                                
    {
        "ranges": [
            {
                "code": "1245",
                "name": "Chelmsford",
                "country_code": "44",
                "country_name": "United Kingdom",
                "country_iso": "UK",
                "available_numbers": 2438
            }
        ],
        "num_results": 1,
        "paginates": false
    }
                                
                            
code Description The range dialling code
Type String
Example 1245
country Description The name of the country (used in requests)
Type String
Example UK
country_code Description The country dialling code
Type String
Example 44
country_name Description The country name for the number
Type String
Example United Kingdom
country_iso Description The ISO code for the country
Type String
Example UK
available_numbers Description The quantity of numbers available in the country
Type String
Example 31440
paginates Description Whether or not the number of results exceeds the maximum number of results specified
Type Boolean
Example false