All API tools
Network & IP
IP Range to CIDR Converter API
GET
/v1/ip-to-cidr Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as query-string parameters. Example values shown.
| Name | Example |
|---|---|
| startIp | 192.168.1.0 |
| endIp | 192.168.1.15 |
Example request
curl "https://api.toolsxpo.com/v1/ip-to-cidr?startIp=192.168.1.0&endIp=192.168.1.15" \
-H "Authorization: Bearer $TOOLSXPO_KEY"Response
A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.