{
  "openapi": "3.0.1",
  "info": {
    "title": "Truth Social Scraper: Posts, Profiles, No Login",
    "description": "Scrape public Truth Social posts from any profile (realDonaldTrump and others) with text, time, replies, ReTruths and likes counts, images, video, link cards and quoted posts, plus single posts by link and profile details. No login or cookies. Pay per row.",
    "version": "0.1",
    "x-build-id": "iGTZ4LohOQy8spW8Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~truth-social-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~truth-social-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~truth-social-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "profile_posts",
              "posts",
              "profiles"
            ],
            "type": "string",
            "description": "profile_posts reads the newest posts of each profile you list. posts reads single posts from their links or ids. profiles returns one row per profile with follower, following and post counts. Replies to a post are not offered: Truth Social only shows them to logged in users.",
            "default": "profile_posts"
          },
          "profiles": {
            "title": "Profiles (profile_posts, profiles)",
            "type": "array",
            "description": "One profile per line: a username (realDonaldTrump), @username, or a profile link (https://truthsocial.com/@realDonaldTrump). Up to 500 per run.",
            "default": [
              "realDonaldTrump"
            ],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post links (posts)",
            "type": "array",
            "description": "One post per line: a post link (https://truthsocial.com/@realDonaldTrump/117389259991976695, with or without /posts/) or a bare post id. Up to 500 per run.",
            "default": [
              "https://truthsocial.com/@realDonaldTrump/117389259991976695"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max posts per profile",
            "minimum": 20,
            "maximum": 10000,
            "type": "integer",
            "description": "How many of each profile's newest posts to collect, 20 to 10,000. Truth Social serves 20 posts per page and lets a logged out visitor read about 5 pages a minute per connection, so 1,000 posts take a few minutes.",
            "default": 40
          },
          "since": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Optional. A date (2026-10-01), an ISO time (2026-10-01T09:00:00Z) or a window such as \"7 days\". Reading a profile stops at the first older post."
          },
          "until": {
            "title": "Posted before",
            "type": "string",
            "description": "Optional. Same formats as since. Newer posts are skipped (and not charged)."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also return the profile's replies to other posts (the Truths and Replies tab). Off by default, like the profile page.",
            "default": false
          },
          "includeReblogs": {
            "title": "Include ReTruths",
            "type": "boolean",
            "description": "Return posts the profile re-shared (ReTruths), marked is_reblog with reblogged_at. Untick to keep only the profile's own posts; skipped ReTruths are not charged.",
            "default": true
          },
          "onlyMedia": {
            "title": "Only posts with images or video",
            "type": "boolean",
            "description": "Keep only posts that carry images or video (the Media tab).",
            "default": false
          },
          "onlyNewPosts": {
            "title": "Only new posts (for schedules)",
            "type": "boolean",
            "description": "Skip posts an earlier run of yours already delivered for the same profile, so a scheduled run returns and charges only new ones.",
            "default": false
          },
          "useUnblockerFallback": {
            "title": "Use Apify UNBLOCKER if refused",
            "type": "boolean",
            "description": "Truth Social's Cloudflare refuses most datacenter IPs. When none of them gets through, or all are rate limited, send the request through Apify's UNBLOCKER proxy instead (at most 300 requests per run, paid by us, not added to your price). Untick to use the datacenter route only.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}