- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
A numeric id (the profile's id) saves a lookup call.
You send one of handle or id.
Part of the Truth Social Scraper API: 3 Truth Social endpoints on one key.
Request
Send your key in the x-api-key header.
1curl -G "https://api.socialscrape.dev/v1/truthsocial/profile/posts" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'handle=realDonaldTrump'1import os2import requests34params = {5 "handle": "realDonaldTrump",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/truthsocial/profile/posts",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/truthsocial/profile/posts");2url.search = new URLSearchParams({3 handle: "realDonaldTrump",4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Truth Social profile posts",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/truthsocial/profile/posts",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "handle",19 "value": "realDonaldTrump"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | one of | Username, with or without the leading @. Also accepted as username. |
id | string | one of | Truth Social user id (the `id` from the profile). Also accepted as user_id. |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are examples, not your data.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_5b2ed67ef35fade8df57609f",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "truthsocial",14 "id": "117526608599642271",15 "url": "https://truthsocial.com/@realDonaldTrump/117526608599642271",16 "type": "link",17 "author": {18 "id": "107780257626128497",19 "handle": "realDonaldTrump",20 "name": "Donald J. Trump",21 "url": "https://truthsocial.com/@realDonaldTrump",22 "avatar_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg",23 "verified": true24 },25 "title": null,26 "text": "Congressman Troy Downing is doing a truly fantastic job representing the incredible people of Montana’s 2nd Congressional District!\n\nTroy bravely served our ...",27 "published_at": "2026-10-29T22:42:09.852000Z",28 "duration_seconds": null,29 "language": "en",30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": null,34 "likes": 2747,35 "comments": 281,36 "shares": 745,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/cache/preview_cards/images/072/390/266/original/da2f8e8e5f86edb6.jpg",42 "video_url": null,43 "audio_url": null,44 "image_urls": null,45 "width": null,46 "height": null47 },48 "song": null,49 "location": null,50 "is_pinned": false,51 "is_sponsored": false,52 "extra": {53 "card": {54 "description": "Election Day in Montana is almost here, and it’s time to make your voice heard. Make a plan to vote!",55 "image": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/cache/preview_cards/images/072/390/266/original/da2f8e8e5f86edb6.jpg",56 "provider_name": "swampthevoteusa.com",57 "title": "MONTANA: MAKE A PLAN TO VOTE!",58 "url": "https://swampthevoteusa.com/montana/"59 },60 "downvotes": 0,61 "links": [62 "https://swampthevoteusa.com/montana/"63 ],64 "upvotes": 2747,65 "visibility": "public"66 }67 },68 {69 "object": "post",70 "platform": "truthsocial",71 "id": "117526606999074581",72 "url": "https://truthsocial.com/@realDonaldTrump/117526606999074581",73 "type": "link",74 "author": {75 "id": "107780257626128497",76 "handle": "realDonaldTrump",77 "name": "Donald J. Trump",78 "url": "https://truthsocial.com/@realDonaldTrump",79 "avatar_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg",80 "verified": true81 },82 "title": null,83 "text": "Aaron Flint will be a tremendous Congressman for the amazing people of Montana’s 1st Congressional District!\n\nA Fifth Generation Montanan, and distinguished ...",84 "published_at": "2026-10-29T22:41:45.431000Z",85 "duration_seconds": null,86 "language": "en",87 "hashtags": null,88 "mentions": null,89 "stats": {90 "views": null,91 "likes": 2411,92 "comments": 84,93 "shares": 625,94 "saves": null,95 "dislikes": null96 },97 "media": {98 "thumbnail_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/cache/preview_cards/images/072/390/266/original/da2f8e8e5f86edb6.jpg",99 "video_url": null,100 "audio_url": null,101 "image_urls": null,102 "width": null,103 "height": null104 },105 "song": null,106 "location": null,107 "is_pinned": false,108 "is_sponsored": false,109 "extra": {110 "card": {111 "description": "Election Day in Montana is almost here, and it’s time to make your voice heard. Make a plan to vote!",112 "image": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/cache/preview_cards/images/072/390/266/original/da2f8e8e5f86edb6.jpg",113 "provider_name": "swampthevoteusa.com",114 "title": "MONTANA: MAKE A PLAN TO VOTE!",115 "url": "https://swampthevoteusa.com/montana/"116 },117 "downvotes": 0,118 "links": [119 "https://swampthevoteusa.com/montana/"120 ],121 "upvotes": 2411,122 "visibility": "public"123 }124 }125 ],126 "cursor": "117525723707964253",127 "has_more": true,128 "parent": null129 },130 "cursor": "117525723707964253",131 "has_more": true132}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The Python client has client.truthsocial.profile_posts(...) and the TypeScript client client.truthsocial.profilePosts(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.