---
title: "Get BigCommerce stats"
method: GET
path: "/bigcommerce/channels/{channelId}/stats"
tags: ["Agent", "BigCommerce"]
---

# Get BigCommerce stats

`GET /bigcommerce/channels/{channelId}/stats`

## Request

- Base URL: `https://api.takeshape.io`
- URL: `https://api.takeshape.io/bigcommerce/channels/{channelId}/stats`
- Auth: HTTP bearer

Retrieves statistics for a BigCommerce channel including active agents, session count, and token usage.

## Path parameters

- `channelId` number, required

## Response `200`

Channel statistics

- StatsResponse
  - `activeAgents` number, required: Number of active agents configured for this channel
  - `threadsLast30Days` number, required: Number of agent threads created in the last 30 days
  - `tokenUsage` TokenUsageSummary[], required: Token usage summary by service and model
    - `service` string, required: AI service provider (e.g., openai, anthropic)
    - `model` string, required: Model identifier
    - `totalInputTokens` number, required: Total input tokens used
    - `totalOutputTokens` number, required: Total output tokens used
    - `totalTokens` number, required: Total tokens used
    - `count` number, required: Number of API calls

## Other responses

- `400`: Bad Request - invalid or missing parameters
- `401`: Unauthorized - invalid or missing store token

---

[API](https://skmtc.dev/takeshape/apis/takeshape-rest-api.md) - [All operations](https://skmtc.dev/takeshape/apis/takeshape-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/takeshape/apis/takeshape-rest-api/revisions/2e088f4d4c64?raw)
