CIDR-Rechner API
Expandiert jeden IPv4- oder IPv6-CIDR-Block in Netz, Broadcast, Host-Bereich, Netzmaske und Adresszähler.
Anforderungsheader
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | cidr.p.rapidapi.com |
Endpunkte
/v1/cidr Expand a CIDR block into network, range, and mask details
Parameter
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
cidr | string | required | — | <= 64 chars; matches \S |
Codebeispiele
curl --request GET \
--url 'https://cidr.p.rapidapi.com/v1/cidr?cidr=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: cidr.p.rapidapi.com' const url = "https://cidr.p.rapidapi.com/v1/cidr?cidr=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "cidr.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://cidr.p.rapidapi.com/v1/cidr"
querystring = {"cidr": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "cidr.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) Interaktives Beispiel
$ GET /v1/cidr?cidr=10.0.0.0/22
{"cidr":"10.0.0.0/22","version":4,"network":"10.0.0.0","broadcast":"10.0.3.255","first_host":"10.0.0.1","last_host":"10.0.3.254","netmask":"255.255.252.0","wildcard":"0.0.3.255","prefix":22,"total_addresses":1024,"usable_hosts":1022} Abonnieren und lizenzieren
Greifen Sie auf diese API mit kommerziellen Stufen auf RapidAPI zu. Flexible Pläne für Nebenprojekte, Startups und großvolumige Produktionsarchitekturen.
Entwicklerunterstützung
Benötigen Sie Hilfe bei der Integration oder haben Sie eine individuelle Endpunktanfrage? Unser Technikteam ist hier, um Sie bei der Authentifizierung, Nutzlastschemata und der Erhöhung der Hochfrequenz-Ratenbegrenzung zu unterstützen.
Systemleistung
Rund um die Uhr überwacht mit einem SLA für eine Verfügbarkeit von 99,9 %. Basierend auf Cloud-nativen Microservices mit global verteiltem Edge-Caching, um Reaktionszeiten mit äußerst geringer Latenz zu gewährleisten.