# Truth Social — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Retrieve public profiles and recent posts from Truth Social to monitor accounts and stay updated on the latest content. Access account information and timelines directly without leaving your application.

**Category:** Social Media | **Website:** [http://truthsocial.com/@realDonaldTrump](http://truthsocial.com/@realDonaldTrump) | **Docs:** [parse.bot/marketplace/b9db3156-d5f8-4504-82ac-029b4d0219ab/truthsocial-com-api](https://parse.bot/marketplace/b9db3156-d5f8-4504-82ac-029b4d0219ab/truthsocial-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-truthsocial-com-api-b9db3156/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_account

Get public profile information for a Truth Social account by username. Returns account metadata including follower counts, verification status, and profile details. One network round-trip per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Truth Social username without the @ prefix (e.g. realDonaldTrump). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-truthsocial-com-api-b9db3156/get_account \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```

### get_posts

Get recent posts (truths) for a Truth Social account in reverse chronological order. Returns post content, engagement metrics, and media attachments. Supports cursor-based pagination via next_max_id. Each call costs two round-trips: one account lookup plus one statuses fetch.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `exclude_replies` | string | No | Whether to exclude replies. Accepts: true, false. |
| `limit` | integer | No | Number of posts to return per page. Must be between 1 and 40. |
| `max_id` | string | No | Return posts older than this post ID for pagination. Use next_max_id from a previous response. |
| `username` | string | Yes | Truth Social username without the @ prefix (e.g. realDonaldTrump). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-truthsocial-com-api-b9db3156/get_posts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exclude_replies":"<string>","limit":"<integer>","max_id":"<string>","username":"<string>"}'
```
