{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter Scraper - X Tweets, Profiles, Followers & Search",
    "description": "Twitter scraper, X scraper and tweet scraper with no login and no cookies. Scrape tweets from Twitter search by keyword, hashtag, user or date, the tweets of any Twitter profile, and Twitter followers and following lists. Export JSON, CSV or Excel. From $0.30 per 1,000 rows.",
    "version": "3.0",
    "x-build-id": "8wS5NGO8h2bv6D65S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/altimis~scweet/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-altimis-scweet",
        "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/altimis~scweet/runs": {
      "post": {
        "operationId": "runs-sync-altimis-scweet",
        "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/altimis~scweet/run-sync": {
      "post": {
        "operationId": "run-sync-altimis-scweet",
        "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": {
          "scrape": {
            "title": "What to scrape",
            "enum": [
              "tweets",
              "followers"
            ],
            "type": "string",
            "description": "Tweets returns the tweets of every input below, all in one run. Followers & following returns one row for each profile in the lists of the profiles you give."
          },
          "search_terms": {
            "title": "Search terms",
            "type": "array",
            "description": "Used by: Tweets. One search on each line, as you type it on X. All the operators of X work, for example from:NASA, #AI, \"exact phrase\", lang:en or min_faves:100. See the <a href=\"https://github.com/igorbrigadir/twitter-advanced-search\" target=\"_blank\">list of operators</a>. Add filter:safe to leave out sensitive tweets.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "X links or @handles",
            "type": "array",
            "description": "Used by: both modes. One on each line: a handle (NASA or @NASA), or the link of a profile, a tweet (the tweet and its replies), a list, a search page, or the followers or following page of a profile.",
            "items": {
              "type": "string"
            }
          },
          "max_items": {
            "title": "Maximum results",
            "minimum": 100,
            "maximum": 50000,
            "type": "integer",
            "description": "The most results for the whole run, at least 100. Each input first gets an equal share, and the inputs with more results fill the rest. If X holds fewer results than you ask for, the run returns what exists. Empty means 1,000."
          },
          "relationships": {
            "title": "Which lists",
            "type": "array",
            "description": "Used by: Followers & following. The lists to read for each profile. Empty means Followers. A followers or following link reads the list that it names.",
            "items": {
              "type": "string",
              "enum": [
                "followers",
                "following",
                "verified_followers"
              ],
              "enumTitles": [
                "Followers",
                "Following",
                "Verified Followers"
              ]
            }
          },
          "search_sort": {
            "title": "Sort",
            "enum": [
              "Top",
              "Latest",
              "Latest + Top"
            ],
            "type": "string",
            "description": "Used by: search terms. Latest returns the newest tweets first and reaches a large volume. Top returns a ranked selection. Latest + Top reads both, and each row names the sort that found it. Empty means Top. A search URL keeps the tab it names."
          },
          "since": {
            "title": "From date",
            "type": "string",
            "description": "Used by: search terms. A date sets 00:00:00 UTC. A date and time such as 2026-10-01T08:00:00Z also works, as text."
          },
          "until": {
            "title": "To date",
            "type": "string",
            "description": "Used by: search terms. A date sets 23:59:59 UTC."
          },
          "lang": {
            "title": "Language",
            "enum": [
              "",
              "en",
              "ab",
              "aa",
              "af",
              "ak",
              "sq",
              "am",
              "ar",
              "an",
              "hy",
              "as",
              "av",
              "ae",
              "ay",
              "az",
              "bm",
              "ba",
              "eu",
              "be",
              "bn",
              "bh",
              "bi",
              "bs",
              "br",
              "bg",
              "my",
              "ca",
              "ch",
              "ce",
              "ny",
              "zh",
              "cv",
              "kw",
              "co",
              "cr",
              "hr",
              "cs",
              "da",
              "dv",
              "nl",
              "eo",
              "et",
              "ee",
              "fo",
              "fj",
              "fi",
              "fr",
              "ff",
              "gl",
              "ka",
              "de",
              "el",
              "gn",
              "gu",
              "ht",
              "ha",
              "he",
              "iw",
              "hz",
              "hi",
              "ho",
              "hu",
              "ia",
              "id",
              "ie",
              "ga",
              "ig",
              "ik",
              "io",
              "is",
              "it",
              "iu",
              "ja",
              "jv",
              "kl",
              "kn",
              "kr",
              "ks",
              "kk",
              "km",
              "ki",
              "rw",
              "ky",
              "kv",
              "kg",
              "ko",
              "ku",
              "kj",
              "la",
              "lb",
              "lg",
              "li",
              "ln",
              "lo",
              "lt",
              "lu",
              "lv",
              "gv",
              "mk",
              "mg",
              "ms",
              "ml",
              "mt",
              "mi",
              "mr",
              "mh",
              "mn",
              "na",
              "nv",
              "nb",
              "nd",
              "ne",
              "ng",
              "nn",
              "no",
              "ii",
              "nr",
              "oc",
              "oj",
              "cu",
              "om",
              "or",
              "os",
              "pa",
              "pi",
              "fa",
              "pl",
              "ps",
              "pt",
              "qu",
              "rm",
              "rn",
              "ro",
              "ru",
              "sa",
              "sc",
              "sd",
              "se",
              "sm",
              "sg",
              "sr",
              "gd",
              "sn",
              "si",
              "sk",
              "sl",
              "so",
              "st",
              "es",
              "su",
              "sw",
              "ss",
              "sv",
              "ta",
              "te",
              "tg",
              "th",
              "ti",
              "bo",
              "tk",
              "tl",
              "tn",
              "to",
              "tr",
              "ts",
              "tt",
              "tw",
              "ty",
              "ug",
              "uk",
              "ur",
              "uz",
              "ve",
              "vi",
              "vo",
              "wa",
              "cy",
              "wo",
              "fy",
              "xh",
              "yi",
              "yo",
              "za"
            ],
            "type": "string",
            "description": "Used by: search terms."
          },
          "tweet_type": {
            "title": "Tweet type",
            "enum": [
              "all",
              "originals_only",
              "replies_only",
              "retweets_only",
              "exclude_replies",
              "exclude_retweets"
            ],
            "type": "string",
            "description": "Used by: search terms. Empty means all."
          },
          "min_likes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Used by: search terms."
          },
          "min_retweets": {
            "title": "Minimum retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Used by: search terms."
          },
          "min_replies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Used by: search terms."
          },
          "has_images": {
            "title": "Only tweets with images",
            "type": "boolean",
            "description": "Used by: search terms."
          },
          "has_videos": {
            "title": "Only tweets with videos",
            "type": "boolean",
            "description": "Used by: search terms."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}