Docs · Profile
Profile
An account's bio, avatar, follower and post counts, and verification.
https://api.lurkapi.com/v1/truthsocial/profileWhen to use this
Use it to size up an account: followers, following, post count, verification and the date of the latest post. id is what user posts takes as user_id.
Pass handle as a username, @username or a truthsocial.com profile URL.
Unknown accounts return 404 not_found. Accounts explicitly hidden from logged-out visitors return 403 not_public. When the upstream cannot distinguish a hidden account from a missing one, the response is 404 not_found. Prominent accounts and most other public ones are visible.
Parameters
All parameters go in the query string.
| Parameter | Description |
|---|---|
handlestringrequired | Username, with or without @ (e.g. realDonaldTrump), or the profile URL.
|
Example request
Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.
curl "https://api.lurkapi.com/v1/truthsocial/profile?handle=realDonaldTrump" \
-H "x-api-key: YOUR_API_KEY"const params = new URLSearchParams({
handle: "realDonaldTrump",
});
const res = await fetch(`https://api.lurkapi.com/v1/truthsocial/profile?${params}`, {
headers: { "x-api-key": process.env.LURKAPI_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.fields);import os
import requests
res = requests.get(
"https://api.lurkapi.com/v1/truthsocial/profile",
params={
"handle": "realDonaldTrump",
},
headers={"x-api-key": os.environ["LURKAPI_KEY"]},
timeout=60,
)
data = res.json()
if not data["success"]:
raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["fields"])Example response
A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….
Show the example response (1 KB)Hide
{
"success": true,
"credits_remaining": 999998,
"credits_charged": 1,
"id": "107780257626128497",
"username": "realDonaldTrump",
"acct": "realDonaldTrump",
"display_name": "Donald J. Trump",
"note": "<p></p>",
"note_text": "",
"url": "https://truthsocial.com/@realDonaldTrump",
"avatar": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/av…",
"header": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/he…",
"website": "www.DonaldJTrump.com",
"location": null,
"fields": [],
"followers_count": 13086927,
"following_count": 69,
"statuses_count": 36875,
"last_status_at": "2026-09-30",
"verified": true,
"premium": true,
"locked": false,
"bot": false,
"created_at": "2022-02-11T16:16:57.705Z"
}Response fields
Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.
Show all 26 fieldsHide
| Field | Type | Description |
|---|---|---|
| success | true | Always true here; errors have success: false. |
| credits_remaining | number | Your balance after this call. On anonymous playground calls: free tries left today. |
| credits_charged | number | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| id | string | Account id, e.g. 107780257626128497. Pass it as user_id to user posts. |
| username | string | Username without @, e.g. realDonaldTrump. |
| acct | string | Same as username: every Truth Social account is local. |
| display_name | string | Display name. |
| note | string | Bio as HTML. |
| note_text | string | Bio as plain text. |
| url | string | Profile on truthsocial.com. |
| avatar | stringnullable | Profile picture URL; null if none. |
| header | stringnullable | Banner image URL; null if none. |
| website | stringnullable | Website from the profile, as typed (may lack https://); null if none. |
| location | stringnullable | Location from the profile; null if none. |
| fields | object[] | Extra profile fields (label/value pairs). |
| fields[].name | string | Label. |
| fields[].value | string | Value as HTML. |
| followers_count | number | Followers. |
| following_count | number | Accounts followed. |
| statuses_count | number | Posts, replies and reposts. |
| last_status_at | stringnullable | Day of the latest post, YYYY-MM-DD; null if never posted. |
| verified | boolean | Has the verified badge. |
| premium | booleannullable | Has Truth+ premium; null if not reported. |
| locked | boolean | Approves followers manually. |
| bot | boolean | Marked as an automated account. |
| created_at | string | Account created at, ISO 8601. |
Caching and freshness
Responses are cached for up to 10 minutes, so a repeat call within that window can return the same data. It still costs 1 credit.
Errors
Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key. Send it in the x-api-key header. |
| 401 | invalid_api_key | The key is unknown or was revoked. |
| 402 | insufficient_credits | Not enough credits for this call. Buy a pack or wait for tomorrow's top-up. |
| 403 | not_public | The platform confirmed this account or content isn't available to logged-out visitors. Use a publicly visible target. |
| 404 | not_found | The endpoint, or the thing you asked for (ad, post, subreddit), doesn't exist. Charged when the platform was checked. |
| 405 | method_not_allowed | Endpoints take GET with query params. |
| 429 | rate_limited | Too many calls at once. Wait for the retry-after seconds, then retry. |
| 500 | internal_error | Something broke on our side. Retry; 5xx errors are free. |
| 502 | upstream_error | The platform didn't give a usable answer. Retry; 5xx errors are free. |
| 503 | upstream_busy | All our connections to the platform are busy. Retry in a few seconds; 5xx errors are free. |
| 504 | upstream_timeout | The platform took over 30 seconds to answer. Retry; timeouts are free. |
Use it in Claude
Once LurkAPI is connected to Claude, this endpoint is the truthsocial_profile tool. Ask in plain English, for example:
Use LurkAPI's truthsocial_profile with handle "realDonaldTrump" and summarize what you find.Claude calls truthsocial_profile with arguments like these, and each call costs 1 credit:
{
"handle": "realDonaldTrump"
}Tool results skip nulls and empty lists to save tokens.