Get Kg Stats
GET
/api/v1/knowledge-graph/stats
const url = 'https://api.ultimateteam.ai/api/v1/knowledge-graph/stats';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
KGStatsResponse
Response model for GET /api/v1/knowledge-graph/stats.
object
Examplegenerated
{ "avg_community_size": 1, "community_count": 1, "entity_count": 1, "last_indexed_at": "2026-04-15T12:00:00Z"}