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

X post

POST
/social/x_post

Fetch a single X (Twitter) post by URL. Returns engagement metrics (likes, replies, retweets, views), the full text (long posts included), and the author; X Articles include their title and full body. Call this directly for any x.com/twitter.com status URL — never read_url or web_search an X link (those pages are client-rendered and won't load); if an Article's body couldn't be fetched, say so rather than searching for it.

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/x_post" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "url": "http://example.com"    }  }'
{  "operation": "instagram_profile",  "result": {    "id": "string",    "url": "string",    "text": "string",    "created_at": "string",    "lang": "string",    "like_count": 0,    "reply_count": 0,    "retweet_count": 0,    "quote_count": 0,    "bookmark_count": 0,    "view_count": 0,    "hashtags": [      "string"    ],    "author": {      "id": "string",      "username": "string",      "name": "string",      "verified": true,      "followers_count": 0,      "following_count": 0    },    "article_url": "string",    "summary": "string",    "article": {      "title": "string",      "body": "string"    },    "article_note": "string"  },  "requests": 0,  "credits_charged": 0}