# URL Lookup API

> URL Lookup resolves any web address to its hosting server IP address, country, and continent in real time. Paid plans add city, state, coordinates, timezone, and EU membership status.

**Endpoint:** `POST https://api.apiverve.com/v1/urllookup`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/urllookup

## Overview

A URL lookup API that resolves a web address to the server behind it and tells you where that server is. Send a URL and get back the domain, the IP address it resolves to, and the hosting country and continent, so you can check where a URL is hosted without running DNS and IP geolocation as two separate steps.

Security and fraud teams use it to see where links in emails or user submissions point, compliance teams use it to check whether a vendor's site is served from inside a given region, and analytics tools use it to group referring sites by hosting country.

The Free plan returns the URL and domain, the resolved IP, and the country and continent as both codes and full names. Paid plans add the city, state or region, postal code, timezone, latitude and longitude, an accuracy radius for those coordinates, and whether the hosting country is an EU member. Bear in mind that a site behind a CDN resolves to the CDN's nearest edge server, not the origin.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/urllookup" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.merriam-webster.com/dictionary/documentation"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL to lookup the location of. Without a scheme, https:// is assumed. url |

## Response fields

- `range` — string · IP address range of the server · (premium)
- `country` — string · Country code where the URL is hosted
- `region` — string · Region or state of the URL's server location · (premium)
- `city` — string · City where the URL's server is located · (premium)
- `timezone` — string · Timezone of the URL's server location · (premium)
- `state` — string · State or province of the server location · (premium)
- `zipcode` — string · ZIP or postal code of server location · (premium)
- `coordinates` — array · Latitude and longitude coordinates of server location · (premium)
- `url` — string · The URL that was looked up
- `domain` — string · The domain extracted from the URL
- `ip` — string · The IP address the domain resolves to (first A record)
- `countryName` — string · Full country name where the URL is hosted
- `continent` — string · Continent code of the URL's server location
- `continentName` — string · Full continent name of the URL's server location
- `accuracyRadius` — number · Approximate accuracy radius (km) of the coordinates · (premium)
- `isEU` — boolean · Whether the hosting country is in the European Union · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "range": "",
    "country": "US",
    "region": "",
    "city": "Cheney",
    "timezone": "America/Chicago",
    "state": "Kansas",
    "zipcode": "67025",
    "coordinates": [
      37.751,
      -97.822
    ],
    "url": "https://www.merriam-webster.com/dictionary/documentation",
    "domain": "www.merriam-webster.com",
    "ip": "104.20.45.199",
    "countryName": "United States",
    "continent": "NA",
    "continentName": "North America",
    "accuracyRadius": 1000,
    "isEU": false
  }
}
```

## Use cases

- **Inbound Link Auditing** — SEO and security analysts check the hosting country and IP address of external backlinks to spot foreign spam networks.
- **Data Sovereignty Compliance** — Verify whether client-submitted website destinations host their data inside specific geographical boundaries or outside designated regulatory borders.
- **Suspicious Redirect Screening** — To catch cloaked phishing campaigns, threat response teams inspect the resolved IP address and hosting country of reported URLs.
- **Ad Placement Verification** — When auditing digital ad campaigns, media buyers trace destination landing pages back to their physical hosting server locations.

## SDKs

- **npm** — `npm install @apiverve/urllookup` (https://www.npmjs.com/package/@apiverve/urllookup)
- **PyPI** — `pip install apiverve-urllookup` (https://pypi.org/project/apiverve-urllookup/)
- **NuGet** — `dotnet add package APIVerve.API.URLLookup` (https://www.nuget.org/packages/APIVerve.API.URLLookup)
- **Source** — https://github.com/apiverve/urllookup-api

## More

- Full reference: https://docs.apiverve.com/ref/urllookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
