{"slug":"x402-apidirect-io-v1-reddit-subreddit-posts-3f1de0","title":"Get a subreddit's posts by name or URL","host":"x402.apidirect.io","method":"GET","resource":"https://x402.apidirect.io/v1/reddit/subreddit/posts","category":"other","description":"Get a subreddit's posts by name or URL.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":279,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"posted_ago":"7d","sort_by":"top","subreddit":"AskReddit"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"flair":{"description":"Only posts with exactly this flair, e.g. Hiring (max 64 characters, not case-sensitive).","maxLength":64,"type":"string"},"get_sentiment":{"default":false,"description":"Set to true to add AI emotion analysis to each post (returned in the `posts` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (positive, ","type":"boolean"},"pages":{"default":1,"description":"Number of pages to fetch, 1-40 (default: 1). Each page returns up to 25 posts.","maximum":40,"minimum":1,"type":"integer"},"posted_ago":{"description":"Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: 24h, Reddit's own default). Rejected with any other sort_by.","enum":["1h","24h","7d","30d","12m","all"],"type":"string"},"sort_by":{"default":"hot","description":"Sort order: hot, most_recent, top, rising, or controversial (default: hot)","enum":["hot","most_recent","top","rising","controversial"],"type":"string"},"subreddit":{"description":"Subreddit name, with or without r/, e.g. Python. Provide exactly one of subreddit or url.","maxLength":25,"type":"string"},"url":{"description":"Subreddit URL, e.g. https://www.reddit.com/r/Python/ (max 500 characters). Provide exactly one of subreddit or url.","maxLength":500,"type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":279,"error":null}],"description_full":"Get a subreddit's posts by name or URL.","last_updated":"2026-10-25T12:22:15.418Z","schemes":["exact","upto"]}