btcintel

The change feed of the watched subjects

GET /v1/watch/changes
quién puede llamarla
Una clave o una sesión
nivel t2 o superior · la sesión de una clave Nostr
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
get_watch_changes
en el servidor MCP
En esta página

The change feed after since, restricted to the caller's watched subjects, plus community: per watched subject, how many comments and labels arrived after the cursor's time (counts only, the lens applied; every event when since is 0). Poll with next_cursor; honour Retry-After on 429.

Parámetros

NombreDóndeTipoObligatorioQué hace
sinceconsultaintegeropcionalA cursor from a previous page; 0 or absent for the start.
limitconsultaintegeropcionalRows per page: 100 by default, at most 1,000; a value outside 1 to 1,000 reads as 100.

Qué responde

The page.

CampoTipoQué lleva
itemsarrayThe changes to the watched subjects after since, in seq order, at most limit. Empty when there is none.
items[].seqintegerThe change's place in the feed: a number that only grows.
items[].atstringWhen the change was written.
items[].claim_idstringThe id of the claim that changed: ann_<n>, att_<n>, rel_<n> or evt_<n>.
items[].kindstringThe kind of that claim.
items[].actionstringWhat happened: created when the claim entered the feed, at its first version or when it became current; updated for a new version; expired when it stopped holding; retracted when it was retracted.
items[].subjectobjectThe subject the claim is on. Absent when the change names none.
communityarrayPer watched subject with activity after the cursor's time: counts only, never the notes.
community[].subjectobjectThe watched subject.
community[].commentsintegerIts comments received after the time of the since change; every one when since is 0.
community[].labelsintegerIts labels received in that time.
next_cursorintegerThe seq of the page's last change: pass it as since for the next page. An empty page gives back the since it read from.
watchedintegerSubjects on the list.
_metaobjectThe notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.
esquema WatchChanges
  • items array de Change obligatorio — The changes to the watched subjects after since, in seq order, at most limit. Empty when there is none.
    • seq integer — The change's place in the feed: a number that only grows.
    • at string (date-time) — When the change was written.
    • claim_id string — The id of the claim that changed: ann_<n>, att_<n>, rel_<n> or evt_<n>.
    • kind string — The kind of that claim. · uno de "annotation", "attribution", "relation", "event"
    • action string — What happened: created when the claim entered the feed, at its first version or when it became current; updated for a new version; expired when it stopped holding; retracted when it was retracted. · uno de "created", "updated", "expired", "retracted"
    • subject Subject — The subject the claim is on. Absent when the change names none.
      • kind string — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
  • community array de object obligatorio — Per watched subject with activity after the cursor's time: counts only, never the notes.
    • subject Subject obligatorio — The watched subject.
      • kind string — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
    • comments integer obligatorio — Its comments received after the time of the since change; every one when since is 0.
    • labels integer obligatorio — Its labels received in that time.
  • next_cursor integer obligatorio — The seq of the page's last change: pass it as since for the next page. An empty page gives back the since it read from.
  • watched integer obligatorio — Subjects on the list.
  • _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.

Errores

EstadoCódigoCuándo
400invalid_inputMalformed input (invalid_input).
401unauthorizedunauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing.
403forbiddenforbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which.
422nip98_invalidThe NIP-98 event was refused (nip98_invalid): wrong URL or method, stale, bad signature, wrong payload hash, or used before; the message names the reason.
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/watch/changes?limit=100' \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq '{next_cursor, watched}'

This route needs a key. Set BTCINTEL_KEY in your environment first: the snippet reads it from there and holds no key. The description above names the tiers the route takes.