{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter/X Profile Scraper",
    "description": "Twitter/X Profile Scraper extracts public X (Twitter) profiles by handle or URL: name, bio, location, website, join date, exact followers, following, posts, media count, verification, banner, avatar and the newest posts.",
    "version": "1.0",
    "x-build-id": "PhVwOxf7trLHLk6Y2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~twitter-x-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-twitter-x-profile-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/neuro-scraper~twitter-x-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-twitter-x-profile-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/neuro-scraper~twitter-x-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-twitter-x-profile-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": {
          "twitterHandles": {
            "title": "X handles",
            "type": "array",
            "description": "Accounts to read, one per line: NASA, @NASA or https://x.com/NASA. One row per account.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Profile URLs",
            "type": "array",
            "description": "Profile links, one per line (https://x.com/NASA). Works the same as handles.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profile URLs (alternative field)",
            "type": "array",
            "description": "Same as Profile URLs - for inputs copied from other tools.",
            "items": {
              "type": "string"
            }
          },
          "includeLatestPosts": {
            "title": "Include the newest posts",
            "type": "boolean",
            "description": "Add the newest original posts of the account (up to 5) with text, date, likes, reposts, replies, views and media.",
            "default": true
          },
          "maxPostsPerProfile": {
            "title": "Newest posts per profile",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many of the newest posts to add per account (X shows up to 5 to visitors without an account).",
            "default": 5
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip accounts with fewer followers (0 = keep all).",
            "default": 0
          },
          "postsAsRows": {
            "title": "Newest posts as separate rows",
            "type": "boolean",
            "description": "Also write each newest post as its own row (text, likes, reposts, replies, views, media, thread ids), next to the profile row.",
            "default": false
          },
          "start": {
            "title": "Posts on or after",
            "type": "string",
            "description": "Keep only newest posts published on or after this date, e.g. 2026-11-01."
          },
          "end": {
            "title": "Posts on or before",
            "type": "string",
            "description": "Keep only newest posts published on or before this date."
          },
          "onlyImages": {
            "title": "Only posts with images",
            "type": "boolean",
            "description": "Keep only newest posts that carry a photo.",
            "default": false
          },
          "includeNativeRetweets": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Reposts are not shown on profiles to visitors without an account; the run logs a note when this is on.",
            "default": false
          },
          "getReplies": {
            "title": "Add replies of the newest posts",
            "type": "boolean",
            "description": "For each newest post, add the replies X shows under it as rows.",
            "default": false
          },
          "minReplyCount": {
            "title": "Minimum replies to read a post's replies",
            "minimum": 0,
            "type": "integer",
            "description": "Read replies only for posts with at least this many replies (0 = any post with replies).",
            "default": 0
          },
          "getAboutData": {
            "title": "About this account",
            "type": "boolean",
            "description": "Add the country the account is based in, how it connects and username changes when X shows them.",
            "default": true
          },
          "sinceDate": {
            "title": "Posts on or after",
            "type": "string",
            "description": "Included posts: keep posts from this date on."
          },
          "untilDate": {
            "title": "Posts on or before",
            "type": "string",
            "description": "Included posts: keep posts up to this date."
          },
          "language": {
            "title": "Post language",
            "type": "string",
            "description": "Included posts: two-letter language (en, es ...). Empty = any.",
            "default": ""
          },
          "mediaType": {
            "title": "Post media",
            "enum": [
              "",
              "images",
              "videos",
              "gifs",
              "media",
              "links",
              "none"
            ],
            "type": "string",
            "description": "Included posts: keep only posts with this kind of media.",
            "default": ""
          },
          "minViews": {
            "title": "Posts: minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Included posts: at least this many views.",
            "default": 0
          },
          "minLikes": {
            "title": "Posts: minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Included posts: at least this many likes.",
            "default": 0
          },
          "retweets": {
            "title": "Reposts",
            "enum": [
              "",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Included posts: keep, exclude or only reposts.",
            "default": ""
          },
          "verifiedOnly": {
            "title": "Only verified accounts",
            "type": "boolean",
            "description": "Keep only accounts with any verification badge.",
            "default": false
          },
          "blueVerifiedOnly": {
            "title": "Only blue-verified accounts",
            "type": "boolean",
            "description": "Keep only accounts with the blue badge.",
            "default": false
          },
          "verifiedType": {
            "title": "Verification type",
            "type": "string",
            "description": "Keep only this verification type: Business, Government ... Empty = any.",
            "default": ""
          },
          "minFollowing": {
            "title": "Minimum following",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts that follow at least this many accounts.",
            "default": 0
          },
          "minStatuses": {
            "title": "Minimum posts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts with at least this many posts.",
            "default": 0
          },
          "minAccountAgeDays": {
            "title": "Minimum account age (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts created at least this many days ago.",
            "default": 0
          },
          "hasWebsite": {
            "title": "Only accounts with a website",
            "type": "boolean",
            "description": "Keep accounts that show a website link.",
            "default": false
          },
          "hasLocation": {
            "title": "Only accounts with a location",
            "type": "boolean",
            "description": "Keep accounts that show a location.",
            "default": false
          },
          "bioContains": {
            "title": "Bio contains",
            "type": "string",
            "description": "Keep accounts whose bio contains this text.",
            "default": ""
          },
          "locationContains": {
            "title": "Location contains",
            "type": "string",
            "description": "Keep accounts whose location contains this text.",
            "default": ""
          },
          "fields": {
            "title": "Only these columns",
            "type": "array",
            "description": "Optional: write only these columns, in this order.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "omitFields": {
            "title": "Leave out columns",
            "type": "array",
            "description": "Optional: columns to leave out.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "renameFields": {
            "title": "Rename columns",
            "type": "array",
            "description": "Optional: one rename per line as old:new (e.g. followers:followerCount).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "flatten": {
            "title": "Flat rows",
            "type": "boolean",
            "description": "Object columns become separate columns (pinnedTweet_text ...).",
            "default": false
          },
          "fillMissingFields": {
            "title": "Keep empty columns",
            "type": "boolean",
            "description": "On: every row has every column (null when empty). Off: empty columns are left out of the row.",
            "default": true
          },
          "joinFields": {
            "title": "Join list columns",
            "type": "array",
            "description": "Optional: list columns to write as one text (e.g. hashtags).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "joinSeparator": {
            "title": "Join separator",
            "type": "string",
            "description": "Separator for Join list columns.",
            "default": ", "
          },
          "constantFields": {
            "title": "Constant columns",
            "type": "array",
            "description": "Optional: one column per line as name=value, added to every row (e.g. campaign=fall).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "deliverMode": {
            "title": "Delivery",
            "enum": [
              "perPost",
              "summary"
            ],
            "type": "string",
            "description": "Summary also writes one OUTPUT record to the key-value store listing every row of the run.",
            "default": "perPost"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run at the same time.",
            "default": 6
          },
          "maxItems": {
            "title": "Max profiles",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap on the number of profiles in this run. 0 = all.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}