pub.chive.metrics.getMetrics

chive.pub

Documentation

Get comprehensive metrics for an eprint

main query

Get comprehensive metrics for an eprint

Parameters

uri string at-uri Required

AT-URI of the eprint

Output

Encodingapplication/json
totalDownloads integer Required

Total download count

totalViews integer Required

Total view count

uniqueViews integer Required

Unique viewer count

views24h integer Required

Views in last 24 hours

views30d integer Required

Views in last 30 days

views7d integer Required

Views in last 7 days

Errors

NotFound
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
AT-URI of the eprint
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "NotFound"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "totalViews",
        "uniqueViews",
        "totalDownloads",
        "views24h",
        "views7d",
        "views30d"
      ],
      "properties": {
        "views7d": {
          "type": "integer",
          "minimum": 0,
          "description": "Views in last 7 days"
        },
        "views24h": {
          "type": "integer",
          "minimum": 0,
          "description": "Views in last 24 hours"
        },
        "views30d": {
          "type": "integer",
          "minimum": 0,
          "description": "Views in last 30 days"
        },
        "totalViews": {
          "type": "integer",
          "minimum": 0,
          "description": "Total view count"
        },
        "uniqueViews": {
          "type": "integer",
          "minimum": 0,
          "description": "Unique viewer count"
        },
        "totalDownloads": {
          "type": "integer",
          "minimum": 0,
          "description": "Total download count"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "uri"
    ],
    "properties": {
      "uri": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the eprint"
      }
    }
  },
  "description": "Get comprehensive metrics for an eprint"
}

Lexicon Garden

@