Phone Number Information
Documentation and examples for world phone number API endpoints
This API does not verify if the phone number actually exists, but only the correspondence of its prefix and number of digits.
Try it Out
Default country:LV
API Documentation
Guess Phone Country
/api/v1/world/phone/{number}/{country?}Determine the country of a phone number. Optionally provide a default country code to help with local formats.
Method: GETResponse Format: JSONHeaders: Accept-Language
GET https://api.prompt.lv/api/v1/world/phone/%2B37120000000
Accept-Language: en{
"success": true,
"code": 200,
"result": {
"country": "LV",
"phone": "20000000",
"extension": "371"
}
}200 | Successful request |
400 | Could not determine country |
404 | Invalid default country code |
421 | Invalid phone number length for the country |
422 | Phone number contains letters |