{"uid":"cap_mcmWnIgbsOB8zCL_JEzo9","slug":"nostr-key-identifier-converter-2e592913","name":"Nostr Key/Identifier Converter","description":"Takes any public NIP-19 identifier or a 64-character hex value and returns every representation it can be expressed as. A decoded nprofile or nevent yields not only the key or event id but also the relay hints, the author and the kind that the TLV form carries — precisely the fields that make a follow-up query targeted, and precisely what is lost by code that only handles npub.","url":"https://nostr.halowerk.com/key-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"kind":{"type":"integer","maximum":65535,"minimum":0,"description":"Event kind for the generated nevent or naddr."},"input":{"type":"string","description":"npub, note, nprofile, nevent, naddr, or 64 hex characters."},"assume":{"enum":["pubkey","event_id","both"],"type":"string","default":"both","description":"How to read bare hex. Ignored for bech32 input, which is unambiguous."},"author":{"type":"string","description":"Author public key as hex or npub, for building an nevent or naddr."},"relays":{"type":"array","items":{"type":"string"},"maxItems":8,"description":"wss relay hints to embed in the generated nprofile, nevent or naddr."},"identifier":{"type":"string","maxLength":200,"description":"The d tag value for building an naddr. Requires author and kind."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o2XxOsFLI_d-gdxVPjcSE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any NIP-19 bech32 identifier or 64-character hex value into all of its equivalent representations, including TLV-decoded relay hints, author, and kind fields.","exampleAgentPrompt":"Convert this nostr nprofile identifier nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhky6t5vdhkjm3prfmhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5nxnepm to hex and give me all the relay hints and author pubkey it contains.","exampleUseCases":[{"title":"Resolve nprofile for relay-targeted query","prompt":"I have this nprofile — nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mg — can you decode it and tell me the hex pubkey plus every relay hint embedded in it so I can query those specific relays?"},{"title":"Convert hex pubkey to npub for display","prompt":"Take this 64-character hex public key 3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d and give me the npub and nprofile forms I can show to users."},{"title":"Extract event metadata from nevent","prompt":"Decode this nevent — nevent1qqstna2yrezu5wghjvswqqculvvwxsrcvu7uc0f78gan4xqhvz49d9spr9mhxue69uhkummnw3ezuamfdejj7q3ql3mnpb2p9r5cuzxsuaah8ajwnsj06fj6ghpkvmwxj4tpuusqnp6jsc6qxqq — and tell me the event ID in hex, the author pubkey, the kind number, and any relay hints it carries."}],"resultDescription":"A JSON object containing all possible representations of the input identifier: hex and bech32 forms (npub/nsec/note/nprofile/nevent as applicable), plus TLV-decoded fields such as relay hints (array of relay URLs), author public key (hex), and event kind (integer) when the input encodes them.","failureModes":["Invalid or malformed bech32 string returns an error indicating the identifier could not be parsed","Hex string of wrong length (not 64 characters) returns a validation error","Unsupported NIP-19 prefix returns an error","Network or server error returns HTTP 5xx"],"whenToPreferThis":"Use this endpoint whenever you need to translate between Nostr identifier formats — especially when you need the full TLV payload (relay hints, author, kind) from an nprofile or nevent that simpler converters discard. Prefer it over generic bech32 libraries when relay-targeted follow-up queries depend on those embedded hints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:58.567Z","isFirstParty":false}