Truth Social user posts by username
scrapecreators.x.v1-truthsocial-user-postsFetches a paginated list of posts from a Truth Social user, returning text, id, created_at, url, content, account info, media_attachments, card link previews, replies_count, reblogs_count, and favourites_count.
- Price
- $0.00188/callAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrumpPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
trim | boolean | Optional | Set to true for a trimmed down version of the response | false |
handle | string | Optional | Truth Social username | realDonaldTrump |
user_id | string | Optional | Truth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint. | 107780257626128497 |
next_max_id | string | Optional | Used to paginate to next page | 107780257626128497 |
- Query parameters
trimbooleanOptionalSet to true for a trimmed down version of the response
Example:
falsehandlestringOptionalTruth Social username
Example:
realDonaldTrumpuser_idstringOptionalTruth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint.
Example:
107780257626128497next_max_idstringOptionalUsed to paginate to next page
Example:
107780257626128497
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.