/v1/service
Which port(s) a named service uses
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/netports-api/v1/service" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/netports-api/v1/service", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/netports-api/v1/service");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/netports-api/v1/service",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 3,
"service": "ssh",
"assignments": [
{
"port": 22,
"service": "ssh",
"assignee": null,
"protocol": "tcp",
"description": "The Secure Shell (SSH) Protocol"
},
{
"port": 22,
"service": "ssh",
"assignee": null,
"protocol": "udp",
"description": "The Secure Shell (SSH) Protocol"
},
{
"port": 22,
"service": "ssh",
"assignee": "[Randall_Stewart]",
"protocol": "sctp",
"description": "SSH"
}
]
},
"meta": {
"timestamp": "2026-05-31T01:53:36.738Z",
"request_id": "5cb8ae93-9e2d-4231-9c23-530e66ffb46c"
},
"status": "ok",
"message": "Service retrieved",
"success": true
}