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

# Get catalogue statistics

> Totals across the archive: songs, artists, contributors, credits, genres, labels, and the earliest release year on record.



## OpenAPI

````yaml /openapi.json get /v1/stats
openapi: 3.1.0
info:
  title: Diskograf API
  description: >-
    A public, read-only REST API over the Diskograf catalogue of Malaysian
    music.


    No authentication is required and no endpoint writes. Requests are rate
    limited

    to 60 per 60 seconds per IP address.


    Every successful response is wrapped in an envelope. List endpoints return

    `{ "data": [...], "meta": { "total", "limit", "offset" } }`; detail
    endpoints

    return `{ "data": {...} }`. Errors return `{ "error": { "code", "message" }
    }`.
  version: 1.0.0
servers:
  - url: https://api.diskograf.com
    description: Production
security: []
tags:
  - name: Songs
    description: The catalogue of published songs and their credits.
  - name: Artists
    description: Performers, writers and producers, and their discographies.
  - name: Genres
    description: The genre taxonomy and the songs in each genre.
  - name: Labels
    description: Record labels and their releases.
  - name: Users
    description: Public contributor profiles. Private account fields are never returned.
  - name: Search
    description: Cross-category keyword search.
  - name: Meta
    description: Service index, statistics and health.
paths:
  /v1/stats:
    get:
      tags:
        - Meta
      summary: Get catalogue statistics
      description: >-
        Totals across the archive: songs, artists, contributors, credits,
        genres, labels, and the earliest release year on record.
      operationId: getV1Stats
      responses:
        '200':
          description: Catalogue totals.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      songs:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      artists:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      contributors:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      credits:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      earliest_year:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      genres:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      labels:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                    required:
                      - songs
                      - artists
                      - contributors
                      - credits
                      - earliest_year
                      - genres
                      - labels
                required:
                  - data

````