Developer REST API

Integrate the REST API into CI/CD pipelines, Python scripts and infrastructure as code (IaC).

REST API quota per IP / origin (v1)Carregando...
Remaining today: 100IP: Detectando...
Free, unlimited use in your browser

All calculators and PDF/JSON/CSV exports used directly in the browser ondiasinfo tools are free with no usage limit.

The 100-call daily limit applies only to the external API endpoints.

Interactive API consoleStandard JSON responses

Integration code examples

cURL (Terminal Linux / Mac)
curl -X GET "https://tools.diasinfo.com/api/v1/calc/subnet?ip=192.168.1.1&mask=24" \
  -H "Accept: application/json"
JavaScript / Node.js (Fetch)
const response = await fetch('https://tools.diasinfo.com/api/v1/calc/subnet?ip=192.168.1.1&mask=24');
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tools.diasinfo.com/api/v1/calc/subnet?ip=192.168.1.1&mask=24"
response = requests.get(url)
print(response.json())
Version 2 roadmap
Future enterprise plans are under consideration; no paid plans are currently available.
Version 2: planned

How to use this tool

Explore REST endpoints for subnetting, decibels and uptime. Check your quota and use the cURL or JavaScript examples to integrate calculation results.

Worked example

A request to /api/v1/calc/subnet?ip=192.168.1.1&mask=24 returns network parameters as JSON. Use the interactive console to inspect the response.

Interpreting the result

The external API applies the stated quota of 100 calls per IP over 24 hours. Handle HTTP 400 and 429 responses as well as network failures.

All calculators and tools
Usar esta ferramenta em português