Skip to content
moxon home

IP Analyzer

The /ip endpoint analyzes an IPv4 or IPv6 address and returns its type, class, binary representation, decimal value, and reverse DNS notation. If no address is provided, the client's own IP is analyzed.

gethttps://api.moxon.dev/v5/ip

Use Cases

Determine whether an IP is public or private, inspect the binary and decimal form of an address, generate the reverse DNS record for PTR lookups, or identify the address class for network planning.

Try itget/v5/ip

Parameters

  • addressstringoptional

    IPv4 or IPv6 address to analyze. Defaults to the client's IP.

Response Fields

  • ipstring

    The analyzed IP address

  • version"IPv4" | "IPv6"

    IP protocol version

  • typestring

    Address type: public, private, loopback, link-local, multicast, or broadcast

  • classstring

    IPv4 address class only: A, B, C, D, or E

  • rangestring

    CIDR range the address belongs to (IPv4 private/special ranges)

  • binarystring

    Binary representation of the address

  • decimalnumber

    Decimal representation (IPv4 only)

  • reversestring

    Reverse DNS notation (.in-addr.arpa for IPv4, .ip6.arpa for IPv6)

Code Examples

Error Handling

  • 400Invalid IP address.The address parameter is not a valid IPv4 or IPv6 address