API documentation

The CrocPeek API returns JSON over HTTPS. All endpoints live under /v1.

Base URL

https://crocpeek.com/v1

Machine-readable description (OpenAPI 3.1): https://crocpeek.com/v1/openapi.json

Authentication

Send your API key as a Bearer token (or in the X-API-Key header). Create keys in your dashboard. Only GET /v1/ip works without a key.

curl -H "Authorization: Bearer crocpeek_your_key" https://crocpeek.com/v1/ip/1.1.1.1

Rate limits and quota

Every request counts as one. There are two limits: requests per minute, and requests per calendar month (UTC).

PlanPer minutePer month
Free305,000
Pro600500,000
Anonymous (per IP)30—

Responses include the monthly quota in these headers:

X-Quota-Limit: 5000
X-Quota-Remaining: 4874
X-Quota-Reset: 2027-01-01T00:00:00.000Z

When a limit is hit you get 429 Too Many Requests with a Retry-After header (per-minute limit) or the quota reset time (monthly limit).

Errors

Errors use the same shape on every endpoint, with an HTTP status that matches:

{ "ok": false, "code": "rate_limited", "message": "Rate limit of 30 requests per minute reached." }

400 invalid input · 401 missing or invalid key · 403 account suspended · 404 nothing found · 429 limit reached · 502 an upstream data source failed · 503 over capacity for today, try again tomorrow

Endpoints

GET /v1/ip

Your own address as seen by the API, plus a few details about the connection. No key needed.

Requesting the home page without an HTML Accept header (for example with curl) returns just your IP as plain text.

Try it

curl https://crocpeek.com/v1/ip
curl crocpeek.com

Example response

{
  "ok": true,
  "ip": "203.0.113.7",
  "version": 4,
  "country": "Germany",
  "countryCode": "DE",
  "region": "Hesse",
  "city": "Frankfurt am Main",
  "timezone": "Europe/Berlin",
  "asn": 64500,
  "organization": "Example Network"
}

GET /v1/ip/{ip}

Routing, network and location details for an IPv4 or IPv6 address. Private and reserved addresses are rejected.

numberOfHosts is the total number of addresses in the prefix. The subnet fields (networkAddress, subnetMask, binarySubnetMask, class, numberOfHosts) are IPv4 only and null for IPv6. ms is how long the lookup took. rpki is valid, invalid_asn, invalid_length or unknown (null when it could not be checked); abuseContacts lists the registered abuse emails and is often empty or outdated.

Try it

curl -H "Authorization: Bearer $CROCPEEK_KEY" https://crocpeek.com/v1/ip/1.1.1.1

Example response

{
  "ok": true,
  "ip": "1.1.1.1",
  "version": 4,
  "cidr": "1.1.1.0/24",
  "asn": 13335,
  "asName": "CLOUDFLARENET",
  "organization": "Cloudflare, Inc.",
  "networkAddress": "1.1.1.0",
  "subnetMask": "255.255.255.0",
  "binarySubnetMask": "11111111.11111111.11111111.00000000",
  "class": "A",
  "numberOfHosts": 256,
  "rdns": ["one.one.one.one"],
  "country": "Australia",
  "countryCode": "AU",
  "ms": 412
}

GET /v1/asn/{asn}

Holder, announced IP ranges, neighbouring networks and abuse contact for an autonomous system.

Accepts 13335 or AS13335. ipv4Prefixes and ipv6Prefixes list up to 500 ranges each, largest first; the counts are the full totals. Neighbours are ranked by power, the number of route collectors that see the link (top 20 per group). Private and reserved AS numbers are rejected.

Try it

curl -H "Authorization: Bearer $CROCPEEK_KEY" https://crocpeek.com/v1/asn/13335

Example response

{
  "ok": true,
  "asn": 13335,
  "asName": "CLOUDFLARENET",
  "organization": "Cloudflare, Inc.",
  "announced": true,
  "ipv4PrefixCount": 1789,
  "ipv6PrefixCount": 5938,
  "ipv4Prefixes": ["1.0.0.0/20", "1.1.1.0/24"],
  "ipv6Prefixes": ["2400:cb00::/32", "2606:4700::/32"],
  "upstreams": [{ "asn": 174, "power": 391, "ipv4Peers": 402, "ipv6Peers": 215 }],
  "downstreams": [{ "asn": 132892, "power": 120, "ipv4Peers": 130, "ipv6Peers": 0 }],
  "otherNeighbours": [],
  "abuseContacts": ["abuse@cloudflare.com"],
  "ms": 640
}

GET /v1/domain/{domain}

The A, AAAA and NS records of a domain name.

Try it

curl -H "Authorization: Bearer $CROCPEEK_KEY" https://crocpeek.com/v1/domain/example.com

Example response

{
  "ok": true,
  "domain": "example.com",
  "ipv4Addresses": ["93.184.216.34"],
  "ipv6Addresses": ["2606:2800:21f:cb07:6820:80da:af6b:8b2c"],
  "nameServers": ["a.iana-servers.net.", "b.iana-servers.net."],
  "ms": 38
}

GET /v1/usage

Your plan, limits and how many requests you have used this month. Calls to this endpoint are not counted and still work when the quota is used up.

Try it

curl -H "Authorization: Bearer $CROCPEEK_KEY" https://crocpeek.com/v1/usage

Example response

{
  "ok": true,
  "plan": "free",
  "perMinute": 30,
  "perMonth": 5000,
  "used": 126,
  "remaining": 4874,
  "resetsAt": "2027-01-01T00:00:00.000Z"
}