---
title: "Retrieve comments"
method: GET
path: "/api/comments/"
tags: ["Comments"]
---

# Retrieve comments

`GET /api/comments/`

Fetch comments with filters for author and pagination. If API access is restricted, you must include at least one of: `author=<your own user ID>` and/or `author_is_staff=true` - requests without one of these filters will be rejected.

## Query parameters

- `post` integer
- `author` integer
- `author_is_staff` boolean
- `limit` integer
- `offset` integer
- `is_private` boolean
- `use_root_comments_pagination` boolean
- `sort` '-created_at' | 'created_at'
- `focus_comment_id` integer
- `focus_thread_only` boolean

## Response `200`

List of comments

- object
  - `total_count` integer — Total number of root and child comments.
  - `count` integer — Total number of root comments only.
  - `next` string, uri, nullable — URL for the next page of results, if available.
  - `previous` string, uri, nullable — URL for the previous page of results, if available.
  - `results` Comment[]
    - `id` integer — Unique identifier for the comment.
    - `author` object
      - `id` integer — Author's user ID.
      - `username` string — Author's username.
      - `is_bot` boolean — If the author is a bot.
      - `is_staff` boolean — If the author is a staff member.
    - `parent_id` integer, nullable — ID of the comment being replied to (if applicable).
    - `root_id` integer, nullable — ID of the root comment in the thread.
    - `created_at` string, date-time — Timestamp when the comment was created.
    - `text` string — The content of the comment.
    - `on_post` integer — ID of the post the comment belongs to.
    - `included_forecast` boolean — If the user's last forecast is included.
    - `is_private` boolean — If the comment is private.
    - `vote_score` integer — Total vote score for the comment.
    - `changed_my_mind` object
      - `count` integer — Number of users who changed their mind based on this comment.
      - `for_this_user` boolean — If the current user changed their mind based on this comment.
    - `mentioned_users` object[]
      - `id` integer — ID of the mentioned user.
      - `username` string — Username of the mentioned user.
    - `user_vote` integer — Current user's vote on this comment (-1, 0, 1).

## Other responses

- `400` — Invalid request format

---

[API](https://skmtc.net/metaculus/apis/metaculus-api.md) · [All operations](https://skmtc.net/metaculus/apis/metaculus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metaculus/metaculus-api/versions/f1b9a08e1da2/schema)
