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

# A game's comments, newest first

> What its players would add to it, in their own words, for anyone who can see the game, each with its first replies. `total` is how many comments there are in all, replies aside.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{owner}/{slug}/comments
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /projects/{owner}/{slug}/comments:
    get:
      tags:
        - Comments
      summary: A game's comments, newest first
      description: >-
        What its players would add to it, in their own words, for anyone who can
        see the game, each with its first replies. `total` is how many comments
        there are in all, replies aside.
      parameters:
        - schema:
            type: string
            example: patch
          required: true
          name: owner
          in: path
        - schema:
            type: string
            example: demo-mod
          required: true
          name: slug
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          required: false
          name: limit
          in: query
        - schema:
            type: string
            maxLength: 500
            description: The next_cursor from the previous page
          required: false
          description: The next_cursor from the previous page
          name: cursor
          in: query
      responses:
        '200':
          description: A page of comments
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CommentThread'
                  next_cursor:
                    type:
                      - string
                      - 'null'
                  total:
                    type: integer
                required:
                  - data
                  - next_cursor
                  - total
        '308':
          description: Renamed; follow the Location header
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CommentThread:
      allOf:
        - $ref: '#/components/schemas/Comment'
        - type: object
          properties:
            replies:
              type: array
              items:
                $ref: '#/components/schemas/Comment'
              description: >-
                Its first 3 replies, oldest first; the rest from `GET
                …/comments/{id}/replies`
            reply_count:
              type: integer
              description: How many replies it has in all
          required:
            - replies
            - reply_count
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
    Comment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        body:
          type: string
        author:
          type: object
          properties:
            username:
              type: string
            name:
              type: string
              description: 'Their username: people go by their handle'
            image:
              type:
                - string
                - 'null'
          required:
            - username
            - name
            - image
        created_at:
          type: string
        reply_to:
          type:
            - string
            - 'null'
          format: uuid
          description: The comment it replies to; null for one under the game
        likes:
          type: integer
        liked:
          type: boolean
          description: 'Whether you like it: false when signed out'
      required:
        - id
        - body
        - author
        - created_at
        - reply_to
        - likes
        - liked

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.