btcintel

One Community event with its thread

GET /v1/community/events/{id}
who may call it
Anyone
no key and no session
what it costs
1 request of the quota
tiers and keys
how fresh
Cached for 15 seconds
by the reader's browser alone · every answer carries the index's height and the node's
MCP tool
get_community_event
on the MCP server
what it costs, by case
include_low_pow=true: 2 requests of the quota
On this page

A served comment or label by id (64 hex or note1…) with its replies two levels deep, what it is about (subject), when btcintel took it in after checking its id and its signature (received_at), and the note as its author signed it (signed), every tag with its signature. 404 when unknown, deleted by its author, hidden by moderation or (without include_low_pow) under the proof-of-work floor. Indexed from Nostr, not endorsed.

Parameters

NameWhereTypeRequiredWhat it does
idpathstringrequired64 hex characters or a note1… id.
include_low_powquerybooleanoptionalAlso serve events under the proof-of-work floor (counts as two requests).

What it answers

The event and its thread.

FieldTypeWhat it carries
idstringThe event's id, 64 hex.
pubkeystringIts author's public key, 64 hex.
npubstring or nullThat key as an npub (NIP-19). Null when it does not encode.
kindintegerThe event's Nostr kind, as 1111 for a comment and 1985 for a label.
created_atstringWhen the author says it was made: its created_at, UTC.
contentstringPlain text as signed; never HTML or markdown.
tagsarrayThe i/I/e/p/l/L/k/K/nonce tags.
pow_bitsintegerCommitted NIP-13 difficulty.
low_powbooleanTrue when its committed proof of work was under the floor in force when it was stored.
seen_onarrayPublic relays the event was seen on.
relay_urlstringWhere it came from first (our relay's URL for events accepted at our door).
replies_countintegerHow many comments reply to it, deleted and hidden ones and those of a banned key left out.
zap_countintegerDistinct zappers (community signal, not endorsement).
zap_satsintegerPresent when zap_count > 0.
subjectobjectWhat it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
received_atstringWhen btcintel took the event in, after checking its id and its signature; an event that fails is never stored.
signedobjectThe event as its author signed it and btcintel stored it. Absent when the kept copy does not read as an event.
repliesarrayThe comments that reply to the event, newest first, at most 200, each with its own replies.
replies[].idstringThe event's id, 64 hex.
replies[].pubkeystringIts author's public key, 64 hex.
replies[].npubstring or nullThat key as an npub (NIP-19). Null when it does not encode.
replies[].kindintegerThe event's Nostr kind, as 1111 for a comment and 1985 for a label.
replies[].created_atstringWhen the author says it was made: its created_at, UTC.
replies[].contentstringPlain text as signed; never HTML or markdown.
replies[].tagsarrayThe i/I/e/p/l/L/k/K/nonce tags.
replies[].pow_bitsintegerCommitted NIP-13 difficulty.
replies[].low_powbooleanTrue when its committed proof of work was under the floor in force when it was stored.
replies[].seen_onarrayPublic relays the event was seen on.
replies[].relay_urlstringWhere it came from first (our relay's URL for events accepted at our door).
replies[].replies_countintegerHow many comments reply to it, deleted and hidden ones and those of a banned key left out.
replies[].zap_countintegerDistinct zappers (community signal, not endorsement).
replies[].zap_satsintegerPresent when zap_count > 0.
replies[].subjectobjectWhat it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
replies[].repliesarrayThe comments that reply to that reply, newest first, at most 50.
_metaobjectThe notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.
schema CommunityThread
  • id string required — The event's id, 64 hex.
  • pubkey string required — Its author's public key, 64 hex.
  • npub string | null — That key as an npub (NIP-19). Null when it does not encode.
  • kind integer required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.
  • created_at string (date-time) required — When the author says it was made: its created_at, UTC.
  • content string required — Plain text as signed; never HTML or markdown.
  • tags array of array of string required — The i/I/e/p/l/L/k/K/nonce tags.
  • pow_bits integer required — Committed NIP-13 difficulty.
  • low_pow boolean required — True when its committed proof of work was under the floor in force when it was stored.
  • seen_on array of string required — Public relays the event was seen on.
  • relay_url string required — Where it came from first (our relay's URL for events accepted at our door).
  • replies_count integer required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.
  • zap_count integer required — Distinct zappers (community signal, not endorsement).
  • zap_sats integer — Present when zap_count > 0.
  • subject CommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
    • kind string required — The kind of subject. · one of "address", "tx", "block"
    • key string required — The subject's canonical key.
    • nip73 string — The NIP-73 id, e.g. bitcoin:address:<address>.
  • received_at string (date-time) required — When btcintel took the event in, after checking its id and its signature; an event that fails is never stored.
  • signed CommunitySignedEvent — The event as its author signed it and btcintel stored it. Absent when the kept copy does not read as an event.
    • id string required — The event's id, 64 hex.
    • pubkey string required — Its author's public key, 64 hex.
    • created_at integer required — The time it was signed with, in seconds since 1970-01-01 UTC.
    • kind integer required — Its Nostr kind.
    • tags array of array of string required — Every tag, in the order signed.
    • content string required — Its text, as signed.
    • sig string required — The signature, 128 hex.
  • replies array of object required — The comments that reply to the event, newest first, at most 200, each with its own replies.
    • id string required — The event's id, 64 hex.
    • pubkey string required — Its author's public key, 64 hex.
    • npub string | null — That key as an npub (NIP-19). Null when it does not encode.
    • kind integer required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.
    • created_at string (date-time) required — When the author says it was made: its created_at, UTC.
    • content string required — Plain text as signed; never HTML or markdown.
    • tags array of array of string required — The i/I/e/p/l/L/k/K/nonce tags.
    • pow_bits integer required — Committed NIP-13 difficulty.
    • low_pow boolean required — True when its committed proof of work was under the floor in force when it was stored.
    • seen_on array of string required — Public relays the event was seen on.
    • relay_url string required — Where it came from first (our relay's URL for events accepted at our door).
    • replies_count integer required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.
    • zap_count integer required — Distinct zappers (community signal, not endorsement).
    • zap_sats integer — Present when zap_count > 0.
    • subject CommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
      • kind string required — The kind of subject. · one of "address", "tx", "block"
      • key string required — The subject's canonical key.
      • nip73 string — The NIP-73 id, e.g. bitcoin:address:<address>.
    • replies array of CommunityEvent — The comments that reply to that reply, newest first, at most 50.
      • id string required — The event's id, 64 hex.
      • pubkey string required — Its author's public key, 64 hex.
      • npub string | null — That key as an npub (NIP-19). Null when it does not encode.
      • kind integer required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.
      • created_at string (date-time) required — When the author says it was made: its created_at, UTC.
      • content string required — Plain text as signed; never HTML or markdown.
      • tags array of array of string required — The i/I/e/p/l/L/k/K/nonce tags.
      • pow_bits integer required — Committed NIP-13 difficulty.
      • low_pow boolean required — True when its committed proof of work was under the floor in force when it was stored.
      • seen_on array of string required — Public relays the event was seen on.
      • relay_url string required — Where it came from first (our relay's URL for events accepted at our door).
      • replies_count integer required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.
      • zap_count integer required — Distinct zappers (community signal, not endorsement).
      • zap_sats integer — Present when zap_count > 0.
      • subject CommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
        • kind string required — The kind of subject. · one of "address", "tx", "block"
        • key string required — The subject's canonical key.
        • nip73 string — The NIP-73 id, e.g. bitcoin:address:<address>.
  • _meta CommunityMeta required — The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.
    • notice string required — Always: Community content is indexed from Nostr and not endorsed by btcintel.
    • endorsement boolean required — Always false.

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.
501not_configurednot_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it.

Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.

Example

curl and jq, in any shell.

curl -s 'https://api.btcintel.io/v1/community/events/1?include_low_pow=false' | jq '{id, pubkey, npub}'