> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Abstract API

> Abstract's IP Intelligence API: location, time zone, currency, ASN and company for an IP, with VPN, proxy, Tor, hosting, relay, mobile and abuse flags.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/abstract-api.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=664ee6bf37b4105261336e320942036f)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`ABSTRACT_IP_INTELLIGENCE_API_KEY`

Endpoints

1

Auth

Key in header

[Vendor docs](https://docs.abstractapi.com/api/ip-intelligence)

&#x20;·&#x20;

[Pricing](https://www.abstractapi.com/api/ip-intelligence)

## Setup

| Variable | | What it is |
| - | - | - |
| `ABSTRACT_IP_INTELLIGENCE_API_KEY` | required | The API key of Abstract's IP Intelligence API (Abstract dashboard). Each Abstract API has its own key; an email or phone key will not work here. Sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Only the IP Intelligence API is in this entry; Abstract's other APIs each need their own key.
* Free plans allow 1 request per second (429 past it) and answer 422 when the credits run out. A 204 means there is no location data for the IP.

## Endpoints

GET

Look up an IP's location and security flags

City, region, postal code, country, continent, coordinates, time zone, currency, flag, ASN, company, hosted domains and is\_vpn, is\_proxy, is\_tor, is\_hosting, is\_relay, is\_mobile, is\_abuse.

[Open](#abstract-api-ip-lookup)

### Look up an IP's location and security flags

GET

`/`

`abstract-api.ip.lookup`

City, region, postal code, country, continent, coordinates, time zone, currency, flag, ASN, company, hosted domains and is\_vpn, is\_proxy, is\_tor, is\_hosting, is\_relay, is\_mobile, is\_abuse.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ip_address`</td><td>string</td><td>query</td><td>IPv4 or IPv6 address; when left out, the caller's own IP is used. Example `166.171.248.255`</td></tr>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated top-level keys to return, e.g. location,security. Example `location,security`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.abstractapi.com/api/ip-intelligence) · Same job: [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-ip-lookup), [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-ip-lookup), [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-ip-lookup), [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-ip-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup), [IPinfo](https://docs.webrouter.net/data-apis/ipinfo.md#ipinfo-lite-lookup)

```python Python theme={null}
router.call_data_api("abstract-api.ip.lookup", {'ip_address': '166.171.248.255', 'fields': 'location,security'})
```

```text MCP theme={null}
call_data_api(endpoint="abstract-api.ip.lookup", params={"ip_address": "166.171.248.255", "fields": "location,security"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.