Count events
count_eventsCount matching Nostr events by filter via NIP-45 COUNT without downloading them; report when a relay lacks COUNT support.
Instructions
Counts the events matching a filter using NIP-45 COUNT, without downloading them. Reports clearly when the relay does not support COUNT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter by single-letter tags, e.g. {"e": ["<event id>"]} for events that reference an event, {"p": ["<pubkey>"]} for mentions, {"t": ["bitcoin"]} for hashtags. e and p take 64-hex values. | |
| kinds | No | Only these event kinds (e.g. [1] for notes, [7] reactions). | |
| relay | No | Relay URL (wss://…). It must be one of the configured relays; default: the first one. See nostrclaw_status. | |
| relays | No | Several relays (each must be configured): the same question goes to all of them and the answers are merged without duplicates; the result says what each relay returned. Overrides `relay`. | |
| authors | No | ||
| sinceHours | No | Only events newer than this many hours. |