Snipget.ai

Classify an IP address

Exact
networking_ip_classify

Deterministic and authoritative — the canonical answer for this input.

Classify an IP address: public / private / loopback / multicast / reserved / link-local, plus all the underlying boolean flags. Processing multiple inputs? Use `networking_ip_classify_batch` to do up to 1000 in one call.

Parameters

valuestringrequired

The IP address to classify.

Call it

curl -X POST https://api.snipget.ai/v1/networking/ip/classify \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"value":"10.0.0.1"}'

The Batch tab sends up to 1000 inputs in one call via /v1/networking/ip/classify/batch.

Example response

{
  "input": "10.0.0.1",
  "is_valid": true,
  "version": 4,
  "category": "private",
  "is_private": true,
  "is_global": false,
  "is_loopback": false,
  "is_multicast": false,
  "is_link_local": false,
  "is_reserved": false,
  "is_unspecified": false
}

FAQ

What does this tell me?

It sorts an IP address into a category: public, private, loopback, multicast, reserved, link-local, or unspecified, and returns all the underlying true/false flags so you can filter on exactly what you need.

Why is this useful?

It is an easy way to tell an internal address (like 10.x or 192.168.x) from a real internet-facing one, for example when cleaning logs or deciding which addresses to allow. The rules come from the official IP address ranges, so you do not have to memorize them.

How reliable is the answer?

It is exact and deterministic. The category comes directly from the standard address ranges, so the same IP always classifies the same way.

Does it look up the location or owner of the IP?

No. It only describes the kind of address from its number. It does not do geolocation or tell you which company or person uses it.

What if the input is not an IP?

A value that is not a valid IPv4 or IPv6 address returns is_valid false with a reason and confidence 0, rather than throwing an error.

Related tools