btcintel

The Community firehose — recent notes across subjects, or one author's notes

GET /v1/community/recent
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
1 petición de la cuota
niveles y claves
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
Herramienta MCP
Ninguna
qué cuesta, según el caso
include_low_pow=true: 2 peticiones de la cuota
En esta página

Served comments that carry a subject and labels from listed labelers, newest first, low-PoW excluded. With pubkey= the page holds that one author's notes: the comments and labels the index holds from that key, newest first, the author's labels included whether or not the key is a listed labeler (as labelers= does on a subject page); a note deleted by its author is not listed. subject_kind narrows the page to the notes about one kind of subject, and each note says what it is about (subject). With summary=true the answer also carries the index in sum, read on the page's own snapshot. include_low_pow=true also serves notes under the proof-of-work floor and counts as two requests. 400 invalid_input for a malformed pubkey, or a subject_kind or a summary it does not take. Indexed from Nostr, not endorsed.

Parámetros

NombreDóndeTipoObligatorioQué hace
kindsconsultastringopcionalComma-separated: 1111 (comments) and/or 1985 (labels); both by default.
pubkeyconsultastringopcionalOne author's key, 64 hex characters or npub1…: only that author's notes.
subject_kindconsultastringopcionaladdress, tx or block: only the notes about that kind of subject. Any other value is a 400.
summaryconsultastringopcionaltrue or 1 adds summary, the index in sum, to the answer; false or 0 does not. Any other value is a 400.
include_low_powconsultabooleanopcionalAlso serve notes under the proof-of-work floor (counts as two requests).
cursorconsultastringopcionalThe next_cursor of the previous page.
limitconsultaintegeropcionalNotes per page: 50 by default, at most 200; a larger value is a 400.

Qué responde

A page of notes.

CampoTipoQué lleva
itemsarrayServed comments that carry a subject, and labels from listed labelers, newest first; with pubkey, that author's comments and labels; about the subject_kind asked, those alone. Empty when there is none.
items[].idstringThe event's id, 64 hex.
items[].pubkeystringIts author's public key, 64 hex.
items[].npubstring o nullThat key as an npub (NIP-19). Null when it does not encode.
items[].kindintegerThe event's Nostr kind, as 1111 for a comment and 1985 for a label.
items[].created_atstringWhen the author says it was made: its created_at, UTC.
items[].contentstringPlain text as signed; never HTML or markdown.
items[].tagsarrayThe i/I/e/p/l/L/k/K/nonce tags.
items[].pow_bitsintegerCommitted NIP-13 difficulty.
items[].low_powbooleanTrue when its committed proof of work was under the floor in force when it was stored.
items[].seen_onarrayPublic relays the event was seen on.
items[].relay_urlstringWhere it came from first (our relay's URL for events accepted at our door).
items[].replies_countintegerHow many comments reply to it, deleted and hidden ones and those of a banned key left out.
items[].zap_countintegerDistinct zappers (community signal, not endorsement).
items[].zap_satsintegerPresent when zap_count > 0.
items[].subjectobjectWhat it is about: a comment's root subject, a label's target. Absent when it names none btcintel can read.
next_cursorstring o nullThe cursor of the next page. Null when this page came back short.
summaryobjectThe index in sum, with summary=true only.
_metaobjectThe notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.
esquema
  • items array de CommunityEvent obligatorio — Served comments that carry a subject, and labels from listed labelers, newest first; with pubkey, that author's comments and labels; about the subject_kind asked, those alone. Empty when there is none.
    • id string obligatorio — The event's id, 64 hex.
    • pubkey string obligatorio — 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 obligatorio — The event's Nostr kind, as 1111 for a comment and 1985 for a label.
    • created_at string (date-time) obligatorio — When the author says it was made: its created_at, UTC.
    • content string obligatorio — Plain text as signed; never HTML or markdown.
    • tags array de array de string obligatorio — The i/I/e/p/l/L/k/K/nonce tags.
    • pow_bits integer obligatorio — Committed NIP-13 difficulty.
    • low_pow boolean obligatorio — True when its committed proof of work was under the floor in force when it was stored.
    • seen_on array de string obligatorio — Public relays the event was seen on.
    • relay_url string obligatorio — Where it came from first (our relay's URL for events accepted at our door).
    • replies_count integer obligatorio — How many comments reply to it, deleted and hidden ones and those of a banned key left out.
    • zap_count integer obligatorio — 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 obligatorio — The kind of subject. · uno de "address", "tx", "block"
      • key string obligatorio — The subject's canonical key.
      • nip73 string — The NIP-73 id, e.g. bitcoin:address:<address>.
  • next_cursor string | null obligatorio — The cursor of the next page. Null when this page came back short.
  • summary CommunitySummary — The index in sum, with summary=true only.
    • notes object obligatorio — The comments the list serves.
      • total integer obligatorio — How many.
      • by_kind CommunityKindCounts obligatorio — The same, by the kind of subject they are about.
        • address integer obligatorio — About an address.
        • tx integer obligatorio — About a transaction.
        • block integer obligatorio — About a block.
    • subjects object obligatorio — The distinct subjects those notes are about.
      • total integer obligatorio — How many.
      • by_kind CommunityKindCounts obligatorio — The same, by kind.
        • address integer obligatorio — About an address.
        • tx integer obligatorio — About a transaction.
        • block integer obligatorio — About a block.
    • keys object obligatorio — The distinct keys that wrote those notes.
      • total integer obligatorio — How many.
    • labels integer obligatorio — The labels the list serves: from listed labelers, or with pubkey that key's.
    • newest_at string | null (date-time) obligatorio — When the newest of those notes says it was made. Null when there is none.
    • oldest_at string | null (date-time) obligatorio — When the oldest of them says it was made. Null when there is none.
  • _meta CommunityMeta obligatorio — The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.
    • notice string obligatorio — Always: Community content is indexed from Nostr and not endorsed by btcintel.
    • endorsement boolean obligatorio — Always false.

Ausente y vacío

El casoEn la respuesta
The index holds no note for the page, or none from that pubkey, or none about the subject_kind asked.items: []: known, not absent. With summary, a count of what holds none is 0, and newest_at and oldest_at are null when no note is counted.
The Community ingester has never run.501 not_configured: absent, not empty, never an empty list.

Errores

EstadoCódigoCuándo
400invalid_inputMalformed input (invalid_input).
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.

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/recent?include_low_pow=false&limit=50' | jq