LurkAPI
Docs · Subreddit details

Subreddit details

A community's size, activity, description, rules and images.

1 credit per callFresh within 1 hourMCP tool: reddit_subreddit_details
GEThttps://api.lurkapi.com/v1/reddit/subreddit/details

Example response

When to use this

Use it to size up a community before you post: the weekly visitors and contributions reddit.com shows, its description, numbered rules, icon, banner and creation date. Pass subreddit or a Reddit url.

There's no subscriber count, because reddit.com no longer shows one. weekly_active_users is the closest measure.

Unknown or private subreddits return 404 not_found.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?, as in ?subreddit=marketing. Join several with &.

ParameterDescription
subreddit
stringoptional
Subreddit name (e.g. marketing) or URL. Required unless you pass url.
Example
marketing
url
stringoptional
Any Reddit URL containing /r/<name>, e.g. https://www.reddit.com/r/marketing/.

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (1 KB)
{
  "success": true,
  "credits_remaining": 994,
  "credits_charged": 1,
  "subreddit_id": "t5_2qhmg",
  "display_name": "marketing",
  "weekly_active_users": 70309,
  "weekly_contributions": 965,
  "rules": "1. Advertising, Self-Promotion, & Spam (Permanent Ban)\nIf you want to ad…",
  "description": "For marketing communications + advertising industry professionals to dis…",
  "header_img": "https://styles.redditmedia.com/t5_2qhmg/styles/bannerBackgroundImage_y1x…",
  "icon_img": "https://styles.redditmedia.com/t5_2qhmg/styles/communityIcon_amdb6rj8w5p…",
  "created_at": "2008-03-23T18:17:57.000Z"
}

Response fields

Every field in a successful response, and what it means. null means there's no value.

Show all 12 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
subreddit_idstringFullname, t5_….
display_namestringName with Reddit's capitalization.
descriptionstringThe public one-paragraph description.
rulesstringCommunity rules as numbered plain text: "1. Title\nDetails\n\n2. …".
weekly_active_usersnumbercan be nullWeekly visitors, as shown on the community page.
weekly_contributionsnumbercan be nullPosts plus comments in the last week.
icon_imgstringcan be nullCommunity icon URL; null if none.
header_imgstringcan be nullBanner image URL; null if none.
created_atstringWhen the subreddit was created, ISO 8601.

Cost and freshness

Each call costs 1 credit. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 1 hour. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
404not_foundWhat you asked for (a post, an ad, a subreddit) doesn't exist, or there's no endpoint at that path. Charged if the platform was checked.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the reddit_subreddit_details tool. For example:

Ask Claude
Use LurkAPI's reddit_subreddit_details tool with subreddit "marketing", then summarize what you find.

Claude calls reddit_subreddit_details with arguments like these, and each call costs 1 credit:

Tool arguments
{"subreddit": "marketing"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts