{
  "openapi": "3.0.1",
  "info": {
    "title": "Truth Social Scraper & API: Posts, Profiles & Follower Growth",
    "description": "Scrape Truth Social without login: posts of any account (Trump included) or a post by link, and profiles with exact follower counts and growth between runs. Text, likes, reposts, replies, media, links. New-post alerts.",
    "version": "0.1",
    "x-build-id": "E1EqpDcxEHaD1AxMu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~truth-social-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~truth-social-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~truth-social-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": {
          "profiles": {
            "title": "Truth Social accounts",
            "type": "array",
            "description": "Accounts, one per line: a handle (realDonaldTrump, @realDonaldTrump) or a profile link (https://truthsocial.com/@realDonaldTrump).",
            "items": {
              "type": "string"
            }
          },
          "collectProfile": {
            "title": "Collect profiles",
            "type": "boolean",
            "description": "One row per account: exact followers, following, posts, bio and growth since the previous check.",
            "default": true
          },
          "collectPosts": {
            "title": "Collect posts",
            "type": "boolean",
            "description": "The latest posts of every account and the posts given by link.",
            "default": true
          },
          "maxPostsPerProfile": {
            "title": "Posts per account",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many posts of each account, newest first.",
            "default": 100
          },
          "postUrls": {
            "title": "Posts by link",
            "type": "array",
            "description": "Single posts, one per line: https://truthsocial.com/@<name>/<number> or the post number.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "Posts since",
            "type": "string",
            "description": "Only posts from this date on (UTC): YYYY-MM-DD, \"yesterday\" or \"7 days ago\"."
          },
          "until": {
            "title": "Posts until",
            "type": "string",
            "description": "Only posts up to and including this date (UTC): YYYY-MM-DD or \"yesterday\"."
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Reposts (ReTruths) of other accounts appear in the profile. Turn off to get the account's own posts only.",
            "default": true
          },
          "skipReplies": {
            "title": "Skip replies",
            "type": "boolean",
            "description": "Leave out posts that reply to another post.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only posts with photos or videos",
            "type": "boolean",
            "description": "Keep only posts that have a photo or video.",
            "default": false
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Return only the posts published since the previous run with the same monitor name (the first run returns the latest posts as a baseline). Schedule the Actor every few minutes or every hour to get new posts as alerts. Already seen posts are free.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only accounts with a follower change",
            "type": "boolean",
            "description": "Return only accounts whose follower count changed since the previous check with the same monitor name (new accounts count as changed). Unchanged accounts are free.",
            "default": false
          },
          "minChange": {
            "title": "Minimum change",
            "minimum": 1,
            "type": "integer",
            "description": "With \"only accounts with a follower change\": the smallest change (up or down) that counts.",
            "default": 1
          },
          "includeHistory": {
            "title": "Include follower history",
            "type": "boolean",
            "description": "Add the saved history (up to 90 days, one point per day) to every account.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory apart for different schedules. It lives in the store truth-social-state and truth-social-history of your account."
          },
          "maxConcurrency": {
            "title": "Parallel accounts",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Accounts read at the same time.",
            "default": 3
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}