API · Truth Social
GET /truthsocial/profiles/{username}/posts
A Truth Social account’s posts, newest first, paginated, with reply and media filters.
| |
|---|
| Request | GET /v1/truthsocial/profiles/{username}/posts |
| Operation id | truthsocial.user.posts |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Truth Social account’s posts, newest first, paginated, with reply and media filters.
| Name | Type | Required | Description |
|---|
username | string | yes | Username with or without the @, a numeric account id, or a profile URL. Example: realDonaldTrump. |
| Name | Type | Required | Description |
|---|
exclude_replies | "true" | "false" | no | true leaves replies out. One of true, false. |
only_media | "true" | "false" | no | true keeps only posts with images or video. One of true, false. |
pinned | "true" | "false" | no | true returns only the pinned posts. One of true, false. |
since | string | no | Only posts on or after: YYYY-MM-DD or ISO 8601. |
until | string | no | Only posts on or before: YYYY-MM-DD (whole day) or ISO 8601. |
after | string | no | Cursor: the previous page’s next_max_id. |
| Status | Meaning | Schema |
|---|
200 | A page of posts. | TruthSocialStatusesPage |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Truth Social is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
data | TruthSocialStatus[] | |
next_max_id | string | Pass it as after for older posts; absent on the last page. |
Errors use one shape everywhere; see Errors for every code and what to do.