> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# TruthSocial Profile Info

Structured Truth Social data: send `handles`. Single lookup, 1 credit per successful call.

`GET|POST https://api.scrapier.io/api/v2/truthsocial-profile-info/` · 1 credit per successful call · Single lookup

## Overview

Call `GET /api/v2/truthsocial-profile-info/` with `handles`. The results are in `data.profile`. 6 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/truthsocial-profile-info/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "handles=realDonaldTrump" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/truthsocial-profile-info/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"handles": "realDonaldTrump"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["profile"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `handles` | string | yes | e.g. `realDonaldTrump` | The Truth Social account: "realDonaldTrump", "@realDonaldTrump", a profile URL (https://truthsocial.com/@realDonaldTrump, a /<status id> tail or the /users/<name> form is fine) or realDonaldTrump@truthsocial.com; case does not matter -> ONE profile record: the public Account entity verbatim (id, username, display_name, note / bio, avatar / header, followers_count, following_count, statuses_count, created_at, verified, premium, website ...), likes_count (likes received) and computed{engagement_rate, language, content_category}. Single lookup: next_cursor is always null. An unknown / suspended / moved account answers a status record (not_found \| account_suspended \| moved \| invalid_input) + status_note. |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `compute_metrics` | boolean | no | `true` | true (default) = sample the latest `feed_sample` original truths for computed.language / engagement_rate / content_category. false = profile only (1 request; engagement_rate / language null, category from the bio). Locked in cursor. |
| `feed_sample` | integer | no | `20` | Original truths sampled for the computed block (1..100, default 20 = one statuses page). Locked in cursor. |
| `count_likes` | boolean | no | `true` | true (default) = walk the status history (~20 a call) and sum favourites_count -> likes_count (likes received). false = likes_count null. Locked in cursor. |
| `likes_max_posts` | integer | no | `100` | Cap on the likes walk in statuses seen (default 100 = 5 pages). Capped at 600 (30 pages, ~20 s proxied) plus a 60 s wall-clock budget on the walk: past either likes_count is a lower bound (stats.likes_count_complete false + warning). Cloudflare allows ~6 statuses calls / minute / IP - proxied the walk hops to a fresh US exit, direct it sleeps. Locked in cursor. |
| `statuses_per_minute` | integer | no | `6` | Statuses requests per minute the scraper paces itself to (default 6). Locked in cursor. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.profile`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "handles": "@truthsocial",
    "profile": {
      "input_handle": "@truthsocial",
      "handle": "truthsocial",
      "account_id": "107759501782461327",
      "status": "ok",
      "status_note": null,
      "http_status": 200,
      "id": "107759501782461327",
      "username": "truthsocial",
      "acct": "truthsocial",
      "display_name": "Truth Social — $DJT",
      "locked": false,
      "bot": false,
      "discoverable": null,
      "group": false,
      "created_at": "2022-02-08T00:18:27.696Z",
      "note": "<p>Official page of TRUTH Social.</p>",
      "url": "https://truthsocial.com/@truthsocial",
      "avatar": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/759/501/782/461/327/original/4bea7f408ea74952.jpeg",
      "avatar_static": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/avatars/107/759/501/782/461/327/original/4bea7f408ea74952.jpeg",
      "header": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/759/501/782/461/327/original/238a02dff6f7342d.jpeg",
      "header_static": "https://static-assets-1.truthsocial.com/tmtg:prime-ts-assets/accounts/headers/107/759/501/782/461/327/original/238a02dff6f7342d.jpeg",
      "followers_count": 6682749,
      "following_count": 5,
      "statuses_count": 1369,
      "last_status_at": "2026-09-10",
      "verified": true,
      "location": "",
      "website": "https://truthsocial.com",
      "accepting_messages": true,
      "chats_onboarded": true,
      "feeds_onboarded": true,
      "tv_onboarded": true,
      "bookmarks_onboarded": false,
      "show_nonmember_group_statuses": true,
      "pleroma": {
        "accepts_chat_messages": true
      },
      "tv_account": false,
      "receive_only_follow_mentions": false,
      "group_reactions_onboarded": true,
      "premium": true,
      "accepted_status_edit_prompt": true,
      "emojis": [],
      "fields": [],
      "bio": "Official page of TRUTH Social.",
      "likes_count": null,
      "computed": {
        "engagement_rate": 0.0491,
        "language": "en",
        "content_category": "business"
      },
      "partial": false,
      "warnings": [],
      "stats": {
        "requests": 4,
        "retries": 0,
        "api_calls": 4,
        "rotations": 0,
        "proxy": true,
        "ratelimit_remaining": 299,
        "statuses_pages": 3,
        "statuses_seen": 42,
        "posts_sampled": 12,
        "feed_sample": 20,
        "language_source": "post_text+language_tag",
        "category_keywords": [
          "ceo",
          "company",
          "financial"
        ]
      },
      "duration_ms": 2629,
      "scraped_at": "2026-09-22T10:44:51.302Z"
    },
    "next_cursor": null
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `handles` | string | `@truthsocial` |  |
| `profile` | object | `{…}` | The results. |
| `next_cursor` | null | `null` | Pass back as `cursor` for the next page. `null` on the last page. |
| `profile.input_handle` | string | `@truthsocial` |  |
| `profile.handle` | string | `truthsocial` |  |
| `profile.account_id` | string | `107759501782461327` |  |
| `profile.status` | string | `ok` |  |
| `profile.status_note` | null | `null` |  |
| `profile.http_status` | integer | `200` |  |
| `profile.id` | string | `107759501782461327` |  |
| `profile.username` | string | `truthsocial` |  |
| `profile.acct` | string | `truthsocial` |  |
| `profile.display_name` | string | `Truth Social — $DJT` |  |
| `profile.locked` | boolean | `false` |  |
| `profile.bot` | boolean | `false` |  |
| `profile.discoverable` | null | `null` |  |
| `profile.group` | boolean | `false` |  |
| `profile.created_at` | string | `2022-02-08T00:18:27.696Z` |  |
| `profile.note` | string | `<p>Official page of TRUTH Social.</p>` |  |
| `profile.url` | string | `https://truthsocial.com/@truthsocial` |  |
| `profile.avatar` | string | `https://static-assets-1.truthsocial.com/tmtg:…` |  |
| `profile.avatar_static` | string | `https://static-assets-1.truthsocial.com/tmtg:…` |  |
| `profile.header` | string | `https://static-assets-1.truthsocial.com/tmtg:…` |  |
| `profile.header_static` | string | `https://static-assets-1.truthsocial.com/tmtg:…` |  |
| `profile.followers_count` | integer | `6682749` |  |
| `profile.following_count` | integer | `5` |  |
| `profile.statuses_count` | integer | `1369` |  |
| `profile.last_status_at` | string | `2026-09-10` |  |
| `profile.verified` | boolean | `true` |  |
| `profile.location` | string |  |  |
| `profile.website` | string | `https://truthsocial.com` |  |
| `profile.accepting_messages` | boolean | `true` |  |
| `profile.chats_onboarded` | boolean | `true` |  |
| `profile.feeds_onboarded` | boolean | `true` |  |
| `profile.tv_onboarded` | boolean | `true` |  |
| `profile.bookmarks_onboarded` | boolean | `false` |  |
| `profile.show_nonmember_group_statuses` | boolean | `true` |  |
| `profile.pleroma` | object | `{…}` |  |
| `profile.tv_account` | boolean | `false` |  |
| `profile.receive_only_follow_mentions` | boolean | `false` |  |
| `profile.group_reactions_onboarded` | boolean | `true` |  |
| `profile.premium` | boolean | `true` |  |
| `profile.accepted_status_edit_prompt` | boolean | `true` |  |
| `profile.emojis` | array | `[]` |  |
| `profile.fields` | array | `[]` |  |
| `profile.bio` | string | `Official page of TRUTH Social.` |  |
| `profile.likes_count` | null | `null` |  |
| `profile.computed` | object | `{…}` |  |
| `profile.partial` | boolean | `false` |  |
| `profile.warnings` | array | `[]` |  |
| `profile.stats` | object | `{…}` |  |
| `profile.duration_ms` | integer | `2629` |  |
| `profile.scraped_at` | string | `2026-09-22T10:44:51.302Z` |  |

## Pagination

Single lookup: everything comes back in one call and `next_cursor` is always `null`.

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Nothing special: send the inputs, read the result.

## Related

- [Truth Social Posts](https://docs.scrapier.io/api-reference/truth-social/truth-social-posts.md): Structured Truth Social data: send `usernames`. Cursor-paginated, 1 credit per successful call.
- [Truth Social Profile Info](https://docs.scrapier.io/api-reference/truth-social/truth-social-profile-scraper.md): Structured Truth Social data: send `handles`. Single lookup, 1 credit per successful call.
- [Truth Social Single Post](https://docs.scrapier.io/api-reference/truth-social/truth-social-single-post.md): Structured Truth Social data: send `urls`. Single lookup, 1 credit per successful call.
