# IPinfo

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.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 |
| **Locus Pro Wrapped API** | `https://api.paywithlocus.com/api/wrapped/credits/ipinfo/` | `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` + `Idempotency-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":"8.8.8.8"}'
```
