{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[{"default":["anonymous-badger"],"id":"selected_source","location":"body","pointer":"/source","required":false,"type":"array"},{"default":false,"id":"allow_fallbacks","location":"body","pointer":"/allowFallbacks","required":false,"type":"boolean"}],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"801","max_cost_micro_usd":"800","quantities":[],"rounding":"ceil","variants":[{"id":"selected_source_only","label":"指定来源且关闭回退时的原厂基础费","price_micro_usd":"800","when":[{"op":"eq","parameter":"selected_source","value":["anonymous-badger"]},{"op":"eq","parameter":"allow_fallbacks","value":false}]}]}},"capabilityId":"f9bc2c65-0769-425c-a809-ca730a0c2a2b","catalogType":"api","categories":["social-media","community"],"dataPlatform":"reddit","dataPlatformLogoUrl":"","dataPlatformTranslations":{"ar":"Reddit","ja":"Reddit","zh":"Reddit"},"dataProduct":"general","description":"Get Reddit Subreddit Posts data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by anyapi, pass parameters such as subreddit, and retrieve structured data including post identifier, post title, community name, post score, and comment count to build a community reading queue, and compare top windows.","descriptionTranslations":{"ar":"اعرض منشورات مجتمع Reddit عبر OpenAny REST بترتيب hot أو new أو top للقراءة أو المتابعة. استخدم العناوين والروابط والنقاط والتعليقات المنظمة لإعداد قائمة نقاش، وطبّق الفترة مع top فقط واحتفظ باستمرار المصدر بدل افتراض أن limit يثبت طول الصفحة المعادة دائمًا.","ja":"OpenAny REST で Reddit コミュニティ投稿を一覧化し、hot、new、top の順で閲覧や監視に使えます。正規化されたタイトル、リンク、スコア、コメント数を整理し、期間は top の場合だけ適用してください。ソースの継続情報を保ち、要求件数が常に返却件数になるとは考えないでください。","zh":"通过 OpenAny REST 列出 Reddit 社区帖子，选择 hot、new 或 top 排序用于阅读或监测。利用归一化标题、来源链接、分数和评论数建立讨论队列，仅在 top 排序时应用时间窗口，并保留数据源续页方式，不假设 limit 一定固定返回页长。"},"effectContentHtml":"","executionMode":"sync","id":"a184c566-396e-402b-bf93-05f478cb62a7","includedContentHtml":"","inputs":[{"description":"Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.","location":"query","minimum":"0","name":"max_items","nullable":false,"required":false,"type":"integer"},{"description":"Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.","location":"query","name":"summary","nullable":false,"required":false,"type":"boolean"},{"description":"Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.","location":"query","name":"jq","nullable":false,"required":false,"type":"string"},{"description":"Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.","location":"query","name":"max_cost_usd","nullable":false,"required":false,"type":"string"},{"description":"Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.","location":"header","max_length":255,"min_length":1,"name":"Idempotency-Key","nullable":false,"required":false,"type":"string"},{"description":"Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.","location":"body","name":"after","nullable":false,"pointer":"/after","required":false,"type":"string"},{"description":"Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.","location":"body","name":"allowFallbacks","nullable":false,"pointer":"/allowFallbacks","required":false,"type":"boolean"},{"description":"Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.","location":"body","name":"cursor","nullable":false,"pointer":"/cursor","required":false,"type":"string"},{"description":"Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.","item_type":"string","location":"body","name":"ignoreSources","nullable":false,"pointer":"/ignoreSources","required":false,"type":"array"},{"description":"Page size to ask for (up to 100). Some sources honor it; others always return their whole page of about 25 posts. A page is never trimmed after the call, so pass nextCursor back as cursor to continue exactly where this response ended.","location":"body","maximum":"100","minimum":"1","name":"limit","nullable":false,"pointer":"/limit","required":false,"type":"integer"},{"description":"Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.","location":"body","minimum":"1","name":"preferLatencyUnderMs","nullable":false,"pointer":"/preferLatencyUnderMs","required":false,"type":"integer"},{"description":"Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isArchived` or `selftext`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.","item_type":"string","location":"body","name":"requireFields","nullable":false,"pointer":"/requireFields","required":false,"type":"array"},{"description":"Listing sort order.","enum_values":["hot","new","top"],"location":"body","name":"sort","nullable":false,"pointer":"/sort","required":false,"type":"string"},{"description":"Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.","item_type":"string","location":"body","name":"source","nullable":false,"pointer":"/source","required":false,"type":"array"},{"description":"Subreddit name without the leading r/ (e.g. \"golang\").","location":"body","name":"subreddit","nullable":false,"pointer":"/subreddit","required":true,"type":"string"},{"description":"Time window, applied when sort is \"top\" (e.g. \"year\" for the year's top posts). Ignored for hot/new. Omit to default to the current day for top.","enum_values":["all","year","month","week","day","hour"],"location":"body","name":"timeframe","nullable":false,"pointer":"/timeframe","required":false,"type":"string"}],"logoUrl":"","method":"POST","name":"Reddit Subreddit Posts","nameTranslations":{"ar":"منشورات Subreddit على Reddit","ja":"RedditのSubreddit投稿","zh":"Reddit Subreddit 帖子"},"overviewHtml":"\u003ch2\u003eReddit Subreddit Posts API\u003c/h2\u003e\n\u003cp\u003eSend subreddit without r/, optional sort, timeframe, limit and cursor. cursor is preferred over the legacy after alias; timeframe is used for top and ignored for hot or new.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired body: subreddit. Optional sort (hot/new/top), timeframe, limit (1–100), cursor and legacy after.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eanyapi · Reddit Subreddit Posts\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBuild a community reading queue\u003c/strong\u003e: Collect source-linked posts with selected listing order.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCompare top windows\u003c/strong\u003e: Use declared windows while retaining request context.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.posts[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePost identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.posts[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePost title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.posts[].subreddit\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommunity name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.posts[].score\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePost score\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.posts[].numComments\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eComment count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eoutput.data.nextCursor\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext-page cursor\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request POST \\\n  https://api.openany.si/v1/agent-apis/anyapi/v1/run/reddit.subreddit_posts \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#34;Content-Type: application/json\u0026#34; \\\n  --data-raw \u0026#39;{\u0026#34;subreddit\u0026#34;:\u0026#34;programming\u0026#34;}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe request template and reference output fragment are independent illustrations. Use the fragment for field structure and check the returned record against your requested identifier.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/a184c566-396e-402b-bf93-05f478cb62a7\"\u003ePublished Reddit Subreddit Posts API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhen does timeframe apply?\u003c/h3\u003e\n\u003cp\u003eIt applies when sort=top and is ignored for hot or new. Omitted timeframe defaults to the current day for top.\u003c/p\u003e\n\u003ch3\u003eShould I use cursor or after?\u003c/h3\u003e\n\u003cp\u003ePrefer cursor. after is a legacy alias; omit both for the first page.\u003c/p\u003e\n\u003ch3\u003eDoes limit always set the exact number returned?\u003c/h3\u003e\n\u003cp\u003eNo. Some sources honor it; others return their full page. Results are not trimmed after the call.\u003c/p\u003e\n\u003ch3\u003eHow do I continue correctly?\u003c/h3\u003e\n\u003cp\u003ePass nextCursor unchanged as cursor with the same community and listing settings.\u003c/p\u003e\n\u003ch3\u003eCan I search keywords with this endpoint?\u003c/h3\u003e\n\u003cp\u003eThis is a community listing. Use a separate subreddit-search operation for query matching.\u003c/p\u003e\n\u003ch3\u003eIs timeframe a historical archive date?\u003c/h3\u003e\n\u003cp\u003eNo. It selects a supported relative window for top sorting, not an arbitrary calendar date.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/reddit/reddit-subreddit-search\"\u003eReddit Subreddit Post Search API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/reddit/reddit-subreddit-posts-89e98708\"\u003eReddit Community Feed API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/reddit/reddit-subreddit-posts?offering=a184c566-396e-402b-bf93-05f478cb62a7","providerId":"anyapi","publicPath":"/v1/agent-apis/anyapi/v1/run/reddit.subreddit_posts","requestContentType":"application/json","revision":5,"samples":[{"http_status":200,"name":"Official example (output fragment; HTTP assumed)","request":{"body":{"subreddit":"programming"},"headers":{},"path":{},"query":{}},"response_body":{"output":{"data":{"nextCursor":"t3_1def567","posts":[{"author":"soldernoob","createdUtc":1718180000,"id":"t3_1def567","numComments":218,"permalink":"/r/MechanicalKeyboards/comments/1def567/","score":5412,"subreddit":"MechanicalKeyboards","title":"My first custom build is finally done","url":"https://www.reddit.com/r/MechanicalKeyboards/comments/1def567/"}]},"found":true}}}],"seoDescription":"Get Reddit Subreddit Posts data via REST or MCP powered by anyapi. Pay per call, no subscription or cookies. Get post identifier and post title in JSON.","updatedAt":"2026-12-03T02:38:00.193Z","usageInstructionsHtml":""}}