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

Reddit search

POST
/social/reddit_search

Search Reddit for public posts about a topic, brand, product, or keyword. Use it for community sentiment, product complaints, niche discussion, or 'what is Reddit saying about…' questions — early signal often appears here before X or the news. Optionally scope to a single subreddit. Returns posts with title, text, score, comment count and an absolute reddit.com url; cite the url of any post you use. text is an excerpt — reddit_post reads a full post, reddit_post_comments its discussion.

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_search" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "query": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "query": "string",    "subreddit": "string",    "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}