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
- how fresh
- Never cached
- every answer carries the index's height and the node's
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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
since | query | integer | optional | A cursor from a previous page; 0 or absent for the start. |
limit | query | integer | optional | Rows per page: 100 by default, at most 1,000; a value outside 1 to 1,000 reads as 100. |
What it answers
The page.
| Field | Type | What it carries |
|---|---|---|
items | array | The changes to the watched subjects after since, in seq order, at most limit. Empty when there is none. |
items[].seq | integer | The change's place in the feed: a number that only grows. |
items[].at | string | When the change was written. |
items[].claim_id | string | The id of the claim that changed: ann_<n>, att_<n>, rel_<n> or evt_<n>. |
items[].kind | string | The kind of that claim. |
items[].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. |
items[].subject | object | The subject the claim is on. Absent when the change names none. |
community | array | Per watched subject with activity after the cursor's time: counts only, never the notes. |
community[].subject | object | The watched subject. |
community[].comments | integer | Its comments received after the time of the since change; every one when since is 0. |
community[].labels | integer | Its labels received in that time. |
next_cursor | integer | 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 | Subjects on the list. |
_meta | object | The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel. |
schema WatchChanges
itemsarray of Change required — The changes to the watched subjects aftersince, inseqorder, at mostlimit. Empty when there is none.seqinteger — The change's place in the feed: a number that only grows.atstring (date-time) — When the change was written.claim_idstring — The id of the claim that changed: ann_<n>, att_<n>, rel_<n> or evt_<n>.kindstring — The kind of that claim. · one of "annotation", "attribution", "relation", "event"actionstring — What happened:createdwhen the claim entered the feed, at its first version or when it became current;updatedfor a new version;expiredwhen it stopped holding;retractedwhen it was retracted. · one of "created", "updated", "expired", "retracted"subjectSubject — The subject the claim is on. Absent when the change names none.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
communityarray of object required — Per watched subject with activity after the cursor's time: counts only, never the notes.subjectSubject required — The watched subject.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
commentsinteger required — Its comments received after the time of thesincechange; every one whensinceis 0.labelsinteger required — Its labels received in that time.
next_cursorinteger required — Theseqof the page's last change: pass it assincefor the next page. An empty page gives back thesinceit read from.watchedinteger required — Subjects on the list._metaCommunityMeta required — The notice every Community answer carries: indexed from Nostr, never endorsed by btcintel.noticestring required — Always: Community content is indexed from Nostr and not endorsed by btcintel.endorsementboolean required — Always false.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 401 | unauthorized | unauthorized: 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. |
| 403 | forbidden | forbidden: 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. |
| 422 | nip98_invalid | The 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. |
| 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. |
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.