Aller au contenu
GET /v1/search

Find nodes by alias

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/lightning-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}