Skip to content
onelayer.
All tools

Tool detail

glim.sh

Searches Reddit posts by query, returning full post content and top comments.

Categories: Social media, Web search

Use when

  • find recent Reddit posts about a topic
  • search Reddit within a date range or time window
  • get top comments along with matching Reddit posts

Not for

  • not comment-only search or a single post's full comment tree

Inputs

POST JSON body: { query: string (required) }; optional: sort, time, start_date/end_date (YYYY-MM-DD), limit (1-10, default 10), cursor

Admitted input schema

{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 0,
      "maxLength": 64,
      "pattern": "^\\s*(?:[tT]\\d_)?[a-zA-Z0-9]+\\s*$",
      "description": "Pagination cursor from a prior response's next_cursor"
    },
    "end_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Only posts before this date (YYYY-MM-DD)"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "Max posts (each returned with full content + top comments)",
      "default": 10
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Search query"
    },
    "sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "relevance",
        "hot",
        "top",
        "new",
        "comments"
      ],
      "description": "Sort order",
      "default": "relevance"
    },
    "start_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Only posts on or after this date (YYYY-MM-DD)"
    },
    "time": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "hour",
        "day",
        "week",
        "month",
        "year",
        "all"
      ],
      "description": "Time range",
      "default": "all"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Endpoint

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

Payment

Protocol
x402
Listed price
10000 units of asset EPjFWdd5...Dt1v per call on Solana (decimals not stated)
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/search
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z