Truth Social Account
truthsocial.account.get
Public Truth Social profile by handle: display name, bio, avatar and header, follower and post counts, verification and profile fields.
At a glance
- Endpoint ID
truthsocial.account.get- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "truthsocial.account.get", "input": { "handle": "realDonaldTrump" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "truthsocial.account.get", "input": { "handle": "realDonaldTrump" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "truthsocial.account.get", "input": { "handle": "realDonaldTrump" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
handle |
string | yes | Handle such as realDonaldTrump or @realDonaldTrump, or https://truthsocial.com/@realDonaldTrump. | realDonaldTrump |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "profile": { "display_name": "Donald J. Trump", "followers": 13213613, "username": "realDonaldTrump", "created_at": "2022-02-11T16:16:57.705Z", "acct": "realDonaldTrump", "avatar_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/780/257/626/128/497/original/454286ac07a6f6e6.jpeg", "bio": "<p></p>", "bot": false, "following": 67, "header_url": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/780/257/626/128/497/original/ba3b910ba387bf4e.jpeg", "id": "107780257626128497", "last_status_at": "2026-11-30", "locked": false, "posts": 38611, "tv_account": false, "url": "https://truthsocial.com/@realDonaldTrump", "verified": true, "website": "www.DonaldJTrump.com", "fields": [] }}
Fields
| Field | Type | Example |
|---|---|---|
profile |
object | 19 fields |
profile.acct |
string | realDonaldTrump |
profile.avatar_url |
string | https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/ac… |
profile.bio |
string | <p></p> |
profile.bot |
boolean | false |
profile.created_at |
string | 2022-02-11T16:16:57.705Z |
profile.display_name |
string | Donald J. Trump |
profile.fields |
array | empty in this sample |
profile.followers |
integer | 13,213,613 |
profile.following |
integer | 67 |
profile.header_url |
string | https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/ac… |
profile.id |
string | 107780257626128497 |
profile.last_status_at |
string | 2026-11-30 |
profile.locked |
boolean | false |
profile.posts |
integer | 38,611 |
profile.tv_account |
boolean | false |
profile.url |
string | https://truthsocial.com/@realDonaldTrump |
profile.username |
string | realDonaldTrump |
profile.verified |
boolean | true |
profile.website |
string | www.DonaldJTrump.com |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Truth Social endpoints
Something missing or unclear? Ask the team that builds the Truth Social endpoints.