Datasets

Get dataset statistics

Returns class counts, image distributions, and annotation heatmaps.

get/api/datasets/{owner}/{dataset}/class-stats

Request

  • Base URL
    https://platform.ultralytics.com
  • Auth
    • none
    • or HTTP bearer

Path parameters

ownerstring required
Example:ultralytics

Dataset owner

datasetstring required
Example:coco8

Dataset name

Response

Dataset statistics

classNamesstring[] required

Dataset class names by index

cachedboolean required

Whether stats were served from the pre-computed cache

sampleSizenumber nullable

Number of images included; set only when stats came from a capped subset

Changes

No recorded changes to this operation across all 43 revisions of this API.