> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** [https://www.socialfetch.dev/docs/recipes/reddit-research](https://www.socialfetch.dev/docs/recipes/reddit-research)
- **Markdown (.mdx) URL:** [https://www.socialfetch.dev/docs/recipes/reddit-research.mdx](https://www.socialfetch.dev/docs/recipes/reddit-research.mdx)

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** [https://www.socialfetch.dev/openapi.json](https://www.socialfetch.dev/openapi.json)

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [SDK reference](https://www.socialfetch.dev/docs/sdk-reference.mdx) — exhaustive SDK method inventory and route mapping for agents, tooling, and power users.
- [Choose the right endpoint](https://www.socialfetch.dev/docs/choose-endpoint.mdx) — task-oriented route selection for smoke tests, profiles, list endpoints, and single-item lookups.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — fast comparison of identifiers, pagination, outcomes, media download, and SDK coverage.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 137 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).

---
# Reddit research / listening pulse (https://www.socialfetch.dev/docs/recipes/reddit-research)

Use Reddit for switching stories, competitor mentions, and early complaint signal. Start with a global keyword sweep, narrow to the communities that matter, then pull comments on high-signal threads.

**You'll need** an [API key](https://app.socialfetch.dev/api-keys) and the [TypeScript SDK](/docs/sdk). Platform hub: [Reddit](/platforms/reddit).

Credit budget

  Global search, subreddit search, subreddit post lists, and comment pages are **1 credit** per successful page. A sprint with 12 query variants × 2 pages + 20 comment pulls is roughly **44 credits** before dedupe. Empty completed searches still bill.

Subreddit names are **case-sensitive** (`r/SaaS` ≠ `r/saas`). Pass the casing from the URL.

Routes

| Goal                      | Route                                                                                               | SDK                                                                  |
| ------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| Global posts              | [`GET /v1/reddit/search`](/docs/api/v1/reddit/search/get)                                           | `client.reddit.search({ query, sortBy?, timeframe?, cursor? })`      |
| Subreddit metadata        | [`GET /v1/reddit/subreddits`](/docs/api/v1/reddit/subreddits/get)                                   | `client.reddit.getSubreddit({ subreddit })`                          |
| Subreddit feed            | [`GET /v1/reddit/subreddits/{subreddit}/posts`](/docs/api/v1/reddit/subreddits/subreddit/posts/get) | `client.reddit.listSubredditPosts({ subreddit, sort?, timeframe? })` |
| Search inside a subreddit | [`GET /v1/reddit/subreddits/search`](/docs/api/v1/reddit/subreddits/search/get)                     | `client.reddit.searchSubreddit({ subreddit, query?, … })`            |
| Comments                  | [`GET /v1/reddit/posts/comments`](/docs/api/v1/reddit/posts/comments/get)                           | `client.reddit.listPostComments({ url, cursor? })`                   |

Listening pulse

```ts
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const QUERIES = [
  "acme alternative",
  "switching from acme",
  "acme too expensive",
];

const SUBREDDITS = ["SaaS", "startups", "ProductManagement"];

async function redditPulse() {
  const hits = [];

  for (const query of QUERIES) {
    const global = await client.reddit.search({
      query,
      sortBy: "new",
      timeframe: "week",
    });

    if (!global.ok) {
      console.error(global.error.code, global.error.requestId);
      continue;
    }

    hits.push({
      scope: "global" as const,
      query,
      posts: global.value.data.posts ?? [],
      creditsCharged: global.value.meta.creditsCharged,
      requestId: global.value.meta.requestId,
    });
  }

  for (const subreddit of SUBREDDITS) {
    const scoped = await client.reddit.searchSubreddit({
      subreddit,
      query: "acme",
      sort: "new",
      timeframe: "week",
    });

    if (!scoped.ok) {
      console.error(scoped.error.code, scoped.error.requestId);
      continue;
    }

    hits.push({
      scope: "subreddit" as const,
      subreddit,
      query: "acme",
      posts: scoped.value.data.posts ?? [],
      creditsCharged: scoped.value.meta.creditsCharged,
      requestId: scoped.value.meta.requestId,
    });
  }

  return hits;
}
```

Pull comments on top threads

```ts
async function enrichWithComments(postUrl: string) {
  const comments = await client.reddit.listPostComments({
    url: postUrl,
  });

  if (!comments.ok) {
    return { ok: false as const, error: comments.error };
  }

  return {
    ok: true as const,
    lookupStatus: comments.value.data.lookupStatus,
    comments: comments.value.data.comments ?? [],
    creditsCharged: comments.value.meta.creditsCharged,
    requestId: comments.value.meta.requestId,
  };
}
```

Dedupe by post id across query variants. Store `capturedAt` — Reddit ranking moves; each poll is a snapshot.

For brand monitors that also cover TikTok / X / YouTube, pair this recipe with [Brand monitoring](/docs/recipes/brand-monitoring). Full research sprint: [Reddit product research](/guides/reddit-product-research).

Agents

MCP: connect [MCP](/docs/integrations/mcp), then call Reddit tools by name or discover with `nl_ask_post` (`"Search Reddit for switching from Notion"`). Prefer typed tools once routed.

Related

* [Reddit hub](/platforms/reddit) · [Reddit API](/docs/api/v1/reddit) · [Credits](/docs/credits) · [SDK](/docs/sdk)
* [How to get a Reddit API key](/guides/how-to-get-a-reddit-api-key) · [Reddit API pricing](/blog/reddit-api-pricing) · [Best Reddit Data APIs](/blog/best-reddit-data-apis-2026)
* [Free Reddit research tool](/tools/reddit-research) · [Does Reddit have an API?](/glossary/does-reddit-have-an-api) · [Ask](/docs/api/v1/ask/post)