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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# comments

> One post and its discussion tree, with a third flavour of paging token.

Returns `post` with `title`, `author`, `selftext`, `score`, `ups`, `upvote_ratio`, `num_comments`, `created_utc`, `permalink`, `archived` and `locked`, then `comments`, each with `author`, `body`, `score`, `ups`, `downs`, `created_utc`, `parent_id`, `permalink` and a nested `replies` object holding `items` and `more`.

> [!NOTE]
>
> Paging is a third shape again: the top level carries `more.has_more` and `more.cursor`, not the `after` of [`get_reddit_search`](https://aisa.one/docs/api-reference/reddit/get_reddit-search) or the `cursor` of [`get_reddit_subreddit_search`](https://aisa.one/docs/api-reference/reddit/get_reddit-subreddit-search).

Measured at about 21 KB for 19 top-level comments. To find posts worth opening, start from [`get_reddit_search`](https://aisa.one/docs/api-reference/reddit/get_reddit-search) or [`get_reddit_subreddit`](https://aisa.one/docs/api-reference/reddit/get_reddit-subreddit).

## Example

```bash REST theme={null}
curl "https://api.aisa.one/apis/v1/reddit/post/comments?url=VALUE" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```jsonc MCP theme={null}
// Copy this whole block into Claude Code, Codex, Cursor or any coding agent.
// It carries everything needed to connect, authorize and run this example —
// no key to paste, one click of Allow in the browser.
{
  "calls": [
    {
      "call_id": "1",
      "tool": "get_reddit_post_comments",
      "arguments": {
        "url": "VALUE"
      }
    }
  ]
}
// ── for the agent ─────────────────────────────────────────────────────────
// Register the AIsa MCP server, then call its `batch_quote` tool with the JSON above.
//   name       aisa
//   endpoint   https://mcp.aisa.one/mcp
//   transport  streamable-http
//   auth       OAuth. The server publishes RFC 9728 metadata, so open a
//              browser and the user clicks Allow once — nothing to paste.
//              If AISA_API_KEY is set, send it as a bearer header instead.
// Use your own MCP mechanism, not a hand-edited config file:
//   Codex        codex mcp add aisa --url https://mcp.aisa.one/mcp
//   Claude Code  claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
//   Cursor / VS Code   a "url" entry for https://mcp.aisa.one/mcp in the MCP config
// The server reaches https://mcp.aisa.one/servers worth of APIs through a few meta
// tools: search, list_categories, get_details, batch_quote, batch_use.
// search, get_details and batch_quote are free; batch_use is billed per
// call. This operation's full contract — every argument, the response
// shape, the price and the pitfalls — is at
//   https://aisa.one/docs/api-reference/reddit/get_reddit-post-comments.md
// Show me the quoted cost. Once I approve, run the same calls with
// batch_use and show me the result.
```

> [!NOTE]
>
> **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
> Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
> opens a browser, you click Allow once, and there is no key to paste. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/reddit/get_reddit-post-comments)

## Request contract

* **Method and path:** GET /apis/v1/reddit/post/comments
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/reddit/post/comments`
* **cursor:** query; optional
* **trim:** query; optional
* **trimmed:** query; optional
* **url:** query; required

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/scrape-creators.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "get_reddit_post_comments",
  "method": "GET",
  "path": "/apis/v1/reddit/post/comments",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Cursor to get more comments, or replies.",
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Set to true for a trimmed down version of the response",
      "in": "query",
      "name": "trim",
      "required": false,
      "schema": {
        "type": "boolean"
      }
    },
    {
      "in": "query",
      "name": "trimmed",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Reddit post URL",
      "in": "query",
      "name": "url",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Charged for the actual billable results. Default request estimate: \$0.00188 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi-public/scrape-creators.json GET /apis/v1/reddit/post/comments
openapi: 3.1.0
info:
  description: ''
  title: Scrape Creators
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    scrape-creators:
      description: ''
      title: Scrape Creators
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: fdf0a203e7ec628291b62272da7b8bbbe431c8f77f251ea2e65c19cd3c98fa37
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/instagram/basic-profile
    - /apis/v1/instagram/media/transcript
    - /apis/v1/instagram/post
    - /apis/v1/instagram/post/comments
    - /apis/v1/instagram/profile
    - /apis/v1/instagram/reels/search
    - /apis/v1/instagram/reels/trending
    - /apis/v1/instagram/search/hashtag
    - /apis/v1/instagram/search/profiles
    - /apis/v1/instagram/song/reels
    - /apis/v1/instagram/user/embed
    - /apis/v1/instagram/user/highlight/detail
    - /apis/v1/instagram/user/highlights
    - /apis/v1/instagram/user/posts
    - /apis/v1/instagram/user/reels
    - /apis/v1/pinterest/board
    - /apis/v1/pinterest/pin
    - /apis/v1/pinterest/search
    - /apis/v1/pinterest/user/boards
    - /apis/v1/reddit/post/comments
    - /apis/v1/reddit/search
    - /apis/v1/reddit/subreddit
    - /apis/v1/reddit/subreddit/details
    - /apis/v1/reddit/subreddit/search
  x-aisa-document:
    composer_version: '31'
    facts_hash: fdf0a203e7ec628291b62272da7b8bbbe431c8f77f251ea2e65c19cd3c98fa37
    generator_version: '3'
    identity_base_document_hash: sha256:21febe84645944ab208ea05f701b4ecaea05ab9ed69b91f52ad772689b28c9a1
    identity_compatibility_hash: sha256:6c09ef0bdf18266535eb126de4c7347ff1c7d0e62dd283fee668032d3d4408c5
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:87aa34bccc72f58a27229703aa754633dcaa68f6f0853760a5802b05937f0382
    document_hash: sha256:8d748dc51a819f08685c8be411852c5e524ed170765934a6d1dc66dc37b840ad
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: scrape-creators
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/reddit/post/comments:
    get:
      tags:
        - default
      summary: comments
      description: >-
        Returns one post and its discussion from a post URL: post with title,
        author, selftext, score, ups, upvote_ratio, num_comments, created_utc,
        permalink, archived and locked, then comments, each with author, body,
        score, ups, downs, created_utc, parent_id, permalink and a nested
        replies object holding items and more. Paging is a third shape again:
        the top level carries more.has_more and more.cursor rather than the
        after of get_reddit_search or the cursor of get_reddit_subreddit_search.
        Measured at about 21 KB for 19 top-level comments. To find posts worth
        opening, start from get_reddit_search or get_reddit_subreddit.
      operationId: get_reddit_post_comments
      parameters:
        - description: Cursor to get more comments, or replies.
          in: query
          name: cursor
          required: false
          schema:
            type: string
        - description: Set to true for a trimmed down version of the response
          in: query
          name: trim
          required: false
          schema:
            type: boolean
        - in: query
          name: trimmed
          required: false
          schema:
            type: string
        - description: Reddit post URL
          in: query
          name: url
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                comments:
                  - author: Background-Emu-2890
                    author_fullname: t2_efdlposp6
                    body: Black cat i have one and i love her so much !
                    created_at_iso: '2025-06-19T14:10:21.000Z'
                    created_utc: 1750342221
                    downs: 0
                    id: mymupxb
                    name: t1_mymupxb
                    parent_id: t3_1lfbo7u
                    replies:
                      items:
                        - all_awardings: []
                          approved_at_utc: null
                          approved_by: null
                          archived: false
                          associated_award: null
                          author: doublestitch
                          author_flair_background_color: null
                          author_flair_css_class: null
                          author_flair_richtext: []
                          author_flair_template_id: null
                          author_flair_text: null
                          author_flair_text_color: null
                          author_flair_type: text
                          author_fullname: t2_10py0g
                          author_is_blocked: false
                          author_patreon_flair: false
                          author_premium: false
                          awarders: []
                          banned_at_utc: null
                          banned_by: null
                          body: House panthers for the win
                          body_html: >-
                            &lt;div class="md"&gt;&lt;p&gt;House panthers for
                            the win&lt;/p&gt;

                            &lt;/div&gt;
                          can_gild: false
                          can_mod_post: false
                          collapsed: false
                          collapsed_because_crowd_control: null
                          collapsed_reason: null
                          collapsed_reason_code: null
                          comment_type: null
                          controversiality: 0
                          created: 1750343166
                          created_at_iso: '2025-06-19T14:26:06.000Z'
                          created_utc: 1750343166
                          depth: 1
                          distinguished: null
                          downs: 0
                          edited: false
                          gilded: 0
                          gildings: {}
                          id: mymxwde
                          is_submitter: false
                          likes: null
                          link_id: t3_1lfbo7u
                          locked: false
                          mod_note: null
                          mod_reason_by: null
                          mod_reason_title: null
                          mod_reports: []
                          name: t1_mymxwde
                          no_follow: false
                          num_reports: null
                          parent_id: t1_mymupxb
                          permalink: >-
                            /r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymxwde/
                          removal_reason: null
                          replies:
                            items: []
                            more:
                              has_more: false
                              next_cursor: null
                          report_reasons: null
                          saved: false
                          score: 19
                          score_hidden: false
                          send_replies: true
                          stickied: false
                          subreddit: AskReddit
                          subreddit_id: t5_2qh1i
                          subreddit_name_prefixed: r/AskReddit
                          subreddit_type: public
                          top_awarded_type: null
                          total_awards_received: 0
                          treatment_tags: []
                          unrepliable_reason: null
                          ups: 19
                          url: >-
                            https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymxwde/
                          user_reports: []
                      more:
                        cursor: myn970w
                        has_more: true
                    score: 75
                    ups: 75
                    url: >-
                      https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/mymupxb/
                more:
                  cursor: myoaw2m,myob40l,myoeo9h
                  has_more: true
                post:
                  author: Vetro_Nodulare2
                  author_fullname: t2_16syu27ar1
                  created: 1750341959
                  created_utc: 1750341959
                  downs: 0
                  id: 1lfbo7u
                  is_video: false
                  name: t3_1lfbo7u
                  num_comments: 353
                  score: 47
                  subreddit: AskReddit
                  subreddit_subscribers: 56146601
                  title: What is a thing you love that lots of people hate?
                  total_awards_received: 0
                  ups: 47
                  upvote_ratio: 0.91
                  url: >-
                    https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/
              schema:
                $ref: >-
                  #/components/schemas/ResponseE5228Fb11714_RedditCommentsResponse
          description: Successful response
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    ResponseE5228Fb11714_RedditCommentsResponse:
      additionalProperties: true
      properties:
        comments:
          items:
            $ref: '#/components/schemas/ResponseE5228Fb11714_RedditComment'
          type: array
        credits_remaining:
          type: integer
        cursor:
          type:
            - string
            - 'null'
        success:
          type: boolean
      type: object
    ResponseE5228Fb11714_RedditComment:
      additionalProperties: true
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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