Validate up to 100 phone numbers

Validates up to 100 numbers in one call.

Request

POSThttps://phone-number-validator.p.apihiver.com/v1/validate/batch

JSON object. Required: numbers.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://phone-number-validator.p.apihiver.com/v1/validate/batch \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "country": "IN",
8  "numbers": [
9    "9876543210"
10  ]
11}'

Validate up to 100 phone numbers: Phone Number Validation API reference

Validates up to 100 numbers in one call. This endpoint is part of the Phone Number Validation API: Validate and format phone numbers for 240+ countries: valid or not, mobile or landline, carrier, region, and E.164 format.

Example response (200, application/json)

Success.

1{
2  "results": [
3    {
4      "type": "mobile",
5      "input": "9876543210",
6      "valid": true,
7      "carrier": "Airtel",
8      "formats": {
9        "e164": "+919876543210",
10        "rfc3966": "tel:+91-98765-43210",
11        "national": "098765 43210",
12        "international": "+91 98765 43210"
13      },
14      "location": "India",
15      "possible": true,
16      "timezones": [
17        "Asia/Calcutta"
18      ],
19      "calling_code": "+91",
20      "country_code": "IN",
21      "national_number": "9876543210"
22    }
23  ]
24}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "numbers: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.