{
  "openapi": "3.0.1",
  "info": {
    "title": "Truth Social Scraper — Posts, ReTruths & Profiles",
    "description": "[from $3/1K posts] Scrape Truth Social posts (Truths and ReTruths) of Donald Trump or any public account, posts by URL and profiles: text, time, likes, ReTruths, replies count, media, links, quotes. Only-new mode for alerts. Export, schedule or call via API. No login, no run fee.",
    "version": "0.1",
    "x-build-id": "tiFyxqyhurApuuZP1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~truth-social-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-truth-social-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/lergassy~truth-social-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-truth-social-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/lergassy~truth-social-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-truth-social-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "🧭 What to get",
            "enum": [
              "posts",
              "profiles"
            ],
            "type": "string",
            "description": "<b>Posts</b> — the latest posts (Truths and ReTruths) of each account, plus any post URLs you add. <b>Profiles</b> — one row per account: followers, following, posts count, bio, website, verified badge.",
            "default": "posts"
          },
          "usernames": {
            "title": "👤 Usernames",
            "type": "array",
            "description": "Truth Social accounts. Bare name, with @, or the profile URL: <code>realDonaldTrump</code>, <code>@WhiteHouse</code>, <code>https://truthsocial.com/@DonaldJTrumpJr</code>.",
            "default": [
              "realDonaldTrump"
            ],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "🔗 Post URLs",
            "type": "array",
            "description": "Single posts to fetch, in Posts mode: <code>https://truthsocial.com/@realDonaldTrump/117363810994521058</code>. A bare post id works too. Date and repost filters do not apply to posts you name here.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerUser": {
            "title": "💯 Posts per account",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many of the newest posts to return for each account. 20 posts take one request; the Actor pages back through the timeline for more.",
            "default": 20
          },
          "postedAfter": {
            "title": "📅 Posted after",
            "type": "string",
            "description": "Only posts newer than this date — <code>2026-09-01</code>, an ISO timestamp or a relative value like <code>3 days</code>. The Actor stops paging once it passes this date, so it is also the cheapest way to get “everything since”."
          },
          "postedBefore": {
            "title": "📅 Posted before",
            "type": "string",
            "description": "Only posts older than this date. The Actor jumps straight to that point of the timeline, so an old window costs no extra requests."
          },
          "includeReposts": {
            "title": "🔁 Include ReTruths (reposts)",
            "type": "boolean",
            "description": "On: reposts appear as rows with <code>isRepost: true</code> and the original post's text, media and author. Off: only the account's own posts.",
            "default": true
          },
          "includeReplies": {
            "title": "💬 Include the account's replies",
            "type": "boolean",
            "description": "On: posts that are replies to someone else are kept too (<code>isReply: true</code>). Off (default): only top-level posts, as on the profile's “Truths” tab.",
            "default": false
          },
          "onlyNewRowsStore": {
            "title": "🔁 Only new posts — memory name",
            "pattern": "^[A-Za-z0-9-]{0,63}$",
            "type": "string",
            "description": "Give this run a name — <code>my-truth-watch</code> — and the Actor remembers every post it delivered under that name. Every later run with the same name writes and charges <b>only posts you have not received before</b>. Schedule the Actor every 15 minutes or hourly to get a feed of new posts instead of the same list each time. Leave empty to get everything found, every time."
          },
          "concurrency": {
            "title": "Accounts in parallel",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many accounts or post URLs are fetched at the same time. 3 is a safe default; more is faster for long lists but meets Truth Social's rate limits sooner.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Truth Social blocks datacenter addresses on every request, so the Actor uses Apify Residential proxy by default. Proxy costs are included in the price per post.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}