Skip to content
onelayer.
All tools

Tool detail

glim.sh

Fetches a Reddit post, subreddit listing, or user profile (with comments) given a Reddit URL, name, or post ID.

Categories: Social media

Use when

  • fetch a specific Reddit post with its comments
  • list a subreddit's hot, new, or top posts
  • look up a Reddit user's recent posts or comments

Not for

  • not live-streaming or real-time comment updates, one-shot fetch
  • not Reddit search across subreddits by keyword

Inputs

POST JSON body: ref (string, required); optional sort, time, limit, comment_depth/limit/sort, cursor, include_comments/posts

Admitted input schema

{
  "type": "object",
  "properties": {
    "comment_depth": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "description": "Max nesting depth (post refs only)",
      "default": 5
    },
    "comment_limit": {
      "type": "integer",
      "minimum": 0,
      "maximum": 200,
      "description": "Max comments (post refs only)",
      "default": 50
    },
    "comment_sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "confidence",
        "top",
        "new",
        "controversial",
        "old",
        "qa"
      ],
      "description": "Comment sort. Post refs only: subreddit/user listings always hydrate a fixed 2 top-level comments sorted by top.",
      "default": "confidence"
    },
    "cursor": {
      "type": "string",
      "minLength": 0,
      "maxLength": 64,
      "pattern": "^\\s*(?:[tT]\\d_)?[a-zA-Z0-9]+\\s*$",
      "description": "Pagination cursor from a prior subreddit response's next_cursor"
    },
    "include_comments": {
      "type": "boolean",
      "description": "Include recent comments for user refs",
      "default": false
    },
    "include_posts": {
      "type": "boolean",
      "description": "Include recent posts for user refs",
      "default": true
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "Max listing posts (subreddit/user). Subreddit posts return full content + top comments; for user refs this also caps the comments returned.",
      "default": 10
    },
    "ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Reddit post, subreddit, or user reference. Best: a post URL, subreddit URL/r/name, or user URL/u/name. A bare base36 post id also works. A comment permalink (…/comments/<post>/comment/<id>/) returns that comment with its ancestor context and replies."
    },
    "sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "hot",
        "new",
        "top",
        "rising"
      ],
      "description": "Listing post sort",
      "default": "hot"
    },
    "time": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "hour",
        "day",
        "week",
        "month",
        "year",
        "all"
      ],
      "description": "Listing time range",
      "default": "day"
    }
  },
  "required": [
    "ref"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://glim.sh/api/v1/reddit/get

Payment

Protocol
x402
Listed price
5000 units of USDC (Solana; decimals not given in listing) per call
Payment method
exact
Network
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Asset
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://glim.sh/api/v1/reddit/get
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z