LAYER3 INTEL
Intel API

Errors

Intel API error codes and HTTP statuses, from invalid queries and IPv6 to missing keys, exhausted credits and oversized prefixes.

Every error from /v1, /open and /me is a JSON object with a stable code and a human-readable message:

curl https://api.layer3intel.com/open/2001:db8::1
{ "error": { "code": "ipv6_not_supported", "message": "only IPv4 is supported" } }

Read code. message is for people and may change.

StatuscodeWhen
400invalid_queryNot an IPv4 address, prefix or ASN; an unknown include; any query string on /open.
400ipv6_not_supportedAn IPv6 address or prefix; on /me, a request over IPv6.
401unauthorized/v1: a missing, malformed or unknown key.
402credits_exhausted/v1: the key has no credits left.
404not_found/v1: a reserved or empty path, such as /v1/ or /v1/batch.
405method_not_allowedAny method but GET and HEAD (and OPTIONS on /open and /me). The response carries Allow.
422prefix_too_largeA prefix shorter than /16. See Prefix lookups.
503unavailableData or credits momentarily unavailable. Retry.

A path that isn't a route answers 404 with an empty body.

The data feed has its own errors; see Pulls and freshness.