curl -X POST 'https://app.onefirewall.com/api/v1/info/networks' \
-H "Authorization: Bearer $OFA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ips": ["167.94.138.35", "198.235.24.20"]}'import requests
url = "https://app.onefirewall.com/api/v1/info/networks"
payload = { "ips": ["167.94.138.35", "198.235.24.20", "80.82.77.40", "10.0.0.1"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ips: ['167.94.138.35', '198.235.24.20', '80.82.77.40', '10.0.0.1']})
};
fetch('https://app.onefirewall.com/api/v1/info/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/info/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ips' => [
'167.94.138.35',
'198.235.24.20',
'80.82.77.40',
'10.0.0.1'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/info/networks"
payload := strings.NewReader("{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/info/networks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/info/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"networks": {
"167.94.138.35": {
"id": "censys",
"name": "Censys",
"category_label": "Internet scanner",
"logo": "/assets/images/providers/censys.png",
"asn": "AS398324",
"as_name": "Censys, Inc."
},
"198.235.24.20": {
"id": "paloalto-xpanse",
"name": "Palo Alto Xpanse",
"category_label": "Internet scanner",
"logo": "/assets/images/providers/paloalto.png",
"asn": "AS396982",
"as_name": "Google LLC"
},
"80.82.77.40": {
"id": "AS202425",
"name": "IP Volume inc",
"category_label": "",
"logo": "",
"asn": "AS202425",
"as_name": "IP Volume inc"
},
"10.0.0.1": null
}
}<string><string><string><string><string>Network owners of many IPs
Who owns the network of each IPv4 / IPv6 address, in one call (used by the dashboard’s Attacker Networks chart): the provider or internet scanner when the IP is in its ranges (as in GET /api/v1/info/provider/{ip}), otherwise the owner of the AS announcing it. Private, reserved or unknown addresses map to null; invalid entries and duplicates are skipped. Local lookups only.
Roles: Super Admin (0), Member (1), Member Admin (10), Member Mobile (20).
Cost: free.
curl -X POST 'https://app.onefirewall.com/api/v1/info/networks' \
-H "Authorization: Bearer $OFA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ips": ["167.94.138.35", "198.235.24.20"]}'import requests
url = "https://app.onefirewall.com/api/v1/info/networks"
payload = { "ips": ["167.94.138.35", "198.235.24.20", "80.82.77.40", "10.0.0.1"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ips: ['167.94.138.35', '198.235.24.20', '80.82.77.40', '10.0.0.1']})
};
fetch('https://app.onefirewall.com/api/v1/info/networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/info/networks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ips' => [
'167.94.138.35',
'198.235.24.20',
'80.82.77.40',
'10.0.0.1'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/info/networks"
payload := strings.NewReader("{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/info/networks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/info/networks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ips\": [\n \"167.94.138.35\",\n \"198.235.24.20\",\n \"80.82.77.40\",\n \"10.0.0.1\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"networks": {
"167.94.138.35": {
"id": "censys",
"name": "Censys",
"category_label": "Internet scanner",
"logo": "/assets/images/providers/censys.png",
"asn": "AS398324",
"as_name": "Censys, Inc."
},
"198.235.24.20": {
"id": "paloalto-xpanse",
"name": "Palo Alto Xpanse",
"category_label": "Internet scanner",
"logo": "/assets/images/providers/paloalto.png",
"asn": "AS396982",
"as_name": "Google LLC"
},
"80.82.77.40": {
"id": "AS202425",
"name": "IP Volume inc",
"category_label": "",
"logo": "",
"asn": "AS202425",
"as_name": "IP Volume inc"
},
"10.0.0.1": null
}
}<string><string><string><string><string>Authorizations
JWT signed (HS256) with a per-user server-side secret; revocable per user. Token handling follows RFC8725 (JWT best current practices): algorithm pinned by the server, no none, claims checked against the live user record. See the API description for the compatibility forms (Basic, query parameter).

