http://phone-number-api.com/newline/?number={number}
{number} is the phone number.
http://phone-number-api.com/newline/?number={number}&fields=117443071
fields | response fields optional |
dial_from | two-letter country code ISO 3166-1 alpha-2 where you want to dial the number from optional |
lang | response language optional |
You can edit this query and play around with the options
The API can return the following fields and values
If you don't require all the returned fields, use the GET parameter fields
to specify which data should be returned.
Separate the fields by comma (fields=status,message,query,country,city
) or use a generated, numeric value (to save bandwidth)
http://phone-number-api.com/newline/?number={number}&fields=status,message,numberType,numberValid,formatE164,countryName,country,region,regionName,city,zip,lat,lon,timezone,query
http://phone-number-api.com/newline/?number={number}&fields=117443071
Localized city, regionName and country can be requested by setting the GET parameter lang to one of the following:
lang (ISO 639) | description |
---|---|
en | English (default) |
de | Deutsch (German) |
es | Español (Spanish) |
pt | Português - Brasil (Portuguese) |
fr | Français (French) |
ja | 日本語 (Japanese) |
zh | 中国 (Chinese) |
ru | Русский (Russian) |
256-bit SSL encryption is not available for this free API. Please see our pro service.
This endpoint is limited to 5 requests per minute from an IP address.
If you go over the limit your requests will be throttled (HTTP 429
) until your rate limit is reset. If you constantly go over the limit your IP address will be banned for one hour.
The returned HTTP header X-Rl
contains the number of requests remaining in the current rate limit window.
Your implementation should always check the value of the X-Rl
header, and if the value is 0, you must not send any more requests for the next 60 seconds.
We do not allow commercial use for this endpoint. Please see our pro service for SSL access, unlimited queries and commercial support.