# IPinfo

> **You are on:** `https://beta-api.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API |
> |---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com |
> | Beta | beta.paywithlocus.com | beta-api.paywithlocus.com |
> | Stage | stage.paywithlocus.com | stage-api.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> IP intelligence — geolocation, ASN, privacy detection, carrier data, and hosting identification.

**Category:** Data / Intelligence | **Website:** [ipinfo.io](https://ipinfo.io) | **Docs:** [ipinfo.io/developers](https://ipinfo.io/developers)

## Access Methods

| Method | Base URL | Auth |
|--------|----------|------|
| **MPP (Tempo)** | `https://ipinfo.mpp.paywithlocus.com/ipinfo/` | HTTP 402 auto-payment |
| **Wrapped API** | `https://beta-api.paywithlocus.com/api/wrapped/ipinfo/` | `Authorization: Bearer <LOCUS_API_KEY>` |

**OpenAPI discovery:** `GET https://ipinfo.mpp.paywithlocus.com/openapi.json`

## Endpoints

### IP Lite

Basic IP intelligence — country, continent, ASN name and domain. Available on all plans.

**Estimated cost:** $0.001

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ip` | string | Yes | IPv4 address, IPv6 address, or "me" for the caller's IP |

```bash
curl -X POST https://ipinfo.mpp.paywithlocus.com/ipinfo/ip-lite \
  -H "Content-Type: application/json" \
  -d '{"ip":"<string>"}'
```

### IP Lookup

Full IP lookup — geolocation, privacy flags (VPN/proxy/tor/relay), hosting detection, carrier data, and company info. Response fields expand automatically with plan tier.

**Estimated cost:** $0.001

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ip` | string | Yes | IPv4 address, IPv6 address, or "me" for the caller's IP |

```bash
curl -X POST https://ipinfo.mpp.paywithlocus.com/ipinfo/ip-lookup \
  -H "Content-Type: application/json" \
  -d '{"ip":"<string>"}'
```
