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

# /guardian/articles/comments

> List reader comments on a Guardian article. Returns comment text, author with avatar and staff badges, post time, recommend count and, for threaded mode, every reply nested under the comment it answers.

**Price:** 1 credit

**⚠️ Common errors:** 412: This article has no comment thread — comments were never opened on it



## OpenAPI

````yaml /openapi/news-publishing.json post /api/guardian/articles/comments
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/guardian/articles/comments:
    post:
      tags:
        - /guardian
      summary: /guardian/articles/comments
      description: >-
        List reader comments on a Guardian article. Returns comment text, author
        with avatar and staff badges, post time, recommend count and, for
        threaded mode, every reply nested under the comment it answers.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: This article has no comment thread — comments
        were never opened on it
      operationId: __api_guardian_articles_comments_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GuardianArticlesCommentsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GuardianComment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GuardianArticlesCommentsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        order_by:
          $ref: '#/components/schemas/GuardianCommentOrder'
          default: oldest
        threaded:
          type: boolean
          default: true
      type: object
      required:
        - article
        - count
    GuardianComment:
      properties:
        '@type':
          type: string
          default: GuardianComment
        id:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        recommend_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_highlighted:
          type: boolean
          default: false
        author:
          anyOf:
            - $ref: '#/components/schemas/GuardianCommentAuthor'
            - type: 'null'
        reply_to_id:
          anyOf:
            - type: string
            - type: 'null'
        reply_to_author:
          anyOf:
            - type: string
            - type: 'null'
        reply_count:
          anyOf:
            - type: integer
            - type: 'null'
        staff_reply_count:
          anyOf:
            - type: integer
            - type: 'null'
        editors_pick_count:
          anyOf:
            - type: integer
            - type: 'null'
        blocked_reply_count:
          anyOf:
            - type: integer
            - type: 'null'
        replies:
          items:
            $ref: '#/components/schemas/GuardianCommentReply'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GuardianCommentOrder:
      type: string
      enum:
        - oldest
        - newest
        - mostRecommended
    GuardianCommentAuthor:
      properties:
        '@type':
          type: string
          default: GuardianCommentAuthor
        id:
          type: string
        name:
          type: string
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        badges:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - id
        - name
    GuardianCommentReply:
      properties:
        '@type':
          type: string
          default: GuardianCommentReply
        id:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        recommend_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_highlighted:
          type: boolean
          default: false
        author:
          anyOf:
            - $ref: '#/components/schemas/GuardianCommentAuthor'
            - type: 'null'
        reply_to_id:
          anyOf:
            - type: string
            - type: 'null'
        reply_to_author:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````