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

# Get Graph Stats



## OpenAPI

````yaml https://api.crosmos.dev/openapi.json get /api/v1/graph/stats
openapi: 3.1.0
info:
  title: Crosmos Memory API
  description: Agent memory system with hybrid retrieval
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/graph/stats:
    get:
      tags:
        - graph
      summary: Get Graph Stats
      operationId: get_graph_stats_api_v1_graph_stats_get
      parameters:
        - name: space_uuid
          in: query
          required: true
          schema:
            type: string
            format: uuid
            title: Space Uuid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphStatsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    GraphStatsResponse:
      properties:
        total_entities:
          type: integer
          title: Total Entities
        total_edges:
          type: integer
          title: Total Edges
        entity_types:
          additionalProperties:
            type: integer
          type: object
          title: Entity Types
          description: Count of entities by type
        top_relations:
          items:
            additionalProperties:
              anyOf:
                - type: integer
                - type: string
            type: object
          type: array
          title: Top Relations
          description: Top relation types by count
      type: object
      required:
        - total_entities
        - total_edges
        - entity_types
        - top_relations
      title: GraphStatsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: JWT access token or API key (csk_…)
      scheme: bearer

````