验证

电话验证 API

验证电话号码并规范为 E.164,含地区与线路类型。

请求标头

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required phone-validate.p.rapidapi.com

端点

GET /v1/validate/phone

Validate a phone number and normalize it to E.164

参数

NameTypeRequiredDefaultConstraints
countrystringoptional—matches [A-Za-z]{2}
numberstringrequired—matches \S

代码示例

curl --request GET \
  --url 'https://phone-validate.p.rapidapi.com/v1/validate/phone?number=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: phone-validate.p.rapidapi.com'
GET /v1/validate/phone/countries

List all country codes supported by phone number validation, sorted alphabetically.

代码示例

curl --request GET \
  --url 'https://phone-validate.p.rapidapi.com/v1/validate/phone/countries' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: phone-validate.p.rapidapi.com'

交互示例

phone-validate
$ GET /v1/validate/phone?number=07700900123&country=GB
{"valid":true,"e164":"+447700900123","country":"GB","type":"mobile"}

订阅和许可

通过 RapidAPI 上的商业就绪层访问此 API。专为副项目、初创公司和大批量生产架构设计的灵活计划。

查看定价并订阅

开发者支持

需要集成帮助或有自定义端点请求?我们的工程团队随时为身份验证、有效负载模式和高频速率限制增加提供协助。

联系 API 工程部

系统性能

全天候 24/7 监控,正常运行时间 SLA 达 99.9%。构建在具有全球分布式边缘缓存的云原生微服务之上,以确保超低延迟响应时间。

所有系统均可运行