URL Lookup API
The URL Lookup API provides location information for any valid URL or domain name.
From 7,993 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 217ms | 260ms | 274ms | 609ms | 1030ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/urllookup GET
https://api.api-ninjas.com/v1/urllookup
Returns the location of the IP address hosting the URL domain. The response contains both the geographical coordinates (latitude/longitude) as well as the city and country.
Parameters
urlrequiredValid URL to check. It supports schemes (e.g.
http://example.com) as well as schemeless (e.g.example.com) formats.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
urlThe URL that was looked up.
countryCountry name.
country_code2-letter ISO 3166 alpha-2 country code.
regionState, province, or administrative region name.
region_codeRegion code (e.g., state code).
cityCity name.
zipZIP or postal code.
latLatitude coordinate.
lonLongitude coordinate.
timezoneTimezone (e.g.,
America/New_York).ispInternet Service Provider name.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/urllookup?url=example.comHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/urllookup?url=https://example.com" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.