{"uid":"cap_lrcMJLzEndZrRyh-yTEVN","slug":"ip-address-classifier-e7b29250","name":"IP Address Classifier","description":"Classify an IPv4/IPv6 address: version, public/private/loopback/link-local flags, integer and hex forms, reverse-DNS pointer, and optional CIDR membership test.","url":"https://api.24klabs.ai/api/v1/ip-classify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip":{"type":"string"},"cidr":{"type":"string"}}},"responseSchema":{"type":"json","example":{"version":4,"is_private":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JdNu2kIAZS9N-kdWzSQYj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies an IPv4 or IPv6 address returning version, public/private/loopback/link-local flags, integer and hex representations, reverse-DNS pointer, and optional CIDR membership test.","exampleAgentPrompt":"Can you classify the IP address 192.168.1.50 for me — tell me if it's public or private, what version it is, its hex form, its reverse-DNS pointer, and whether it falls inside the CIDR block 192.168.1.0/24?","exampleUseCases":[{"title":"Security audit of inbound request IPs","prompt":"I'm reviewing server logs and want to classify the IP 203.0.113.42 — is it public or private, is it a loopback or link-local address, and what's its reverse-DNS pointer?"},{"title":"CIDR membership check for allow-listing","prompt":"Check whether the IP address 10.0.0.15 falls within the CIDR range 10.0.0.0/8, and also tell me its integer and hex representations."},{"title":"IPv6 address analysis for network tooling","prompt":"Analyze the IPv6 address 2001:0db8:85a3::8a2e:0370:7334 — I need to know its version, whether it's public or private, its loopback and link-local flags, and its hex form."}],"resultDescription":"Returns a structured object including the IP version (4 or 6), boolean flags for public, private, loopback, and link-local classifications, the IP expressed as an integer and in hexadecimal, the reverse-DNS PTR record string, and if a CIDR was supplied, a boolean indicating whether the IP falls within that network block.","failureModes":["Invalid IP address format returns a 4xx error with a message indicating the input is not a valid IPv4 or IPv6 address","Malformed CIDR notation (e.g. missing prefix length) returns an error describing the invalid CIDR","Empty or missing IP input returns a validation error","Extremely rare: reverse-DNS lookup may time out or return no result, flagged in the response"],"whenToPreferThis":"Choose this endpoint when you need a one-call solution to fully characterize an IP address — version detection, scope classification (public/private/loopback/link-local), numeric conversions, and CIDR membership — rather than writing custom parsing logic or calling multiple utilities separately. It handles both IPv4 and IPv6 and is particularly useful in security pipelines, network diagnostics, and infrastructure tooling where fast, reliable IP metadata is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:35.962Z","isFirstParty":false}