Skip to content Skip to sidebar Skip to footer

Phone number verification API

Introduction

Our API endpoint for phone number verification allows you to easily check the validity of phone numbers. 

Method: GET

URL-Parameters:

  • number (required, string)
Example request:

GET https://api.apicheck.nl/verify/v1/phone

This call will return the following JSON data:

{
    "error": false,
    "data": {
        "valid": true,
        "details": {
            "country_code": 1,
            "area_code": "234",
            "exchange_code": "567",
            "line_number": "8900",
            "international_formatted": "+1 234-567-8900",
            "rfc3966_formatted": "tel:+1-234-567-8900",
            "number_type": "Fixed line or mobile",
            "carrier_name": ""
        }
    }
}
Invalid phone number
{
    "error": false,
    "data": {
        "valid": false
    }
}

 

Error responses

Invalid API-key
HTTP 401 (unauthorized)
Your API key is incorrect, or invalid.
Login to the ApiCheck dashboard and check your X-API-KEY header as documented in the Authorization documentation.
{
    "error": true,
    "name": "api_key_invalid",
    "description": "Api key invalid"
}

Run and try out in Postman: