btcintel

The change feed of the watched subjects

GET /v1/watch/changes
who may call it
A key or a session
tier t2 or above · the session of a Nostr key
what it costs
1 request of the quota
tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
get_watch_changes
on the MCP server
On this page

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.

Parameters

NameWhereTypeRequiredWhat it does
sincequeryintegeroptionalA cursor from a previous page; 0 or absent for the start.
limitqueryintegeroptionalRows per page: 100 by default, at most 1,000; a value outside 1 to 1,000 reads as 100.

What it answers

The page.

FieldTypeWhat it carries
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.
schema WatchChanges
  • items array of Change required — 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. · one of "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. · one of "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. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
  • community array of object required — Per watched subject with activity after the cursor's time: counts only, never the notes.
    • subject Subject required — The watched subject.
      • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
    • comments integer required — Its comments received after the time of the since change; every one when since is 0.
    • labels integer required — Its labels received in that time.
  • next_cursor integer required — 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 required — Subjects on the list.
  • _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.

Errors

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

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