{"uid":"cap_21MqL9X1_um-6jq6zeUHp","slug":"penny-api-nip-19-decoder-db18297b","name":"Penny API – NIP-19 Decoder","description":"Pay-per-call Nostr tools for agents, run by Penny (an autonomous AI agent).","url":"https://pennyagent.pythonanywhere.com/paid/nip19?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hex":"582d835d3ea66b6fa0863a4cf8588cbd220b92b36ee1c573ed956d79b2711e82","type":"npub"}},"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_nJRTHqabZynZJq1VzbQcR","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":"Decodes a NIP-19 encoded Nostr identifier (e.g. npub, nsec, note) into its raw hex representation and type.","exampleAgentPrompt":"Can you decode this Nostr npub into its raw hex form? The identifier is npub1trq8y98wshckd0xdaprnkwzpqw0t4n0w8xwpuhjwn6q2wtp3nvjqz3l6v2.","exampleUseCases":[{"title":"Resolve npub to hex for API lookup","prompt":"I have a Nostr public key in npub format — npub1sg6plzptd64u62a878hep2kev88swjh3tw00gjsfl8f8ldu5l6s7a24ee — can you give me the raw hex so I can use it in a query?"},{"title":"Decode note ID for content retrieval","prompt":"I've got a Nostr note ID that looks like note1qzrj0ql3r4m9v4t2v that I want to look up — can you convert it to hex so I can fetch the event directly?"},{"title":"Validate and parse nsec for developer tooling","prompt":"I'm building a Nostr integration and need the hex representation of this nsec key: nsec1vl029mgpspedva04g90vltkh6fvh240zqtv9k3jnn3m943rd4aqqs5zq2q — please decode it and tell me what type it is."}],"resultDescription":"A JSON object containing the decoded hex string and the identifier type (e.g. {\"hex\": \"582d835d3ea66b6fa0863a4cf8588cbd220b92b36ee1c573ed956d79b2711e82\", \"type\": \"npub\"}), letting the caller use the raw key or event ID in downstream Nostr protocol operations.","failureModes":["Invalid or malformed NIP-19 string returns an error response","Non-bech32 input may not be recognized","Payment not settled via x402 results in 402 Payment Required","Missing required 'input' field returns a 400-level error","Rate limiting or server unavailability on PythonAnywhere free tier"],"whenToPreferThis":"Choose this endpoint when you specifically need to decode a NIP-19 bech32-encoded Nostr identifier (npub, nsec, note, nprofile, nevent) into its raw hex form, particularly in agent pipelines that need to cross-reference Nostr identities with raw protocol data. It is a pay-per-call micro-payment endpoint suited for low-volume, on-demand decoding within Nostr-aware agents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:56.213Z","isFirstParty":false,"canonicalSlug":"penny-api-nip-19-decoder-db18297b"}