IP Address
GET/v0/net/ip
Validates an IP address in IPv4 or IPv6 format. For IPv4, verifies that each octet is in the range 0–255 with no leading zeros. For IPv6, accepts full and compressed (::) notation. Returns the version and a classification of the address type.
Try it
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The IP address to validate (IPv4 or IPv6). |
Example Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.isvalid.dev/v0/net/ip?value=192.168.1.1"
Response Fields
| Field | Type | Description |
|---|---|---|
| valid | boolean | Whether the IP address is valid. |
| version | number | IP version: 4 or 6. |
| type | string | Address classification. IPv4: public, private, loopback, link-local, multicast, broadcast. IPv6: global-unicast, loopback, link-local, unique-local, multicast. |
| expanded | string | Full expanded IPv6 address (only for IPv6). |
Example Response — IPv4
{
"valid": true,
"version": 4,
"type": "private"
}Example Response — IPv6
{
"valid": true,
"version": 6,
"type": "global-unicast",
"expanded": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
}Example Response — invalid
{
"valid": false
}