{
  "openapi": "3.0.1",
  "info": {
    "title": "Truth Social Scraper — Profiles, Posts & Engagement",
    "description": "HTTP-only Truth Social scraper. No-login profiles, posts/replies & single-status lookup; search, trends, hashtags, followers & comments unlock with an optional token. Lead enrichment + monitoring.",
    "version": "0.0",
    "x-build-id": "1EWo44sapiomQNEzB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~truthsocial-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-truthsocial-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/brilliant_gum~truthsocial-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-truthsocial-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/brilliant_gum~truthsocial-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-truthsocial-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": "Mode",
            "enum": [
              "profile",
              "user-posts",
              "status-details"
            ],
            "type": "string",
            "description": "What to scrape (no login required for any mode): 'profile' (account details), 'user-posts' (a user's posts & replies), 'status-details' (single posts by ID or URL).",
            "default": "profile"
          },
          "identifiers": {
            "title": "Profiles (handles / URLs / IDs)",
            "type": "array",
            "description": "Truth Social users for the 'profile' and 'user-posts' modes. Accepts bare handles ('realDonaldTrump'), '@handle', full profile URLs ('https://truthsocial.com/@realDonaldTrump') or numeric account IDs. Handles are resolved to IDs automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post IDs / URLs",
            "type": "array",
            "description": "Status IDs or full status URLs ('https://truthsocial.com/@user/117216179932593008') for the 'status-details' mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on the number of records written to the dataset in this run, across all targets.",
            "default": 20
          },
          "maxPostsPerProfile": {
            "title": "Max posts per profile",
            "minimum": 1,
            "type": "integer",
            "description": "For 'user-posts': cap on posts fetched per profile (paginated in pages of 20). The global 'Max items' still applies.",
            "default": 20
          },
          "onlyReplies": {
            "title": "Only replies",
            "type": "boolean",
            "description": "For 'user-posts': keep only posts that are replies to another post.",
            "default": false
          },
          "excludeReplies": {
            "title": "Exclude replies",
            "type": "boolean",
            "description": "For 'user-posts': skip replies (filtered before they count against maxItems). Ignored if 'Only replies' is on.",
            "default": false
          },
          "excludeReblogs": {
            "title": "Exclude re-Truths (reblogs)",
            "type": "boolean",
            "description": "For 'user-posts': skip re-Truths / reblogs (filtered before they count against maxItems).",
            "default": false
          },
          "onlyMedia": {
            "title": "Only posts with media",
            "type": "boolean",
            "description": "For 'user-posts': keep only posts that have at least one media attachment.",
            "default": false
          },
          "includePinned": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "For 'user-posts': also fetch the profile's pinned posts (prepended).",
            "default": false
          },
          "pinnedOnly": {
            "title": "Pinned posts only",
            "type": "boolean",
            "description": "For 'user-posts': fetch ONLY the profile's pinned posts.",
            "default": false
          },
          "postsNewerThan": {
            "title": "Posts newer than",
            "type": "string",
            "description": "Only keep posts created on/after this ISO date (YYYY-MM-DD). Also stops paginating once older posts are reached."
          },
          "postsOlderThan": {
            "title": "Posts older than",
            "type": "string",
            "description": "Only keep posts created before this ISO date (YYYY-MM-DD)."
          },
          "sinceId": {
            "title": "Since ID",
            "type": "string",
            "description": "For 'user-posts': only posts with an ID greater than this (newer). Explicit pagination cursor."
          },
          "maxId": {
            "title": "Max ID",
            "type": "string",
            "description": "For 'user-posts': start paginating from before this post ID (older). Explicit pagination cursor."
          },
          "continueFromLastPost": {
            "title": "Continue from last post ID",
            "type": "boolean",
            "description": "Resume from the newest post ID seen in the previous run of this actor (state kept in the key-value store). Useful for periodic incremental collection.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Emit only items newer than the previous run (per-target last-seen ID kept in the key-value store 'LAST_SEEN').",
            "default": false
          },
          "cleanContent": {
            "title": "Clean content (strip HTML)",
            "type": "boolean",
            "description": "Add a plain-text 'text' (posts) / 'bio' (profiles) field with HTML stripped and links unwrapped. The raw HTML is always kept in 'contentHtml' / 'bioHtml'.",
            "default": true
          },
          "includeQuoted": {
            "title": "Include quoted post",
            "type": "boolean",
            "description": "Keep the expanded quoted-post object ('quote') on statuses that quote another post.",
            "default": true
          },
          "includeReblogged": {
            "title": "Include reblogged post",
            "type": "boolean",
            "description": "Keep the expanded original-post object ('reblog') on re-Truths / reblogs.",
            "default": true
          },
          "enrichLeads": {
            "title": "Enrich leads from bio",
            "type": "boolean",
            "description": "Extract emails, phone numbers, links and social handles (X, Instagram, Facebook, YouTube, TikTok, Telegram, LinkedIn, Rumble) from the profile bio, website and metadata fields into a 'leads' object.",
            "default": true
          },
          "outputPreset": {
            "title": "Output preset",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "Shape of each dataset record: 'full' (all fields) or 'compact' (the most useful fields).",
            "default": "full"
          },
          "flattenOutput": {
            "title": "Flatten output",
            "type": "boolean",
            "description": "Dot-flatten nested objects (author.handle, leads.emails.0, …) for clean CSV/Excel export.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Auto-configured — you can leave this empty. Apify platform proxy usage, when used, is billed to your account at cost. Advanced users may pin their own proxy here to override the built-in routing."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}