Redditget/getPostsBySubreddit

Posts By Subreddit

Default
Cost / request

$0.01

Response format

JSON

Protocol

REST

About this endpoint

Access Reddit data through agntdata: Posts By Subreddit. Posts By Subreddit. Responses are structured JSON for AI agents, analytics, and automation — one API key instead of juggling upstream accounts. Ideal when you need subreddit metadata, post threads, user activity, and search programmatically.

Use cases

AI agents that need Reddit data in structured form
Analytics and monitoring pipelines for Reddit content
Research and GTM workflows that combine Reddit signals with other data

Parameters

NameInTypeRequiredDescription
subredditquerystringrequiredexample: reddit.com/r/`memes`Default: memes
sortquerystringrequiredyou can just select one item from below: `new` `hot` `rising`Default: new
cursorquerystringoptional

Responses

Successful response

{
  "type": "object"
}

Agent / Developer Schema

Machine-readable formats for integrating this endpoint into AI agents and toolchains.

{
  "operationId": "Posts_By_Subreddit",
  "method": "get",
  "path": "/getPostsBySubreddit",
  "summary": "Posts By Subreddit",
  "description": "Posts By Subreddit",
  "parameters": [
    {
      "name": "subreddit",
      "in": "query",
      "required": true,
      "schema": {
        "type": "string",
        "default": "memes"
      },
      "description": "example: reddit.com/r/`memes`"
    },
    {
      "name": "sort",
      "in": "query",
      "required": true,
      "schema": {
        "type": "string",
        "default": "new"
      },
      "description": "you can just select one item from below:\n`new`\n`hot`\n`rising`"
    },
    {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": [
    {
      "statusCode": "200",
      "description": "Successful response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object"
          }
        }
      }
    },
    {
      "statusCode": "400",
      "description": "Bad request"
    },
    {
      "statusCode": "401",
      "description": "Unauthorized - invalid API key"
    },
    {
      "statusCode": "429",
      "description": "Rate limit exceeded"
    }
  ]
}

Pricing

$0.01per successful request

Credits are deducted from your agntdata balance on each successful API call. Failed requests (4xx/5xx) are not charged.

Related endpoints

Start using this endpoint

Generate your API key and make your first call in under a minute. Free tier available with transparent pricing.

Reddit APIReddit data APIposts by subreddit APIAI agents data APIReddit APIReddit data APIReddit for AI agents