Skip to content

Get Kg Stats

GET
/api/v1/knowledge-graph/stats
curl --request GET \
--url https://api.ultimateteam.ai/api/v1/knowledge-graph/stats \
--header 'X-API-Key: <X-API-Key>'

Return knowledge graph statistics for the authenticated tenant.

Returns entity_count, community_count, avg_community_size, and last_indexed_at (MAX updated_at from kg_communities). All counts are zero and last_indexed_at is null when the tenant has no data.

Successful Response

Media typeapplication/json
KGStatsResponse

Response model for GET /api/v1/knowledge-graph/stats.

object
avg_community_size
required
Avg Community Size
number
community_count
required
Community Count
integer
entity_count
required
Entity Count
integer
last_indexed_at
required
Any of:
string format: date-time
Examplegenerated
{
"avg_community_size": 1,
"community_count": 1,
"entity_count": 1,
"last_indexed_at": "2026-04-15T12:00:00Z"
}