For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • GETGet datasets information for BI events
        • GETGet experiments information for BI events
        • GETGet spans information for BI events
        • GETGet spans count on previous day for all available workspaces
        • GETGet traces information for BI events
        • GETGet traces count on previous day for all available workspaces
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceSystem Usage

Get spans count on previous day for all available workspaces

GET
/v1/internal/usage/workspace-span-counts
GET
/api/v1/internal/usage/workspace-span-counts
$curl http://localhost:5173/api/v1/internal/usage/workspace-span-counts
200Retrieved
1{
2 "workspaces_spans_count": [
3 {
4 "workspace": "string",
5 "span_count": 1
6 }
7 ]
8}
Get spans count on previous day for all available workspaces
Was this page helpful?
Previous

Get traces information for BI events

Next
Built with

Response

SpanCountResponse resource
workspaces_spans_countlist of objects