Naar de inhoud
GET /v1/search

Find nodes by alias

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/lightning-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 3,
        "nodes": [
            {
                "alias": "blocktank-bitfinex-integration",
                "country": null,
                "channels": 1,
                "first_seen": null,
                "public_key": "0269c79a76518d58320044208838dca1705ba6b8e8e4465bc9028d778ab774d291",
                "capacity_btc": 0.0043,
                "capacity_sats": 430367
            },
            {
                "alias": "BITFINEXCH",
                "country": null,
                "channels": null,
                "first_seen": null,
                "public_key": "03ef018c550ac4dedb42788fdffdf859b4bff75bd8505b8c91fc44d05b8b4c5726",
                "capacity_btc": null,
                "capacity_sats": null
            },
            {
                "alias": "LN-Bitfinex",
                "country": null,
                "channels": null,
                "first_seen": null,
                "public_key": "02aa40ca5a360cf9735da325d03932025a9940cb8689c96d0479152ba301259893",
                "capacity_btc": null,
                "capacity_sats": null
            }
        ],
        "query": "bitfinex"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:51.674Z",
        "request_id": "6b7912da-470e-4178-bcbc-a8cec7159cc8"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}