---
title: "Get spans count on previous day for all available workspaces"
method: GET
path: "/v1/internal/usage/workspace-span-counts"
tags: ["System usage"]
---

# Get spans count on previous day for all available workspaces

`GET /v1/internal/usage/workspace-span-counts`

Get spans count on previous day for all available workspaces

## Response `200`

SpanCountResponse resource

- SpansCountResponse
  - `workspaces_spans_count` WorkspaceSpansCount[]
    - `workspace` string
    - `span_count` integer

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
