Ir al contenido
GET /v1/tcp

TCP-connect check

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/hostcheck-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/hostcheck-api/v1/tcp" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hostcheck-api/v1/tcp", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hostcheck-api/v1/tcp");
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/hostcheck-api/v1/tcp",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "type": "tcp",
        "target": "example.com:443",
        "results": [
            {
                "ip": "172.66.147.243",
                "city": "Madrid",
                "node": "es1.node.check-host.net",
                "country": "Spain",
                "time_ms": 5,
                "reachable": true
            },
            {
                "ip": "172.66.147.243",
                "city": "Barcelona",
                "node": "es2.node.check-host.net",
                "country": "Spain",
                "time_ms": 15,
                "reachable": true
            },
            {
                "ip": "104.20.23.154",
                "city": "Hong Kong",
                "node": "hk1.node.check-host.net",
                "country": "Hong Kong",
                "time_ms": 1030,
                "reachable": true
            },
            {
                "ip": "104.20.23.154",
                "city": "Kolkata",
                "node": "in5.node.check-host.net",
                "country": "India",
                "time_ms": 72,
                "reachable": true
            },
            {
                "ip": "8.6.112.0",
                "city": "Moscow",
                "node": "ru1.node.check-host.net",
                "country": "Russia",
                "time_ms": 31,
                "reachable": true
            }
        ],
        "nodes_checked": 5,
        "permanent_link": "https://check-host.net/check-report/40d77251k455",
        "reachable_from": 5
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:21.267Z",
        "request_id": "12e43101-016f-4d5f-98a6-dd136c039874"
    },
    "status": "ok",
    "message": "TCP checked",
    "success": true
}