81trust / 100
Cidr
by CIDR calculator in Weather & location
x402 APIPassing, checked 1 h ago
Parse an IPv4 CIDR block: network address, broadcast, first/last host, netmask, and host count. Optionally test if an IP is inside it.
POST https://agent402.tools/api/cidr
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 212 ms typical, 408 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/cidr" \
-H "content-type: application/json" \
-d '{"cidr":"192.168.1.0/24","contains":"192.168.1.42"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fcidr
const res = await pay("https://agent402.tools/api/cidr", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"cidr":"192.168.1.0/24","contains":"192.168.1.42"}),
});
console.log(await res.json());Example input
{
"cidr": "192.168.1.0/24",
"contains": "192.168.1.42"
}Example output
{
"broadcast": "192.168.1.255",
"cidr": "192.168.1.0/24",
"contains": true,
"firstHost": "192.168.1.1",
"lastHost": "192.168.1.254",
"netmask": "255.255.255.0",
"network": "192.168.1.0",
"prefix": 24,
"totalAddresses": 256,
"usableHosts": 254
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 212 ms | $0.001 |
| 5 h ago | Passed | 402 | 408 ms | $0.001 |
| 8 h ago | Passed | 402 | 186 ms | $0.001 |
| 13 h ago | Passed | 402 | 298 ms | $0.001 |
| 16 h ago | Passed | 402 | 190 ms | $0.001 |
| 19 h ago | Passed | 402 | 201 ms | $0.001 |
| 24 h ago | Passed | 402 | 603 ms | $0.001 |