Skip to main content
GET
/
api
/
v1
/
account
/
stats
curl --location --request GET 'https://nostrapi.com/api/v1/account/stats?pubkey=andre@zbd.gg' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
  "success": true,
  "message": "Successfully fetched andre@zbd.gg pubkey profile stats",
  "data": {
    "pubkey": "1b11ed41e815234599a52050a6a40c79bdd3bfa3d65e5d4a2c8d626698835d6d",
    "stats": {
      "followers": 2,
      "following": 325,
      "postCount": 618,
      "repostCount": 266
    },
    "zaps": {
      "totalMsatsSent": 986859000,
      "totalCountSent": 65,
      "maxMsatsSent": 500000000,
      "minMsatsSent": 100000,
      "totalMsatsReceived": 182229000,
      "totalCountReceived": 292,
      "maxMsatsReceived": 50000000,
      "minMsatsReceived": 10000
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nostrapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Query

pubkey
string
The address of the Nostr account — can be a Nostr NIP05 address (e.g. andre@zbd.gg), or a Nostr public key in NPUB or HEX format.

Response

success
boolean
Indicates whether the call was successful. true if successful, false if not.
message
string
Message detailing the results of the operation.
data
object
The contents of the data response object.
curl --location --request GET 'https://nostrapi.com/api/v1/account/stats?pubkey=andre@zbd.gg' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
  "success": true,
  "message": "Successfully fetched andre@zbd.gg pubkey profile stats",
  "data": {
    "pubkey": "1b11ed41e815234599a52050a6a40c79bdd3bfa3d65e5d4a2c8d626698835d6d",
    "stats": {
      "followers": 2,
      "following": 325,
      "postCount": 618,
      "repostCount": 266
    },
    "zaps": {
      "totalMsatsSent": 986859000,
      "totalCountSent": 65,
      "maxMsatsSent": 500000000,
      "minMsatsSent": 100000,
      "totalMsatsReceived": 182229000,
      "totalCountReceived": 292,
      "maxMsatsReceived": 50000000,
      "minMsatsReceived": 10000
    }
  }
}