One Community event with its thread
GET /v1/community/events/{id}- quién puede llamarla
- Cualquiera
- sin clave y sin sesión
- cuán reciente
- En caché 15 segundos
- solo en el navegador de quien lee · cada respuesta lleva la altura del índice y la del nodo
- qué cuesta, según el caso
include_low_pow=true: 2 peticiones de la cuota
En esta página
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.
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | string | obligatorio | 64 hex characters or a note1… id. |
include_low_pow | consulta | boolean | opcional | Also serve events under the proof-of-work floor (counts as two requests). |
Qué responde
The event and its thread.
| Campo | Tipo | Qué lleva |
|---|---|---|
id | string | The event's id, 64 hex. |
pubkey | string | Its author's public key, 64 hex. |
npub | string o 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 o 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. |
esquema CommunityThread
idstring obligatorio — The event's id, 64 hex.pubkeystring obligatorio — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger obligatorio — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) obligatorio — When the author says it was made: itscreated_at, UTC.contentstring obligatorio — Plain text as signed; never HTML or markdown.tagsarray de array de string obligatorio — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger obligatorio — Committed NIP-13 difficulty.low_powboolean obligatorio — True when its committed proof of work was under the floor in force when it was stored.seen_onarray de string obligatorio — Public relays the event was seen on.relay_urlstring obligatorio — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger obligatorio — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger obligatorio — 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 obligatorio — The kind of subject. · uno de "address", "tx", "block"keystring obligatorio — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
received_atstring (date-time) obligatorio — 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 obligatorio — The event's id, 64 hex.pubkeystring obligatorio — Its author's public key, 64 hex.created_atinteger obligatorio — The time it was signed with, in seconds since 1970-01-01 UTC.kindinteger obligatorio — Its Nostr kind.tagsarray de array de string obligatorio — Every tag, in the order signed.contentstring obligatorio — Its text, as signed.sigstring obligatorio — The signature, 128 hex.
repliesarray de object obligatorio — The comments that reply to the event, newest first, at most 200, each with its own replies.idstring obligatorio — The event's id, 64 hex.pubkeystring obligatorio — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger obligatorio — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) obligatorio — When the author says it was made: itscreated_at, UTC.contentstring obligatorio — Plain text as signed; never HTML or markdown.tagsarray de array de string obligatorio — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger obligatorio — Committed NIP-13 difficulty.low_powboolean obligatorio — True when its committed proof of work was under the floor in force when it was stored.seen_onarray de string obligatorio — Public relays the event was seen on.relay_urlstring obligatorio — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger obligatorio — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger obligatorio — 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 obligatorio — The kind of subject. · uno de "address", "tx", "block"keystring obligatorio — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
repliesarray de CommunityEvent — The comments that reply to that reply, newest first, at most 50.idstring obligatorio — The event's id, 64 hex.pubkeystring obligatorio — Its author's public key, 64 hex.npubstring | null — That key as an npub (NIP-19). Null when it does not encode.kindinteger obligatorio — The event's Nostr kind, as 1111 for a comment and 1985 for a label.created_atstring (date-time) obligatorio — When the author says it was made: itscreated_at, UTC.contentstring obligatorio — Plain text as signed; never HTML or markdown.tagsarray de array de string obligatorio — The i/I/e/p/l/L/k/K/nonce tags.pow_bitsinteger obligatorio — Committed NIP-13 difficulty.low_powboolean obligatorio — True when its committed proof of work was under the floor in force when it was stored.seen_onarray de string obligatorio — Public relays the event was seen on.relay_urlstring obligatorio — Where it came from first (our relay's URL for events accepted at our door).replies_countinteger obligatorio — How many comments reply to it, deleted and hidden ones and those of a banned key left out.zap_countinteger obligatorio — 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 obligatorio — The kind of subject. · uno de "address", "tx", "block"keystring obligatorio — The subject's canonical key.nip73string — The NIP-73 id, e.g. bitcoin:address:<address>.
_metaCommunityMeta obligatorio — The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.noticestring obligatorio — Always: Community content is indexed from Nostr and not endorsed by btcintel.endorsementboolean obligatorio — Always false.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 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. |
Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.
Ejemplo
curl y jq, en cualquier shell.
curl -s 'https://api.btcintel.io/v1/community/events/1?include_low_pow=false' | jq '{id, pubkey, npub}'