# Reddit

Search posts across all of Reddit or inside one subreddit, then read a full post with its comment tree — rendered through a real browser farm, so it works where Reddit's API walls don't.

## Tools & pricing

- `glim_reddit_search` / `POST /api/v1/reddit/search` — $0.01 per call. Scope with `subreddit:` in the query (e.g. `subreddit:python async`).
- `glim_reddit_get` / `POST /api/v1/reddit/get` — $0.005 per call. One `ref` accepts a post URL or id; returns the post plus its comment tree.

## Example

**request**

```
curl -X POST https://glim.sh/api/v1/reddit/search \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"subreddit:LocalLLaMA mcp servers"}'
```

**response (real call, trimmed to 1 of 50 posts)**

```
{
  "posts": [
    {
      "id": "1tpwg33",
      "title": "What's your favorite local MCP server?",
      "author": "Glittering_Focus1538",
      "subreddit": "LocalLLaMA",
      "permalink": "https://www.reddit.com/r/LocalLLaMA/comments/1tpwg33/whats_your_favorite_local_mcp_server/",
      "created_at": "2026-05-28T07:31:00.326Z",
      "time_ago": "2w ago",
      "public_metrics": { "score": 32, "num_comments": 76 }
    }
  ],
  "count": 50,
  "has_more": false
}
```

## Good to know

- Subreddit-scoped queries (`subreddit:name …`) return the most relevant results.
- Posts are rendered from the live site, so comment text comes through in correct UTF-8 — including non-Latin scripts.
- A deleted or invalid post ref returns `404` with a suggestion; failed calls are never charged.

## Prompts to try

- "Find this month's top r/LocalLLaMA posts about quantization and read me the best comment threads."
- "What does r/selfhosted think about this tool? Search and summarize the consensus."

---

## All docs pages


**Get started**

- [Introduction](https://glim.sh/docs.md?page=introduction)
- [MCP quickstart](https://glim.sh/docs.md?page=quickstart)
- [REST API quickstart](https://glim.sh/docs.md?page=quickstart-rest)
- [JavaScript quickstart](https://glim.sh/docs.md?page=quickstart-js)
- [Python quickstart](https://glim.sh/docs.md?page=quickstart-python)
- [Payments & auth](https://glim.sh/docs.md?page=payments)

**Tools**

- [Twitter / X](https://glim.sh/docs.md?page=twitter)
- [Reddit](https://glim.sh/docs.md?page=reddit)
- [Web](https://glim.sh/docs.md?page=web)
- [GitHub](https://glim.sh/docs.md?page=github)
- [Amazon](https://glim.sh/docs.md?page=amazon)
- [YouTube](https://glim.sh/docs.md?page=youtube)
- [Telegram](https://glim.sh/docs.md?page=telegram)

**Reference**

- [Changelog](https://glim.sh/docs.md?page=changelog)
- [API reference](https://glim.sh/docs-openapi)
- [OpenAPI spec](https://glim.sh/openapi.json)
