> ## Documentation Index
> Fetch the complete documentation index at: https://studio.chat-atp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge base stats

> Indexing and document statistics

<ParamField path="knowledge_base_id" type="string" required>
  Knowledge base ID.
</ParamField>

## SDK

<CodeGroup>
  ```typescript TypeScript theme={null}
  const stats = await client.knowledgeBases.stats(id);
  ```

  ```python Python theme={null}
  stats = await client.knowledge_bases.stats(knowledge_base_id)
  ```
</CodeGroup>
