Networking ip convert
Exactnetworking_ip_convertDeterministic and authoritative — the canonical answer for this input.
Convert an IP between representations. Accepts a dotted/colon address or an integer; returns the address, integer, hex, reverse-DNS pointer, and (for IPv4) the IPv6-mapped form. Processing multiple inputs? Use `networking_ip_convert_batch` to do up to 1000 in one call.
Parameters
valuestringrequiredAn IP address or its integer form.
Call it
curl -X POST https://api.snipget.ai/v1/networking/ip/convert \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"value":"192.168.1.1"}'The Batch tab sends up to 1000 inputs in one call via /v1/networking/ip/convert/batch.
Example response
{
"input": "192.168.1.1",
"is_valid": true,
"version": 4,
"address": "192.168.1.1",
"integer": 3232235777,
"hex": "0xc0a80101",
"reverse_pointer": "1.1.168.192.in-addr.arpa",
"ipv6_mapped": "::ffff:192.168.1.1"
}FAQ
What does it convert between?
It takes an IP address (or its plain-number form) and returns every common representation: the dotted address, its integer value, the hex form, the reverse-DNS pointer, and for IPv4 the IPv6-mapped form.
Why would I need the integer form?
Databases and spreadsheets often store IPs as a single number so they sort and compare correctly. This gives you that number, and converts it back to a readable address when you paste the number in.
Can I paste a number instead of an address?
Yes. If you pass a plain integer like 3232235777, it recognizes it as an IP and converts it back to 192.168.1.1.
How dependable is it?
It is exact and deterministic. Every form is computed directly from the address, so the conversions are always consistent both ways.
What if the value is not a valid IP or number?
It returns is_valid false with a clear reason and confidence 0, not an error.