Project Statistics

Get various statistics about your projects, including test counts and other metrics.

The stats model

The project statistics model contains information about your projects and their associated test counts.

Properties

  • Name
    projects
    Type
    object
    Description
  • Name
    id
    Type
    string
    Description

    Unique identifier for the project.

  • Name
    name
    Type
    string
    Description

    The name of the project.

  • Name
    tests
    Type
    object
    Description
  • Name
    count
    Type
    number
    Description

    Number of tests in the project.


GET/v1/stats/projects

Get project statistics

This endpoint allows you to retrieve statistics about your projects.

Required headers

  • Name
    X-Api-Key
    Type
    string
    Description

    Your project API key for authentication.

Request

GET
/v1/stats/projects
curl https://api.magicinspector.com/v1/stats/projects \
  -H "X-Api-Key: {your-api-key}"

Response

{
  "data": [
    {
      "projects": {
        "id": "proj_12345",
        "name": "My Project",
        "tests": {
          "count": 42
        }
      }
    }
  ]
}

Was this page helpful?