ClassifAI
API ReferenceProjects

Get project statistics

Retrieve analytics and accuracy metrics for a classification project. View how well your classifications are performing based on ground truth feedback.

GET
/projects/{project_id}/stats

Path Parameters

project_idstring

Response Body

application/json

application/json

curl -X GET "https://loading/projects/string/stats"
{
  "accuracy_rate": 0.89,
  "content_types_used": [
    "text"
  ],
  "created_at": "2025-01-15T10:30:00Z",
  "ground_truth_distribution": {
    "negative": 30,
    "neutral": 10,
    "positive": 35
  },
  "inferred_labels": false,
  "label_distribution": {
    "negative": 180,
    "neutral": 70,
    "positive": 200
  },
  "labels": [
    "positive",
    "negative",
    "neutral"
  ],
  "last_used_at": "2025-01-17T14:22:00Z",
  "name": "Sentiment Analysis",
  "project_id": "proj_abc123",
  "total_classifications": 150,
  "total_content_items_classified": 450,
  "total_feedback_received": 75
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}