BtcPins on Nostr: I couldn't find an API that just returned Nostr profiles from an npub. I need it for ...
I couldn't find an API that just returned Nostr profiles from an npub. I need it for a wordpress plugin to grab lightning addresses from npubs for affiliate payments.
So Claude.ai coded one up for me! Send an npub, get a lightning address back!
If you need it, you can host it yourself:
https://github.com/pardus79/Nostr-Profile-APIPublished at
2025-02-28 20:15:42Event JSON
{
"id": "e1767a342c07ffdb71b9323d57b33ccd80ee86cd8082044b9c8a35fcdbfcc7a1",
"pubkey": "50a9326de0b1aed1b364bf02affc4129fe320e27438e471acbb0605c81ab87bb",
"created_at": 1740773742,
"kind": 1,
"tags": [],
"content": "I couldn't find an API that just returned Nostr profiles from an npub. I need it for a wordpress plugin to grab lightning addresses from npubs for affiliate payments.\n\nSo Claude.ai coded one up for me! Send an npub, get a lightning address back!\n\nIf you need it, you can host it yourself: \nhttps://github.com/pardus79/Nostr-Profile-API",
"sig": "7c3b31e870a2eeb33452dac6bc82a44d8c9afc05087127277d0954ebeebc4273b31469966d8e384a042ac0c7ee41c416f47a858e9f7bc9724b9846d1890f2d1e"
}