dev.cocore.compute.modelActivity

cocore.dev

Documentation

Aggregate receipt activity per model and per time window. Walks the most-recent indexed receipts (capped at 5000), groups by `body.model`, and tallies requests + tokens across the hour/day/week/month windows, with per-provider breakdowns.

main query

Aggregate receipt activity per model and per time window. Walks the most-recent indexed receipts (capped at 5000), groups by `body.model`, and tallies requests + tokens across the hour/day/week/month windows, with per-provider breakdowns.

Output

Encodingapplication/json
generatedAt stringdatetime Required

An RFC 3339 formatted timestamp.

models array Required

No description available.

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)
View raw schema
{
  "type": "query",
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "generatedAt",
        "models"
      ],
      "properties": {
        "models": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "modelId",
              "totals",
              "byProvider"
            ],
            "properties": {
              "totals": {
                "ref": "dev.cocore.defs#activityWindows",
                "type": "ref"
              },
              "modelId": {
                "type": "string"
              },
              "byProvider": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "did",
                    "stats"
                  ],
                  "properties": {
                    "did": {
                      "type": "string",
                      "format": "did"
                    },
                    "stats": {
                      "ref": "dev.cocore.defs#activityWindows",
                      "type": "ref"
                    }
                  }
                }
              }
            }
          }
        },
        "generatedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "encoding": "application/json"
  },
  "description": "Aggregate receipt activity per model and per time window. Walks the most-recent indexed receipts (capped at 5000), groups by `body.model`, and tallies requests + tokens across the hour/day/week/month windows, with per-provider breakdowns."
}

Lexicon Garden

@