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

Reddit post

POST
/social/reddit_post

Read one Reddit post by its exact URL, including its complete text, title, author, score and canonical URL. Use this first when the user supplies a specific Reddit post link. Do not search for its title or substitute similar posts. Cite the returned url. Comments are separate: use reddit_post_comments only when the discussion is needed.

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_post" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "post_url": "http://example.com"    }  }'
{  "operation": "instagram_profile",  "result": {    "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",    "summary": "string"  },  "requests": 0,  "credits_charged": 0}