Skip to content
Endless Documentation

X user posts

POST
/social/x_user_posts

Use when the user asks for an account's recent/top/most-liked/most-viewed posts (e.g. 'top tweet of the week'). Returns recent posts (newest first) with engagement counts; sort and filter client-side. For search across many accounts use x_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/x_user_posts" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "username": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "username": "string",    "user_id": "string",    "count": -9007199254740991,    "posts": [      {        "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"      }    ]  },  "requests": 0,  "credits_charged": 0}