# President's Posts `GET` `https://api.unusualwhales.com/api/potus/posts` Returns the President's short-form social media posts (currently Truth Social), newest first. Use `search_term` to filter posts by text content. Supports pagination via `limit` and `page` (page is 0-indexed). ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Query Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `limit` | Default 200 Max 200 Min 1 | No | How many items to return. Default: 200. Max: 200. Min: 1. | | `page` | Page | No | Page number (use with limit). Starts on page 0. | | `search_term` | POTUS Post Search Term | No | Optional search term to filter posts by their text content. | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `post` | string | The full text of the post. | | `timestamp` | integer | The post's publish time as a Unix epoch timestamp in milliseconds (UTC). | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/potus/posts" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("api.unusualwhales.com") headers = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"} conn.request("GET", "/api/potus/posts", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": [ { "post": "Best fireworks show, EVER! President DJT", "timestamp": 1783561144000 }, { "post": "Tariffs are working. America First!", "timestamp": 1783550000000 } ] } ```