Skip to main content
GET
/
{org}
/
{repo}
/
analytics
Get repository analytics
curl --request GET \
  --url https://depot.mesa.dev/api/v1/{org}/{repo}/analytics \
  --header 'Authorization: Bearer <token>'
{
  "analytics": {
    "version": 123,
    "summary": {
      "totalLines": 123,
      "aiLines": 123,
      "humanLines": 123,
      "providers": {},
      "models": {},
      "updated": "<string>"
    },
    "contributors": {},
    "history": [
      {
        "date": "<string>",
        "sha": "<string>",
        "author": "<string>",
        "added": 123,
        "removed": 123,
        "aiLines": 123,
        "message": "<string>",
        "providers": {},
        "models": {}
      }
    ],
    "_meta": {
      "lastAttempt": "<string>",
      "lastSuccess": "<string>",
      "lastError": "<string>"
    }
  },
  "status": "current"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Query Parameters

period
enum<string>
default:all
Available options:
24h,
1w,
1m,
all

Response

Analytics data

analytics
object
required
status
enum<string>
required
Available options:
current,
stale,
none