btcintel

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

GET /v1/community/recent
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
None
what it costs, by case
include_low_pow=true: 2 requests of the quota
On this page

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.

Parameters

NameWhereTypeRequiredWhat it does
kindsquerystringoptionalComma-separated: 1111 (comments) and/or 1985 (labels); both by default.
pubkeyquerystringoptionalOne author's key, 64 hex characters or npub1…: only that author's notes.
subject_kindquerystringoptionaladdress, tx or block: only the notes about that kind of subject. Any other value is a 400.
summaryquerystringoptionaltrue or 1 adds summary, the index in sum, to the answer; false or 0 does not. Any other value is a 400.
include_low_powquerybooleanoptionalAlso serve notes under the proof-of-work floor (counts as two requests).
cursorquerystringoptionalThe next_cursor of the previous page.
limitqueryintegeroptionalNotes per page: 50 by default, at most 200; a larger value is a 400.

What it answers

A page of notes.

FieldTypeWhat it carries
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 or 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 or 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.
schema
  • items array of CommunityEvent required — 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 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>.
  • next_cursor string | null required — 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 required — The comments the list serves.
      • total integer required — How many.
      • by_kind CommunityKindCounts required — The same, by the kind of subject they are about.
        • address integer required — About an address.
        • tx integer required — About a transaction.
        • block integer required — About a block.
    • subjects object required — The distinct subjects those notes are about.
      • total integer required — How many.
      • by_kind CommunityKindCounts required — The same, by kind.
        • address integer required — About an address.
        • tx integer required — About a transaction.
        • block integer required — About a block.
    • keys object required — The distinct keys that wrote those notes.
      • total integer required — How many.
    • labels integer required — The labels the list serves: from listed labelers, or with pubkey that key's.
    • newest_at string | null (date-time) required — When the newest of those notes says it was made. Null when there is none.
    • oldest_at string | null (date-time) required — When the oldest of them says it was made. Null when there is none.
  • _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.

Absent and empty

The caseIn the answer
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.

Errors

StatusCodeWhen
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.

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