# IPinfo — Wrapped API

> **You are on:** `https://api.beta.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 | api.beta.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.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)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/ipinfo/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/ipinfo.md](https://beta.paywithlocus.com/x402/ipinfo.md)

> Also available via MPP (no account needed): [mpp/ipinfo.md](https://beta.paywithlocus.com/mpp/ipinfo.md)

## 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://api.beta.paywithlocus.com/api/wrapped/ipinfo/ip-lite \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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://api.beta.paywithlocus.com/api/wrapped/ipinfo/ip-lookup \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip":"<string>"}'
```
