Skip to content
Fourohtwo

Compute a CIDR block

api.lookproof.dev/v1/ip/cidr

Compute a CIDR block: network, first and last address, number of addresses, netmask and host mask, and whether the input had host bits set (192.0.2.5/24). IPv4 and IPv6, offline. Use when an agent must check or explain a CIDR block in a firewall, SPF or cloud configuration. Input: ?cidr=192.0.2.5/24.

BaseAnswering
GEThttps://api.lookproof.dev/v1/ip/cidr

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.lookproof.dev/v1/ip/cidr?cidr=192.0.2.5%2F24");
console.log(await res.json());

Example input

{
  "cidr": "192.0.2.5/24"
}

More from Lookproof