Ir para o conteúdo
Documentação do Endless

Reddit subreddit posts

POST
/social/reddit_subreddit_posts

Browse a subreddit's feed: 'hot' (currently popular), 'new' (latest), 'rising' (gaining traction fast), or 'top' (highest scoring within time). Use to monitor a specific community — e.g. a brand's category subreddits. For keyword search across Reddit use reddit_search instead.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/reddit_subreddit_posts" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "subreddit": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "subreddit": "string",    "sort": "hot",    "count": -9007199254740991,    "truncated": true,    "posts": [      {        "id": "string",        "url": "string",        "title": "string",        "text": "string",        "subreddit": "string",        "author": "string",        "score": 0,        "num_comments": 0,        "created_at": "string",        "flair": "string",        "over_18": true,        "link_url": "string"      }    ]  },  "requests": 0,  "credits_charged": 0}