---
title: "Get graph stats"
method: GET
path: "/api/v1/graph/stats"
tags: ["graph"]
---

# Get graph stats

`GET /api/v1/graph/stats`

## Query parameters

- `space_uuid` string, uuid
- `space_id` string, uuid

## Response `200`

Graph stats

- GraphStatsResponse
  - `total_entities` integer, required
  - `total_edges` integer, required
  - `entity_types` object, required
  - `top_relations` object[], required
    - `relation` string, required
    - `count` integer, required

## Other responses

- `404` — Space not found

## Changes

- **2026-08-25** `55772030ddd3` — 2 breaking
  - the response property `fields` became nullable for the status `404`
  - the `fields` response's property type/format changed from `object`/`` to ``/`` for status `404`
- **2026-08-19** `b38f8e603649` — 1 breaking
  - the `fields` response's property type/format changed from ``/`` to `object`/`` for status `404`

[Change history](https://skmtc.dev/crosmos/apis/crosmos-api/changes/api/v1/graph/stats/get.md)

---

[API](https://skmtc.dev/crosmos/apis/crosmos-api.md) · [All operations](https://skmtc.dev/crosmos/apis/crosmos-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crosmos/crosmos-api/revisions/55772030ddd3/schema)
