One Community event with its thread
GET /v1/community/events/{id}- who may call it
- Anyone
- no key and no session
- how fresh
- Cached for 15 seconds
- by the reader's browser alone · every answer carries the index's height and the node's
- 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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | string | required | 64 hex characters or a note1… id. |
include_low_pow | query | boolean | optional | Also serve events under the proof-of-work floor (counts as two requests). |
What it answers
The event and its thread.
| Field | Type | What it carries |
|---|---|---|
id | string | The event's id, 64 hex. |
pubkey | string | Its author's public key, 64 hex. |
npub | string or null | That key as an npub (NIP-19). Null when it does not encode. |
kind | integer | The event's Nostr kind, as 1111 for a comment and 1985 for a label. |
created_at | string | When the author says it was made: its created_at, UTC. |
content | string | Plain text as signed; never HTML or markdown. |
tags | array | The i/I/e/p/l/L/k/K/nonce tags. |
pow_bits | integer | Committed NIP-13 difficulty. |
low_pow | boolean | True when its committed proof of work was under the floor in force when it was stored. |
seen_on | array | Public relays the event was seen on. |
relay_url | string | Where it came from first (our relay's URL for events accepted at our door). |
replies_count | integer | How many comments reply to it, deleted and hidden ones and those of a banned key left out. |
zap_count | integer | Distinct zappers (community signal, not endorsement). |
zap_sats | integer | Present when zap_count > 0. |
subject | object | What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read. |
received_at | string | When btcintel took the event in, after checking its id and its signature; an event that fails is never stored. |
signed | object | The event as its author signed it and btcintel stored it. Absent when the kept copy does not read as an event. |
replies | array | The comments that reply to the event, newest first, at most 200, each with its own replies. |
replies[].id | string | The event's id, 64 hex. |
replies[].pubkey | string | Its author's public key, 64 hex. |
replies[].npub | string or null | That key as an npub (NIP-19). Null when it does not encode. |
replies[].kind | integer | The event's Nostr kind, as 1111 for a comment and 1985 for a label. |
replies[].created_at | string | When the author says it was made: its created_at, UTC. |
replies[].content | string | Plain text as signed; never HTML or markdown. |
replies[].tags | array | The i/I/e/p/l/L/k/K/nonce tags. |
replies[].pow_bits | integer | Committed NIP-13 difficulty. |
replies[].low_pow | boolean | True when its committed proof of work was under the floor in force when it was stored. |
replies[].seen_on | array | Public relays the event was seen on. |
replies[].relay_url | string | Where it came from first (our relay's URL for events accepted at our door). |
replies[].replies_count | integer | How many comments reply to it, deleted and hidden ones and those of a banned key left out. |
replies[].zap_count | integer | Distinct zappers (community signal, not endorsement). |
replies[].zap_sats | integer | Present when zap_count > 0. |
replies[].subject | object | What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read. |
replies[].replies | array | The comments that reply to that reply, newest first, at most 50. |
_meta | object | The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel. |
schema CommunityThread
idstring required — The event's id, 64 hex.pubkeystring required — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) required — When the author says it was made: itscreated_at, UTC.contentstring required — Plain text as signed; never HTML or markdown.tagsarray of array of string required — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger required — Committed NIP-13 difficulty.low_powboolean required — True when its committed proof of work was under the floor in force when it was stored.seen_onarray of string required — Public relays the event was seen on.relay_urlstring required — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger required — Distinct zappers (community signal, not endorsement).zap_satsinteger — Present when zap_count > 0.subjectCommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.kindstring required — The kind of subject. · one of "address", "tx", "block"keystring required — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
received_atstring (date-time) required — When btcintel took the event in, after checking its id and its signature; an event that fails is never stored.signedCommunitySignedEvent — The event as its author signed it and btcintel stored it. Absent when the kept copy does not read as an event.idstring required — The event's id, 64 hex.pubkeystring required — Its author's public key, 64 hex.created_atinteger required — The time it was signed with, in seconds since 1970-01-01 UTC.kindinteger required — Its Nostr kind.tagsarray of array of string required — Every tag, in the order signed.contentstring required — Its text, as signed.sigstring required — The signature, 128 hex.
repliesarray of object required — The comments that reply to the event, newest first, at most 200, each with its own replies.idstring required — The event's id, 64 hex.pubkeystring required — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) required — When the author says it was made: itscreated_at, UTC.contentstring required — Plain text as signed; never HTML or markdown.tagsarray of array of string required — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger required — Committed NIP-13 difficulty.low_powboolean required — True when its committed proof of work was under the floor in force when it was stored.seen_onarray of string required — Public relays the event was seen on.relay_urlstring required — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger required — Distinct zappers (community signal, not endorsement).zap_satsinteger — Present when zap_count > 0.subjectCommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.kindstring required — The kind of subject. · one of "address", "tx", "block"keystring required — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
repliesarray of CommunityEvent — The comments that reply to that reply, newest first, at most 50.idstring required — The event's id, 64 hex.pubkeystring required — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger required — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) required — When the author says it was made: itscreated_at, UTC.contentstring required — Plain text as signed; never HTML or markdown.tagsarray of array of string required — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger required — Committed NIP-13 difficulty.low_powboolean required — True when its committed proof of work was under the floor in force when it was stored.seen_onarray of string required — Public relays the event was seen on.relay_urlstring required — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger required — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger required — Distinct zappers (community signal, not endorsement).zap_satsinteger — Present when zap_count > 0.subjectCommunitySubject — What it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.kindstring required — The kind of subject. · one of "address", "tx", "block"keystring required — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
_metaCommunityMeta required — The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.noticestring required — Always: Community content is indexed from Nostr and not endorsed by btcintel.endorsementboolean required — Always false.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 404 | not_found | not_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. |
| 429 | quota_exceeded | quota_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. |
| 501 | not_configured | not_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}'