{
  "openapi": "3.0.1",
  "info": {
    "title": "Scweet Twitter/X Scraper",
    "description": "Scrape Twitter (X) tweets from search + profiles. Filter keywords/hashtags/users/dates. Export JSON/CSV/XLSX. Fast. $0.30/1k. Free plan.",
    "version": "3.0",
    "x-build-id": "m2fVRVY0Rjskb9ddt"
  },
  "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",
        "required": [
          "max_items"
        ],
        "properties": {
          "source_mode": {
            "title": "Source Mode",
            "enum": [
              "auto",
              "search",
              "profiles"
            ],
            "type": "string",
            "description": "Choose the data path. In Auto, both paths run when both search input and profile URLs are provided.",
            "default": "auto"
          },
          "search_query": {
            "title": "Advanced Search Query",
            "type": "string",
            "description": "Search path input. Raw advanced query string. Ignored in Profiles mode.",
            "default": ""
          },
          "profile_urls": {
            "title": "Profile URLs / Handles",
            "type": "array",
            "description": "Profile path only. Supports @handle, handle, x.com/handle, twitter.com/handle, and full profile URLs. Ignored in Search mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "max_items": {
            "title": "Max Tweets",
            "minimum": 100,
            "type": "integer",
            "description": "Global cap for the run.",
            "default": 1000
          },
          "since": {
            "title": "Since (Start Date)",
            "type": "string",
            "description": "Date or timestamp. Date-only values are normalized to 00:00:00 UTC. If missing, defaults are computed automatically.",
            "default": ""
          },
          "until": {
            "title": "Until (End Date)",
            "type": "string",
            "description": "Date or timestamp. Date-only values are normalized to 23:59:59 UTC. If missing, defaults are computed automatically.",
            "default": ""
          },
          "search_sort": {
            "title": "Search Sort",
            "enum": [
              "Top",
              "Latest"
            ],
            "type": "string",
            "description": "Search product mode.",
            "default": "Top"
          },
          "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": "Language code filter.",
            "default": ""
          },
          "all_words": {
            "title": "All Words",
            "type": "array",
            "description": "Every listed term must appear.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "any_words": {
            "title": "Any Words",
            "type": "array",
            "description": "At least one listed term must appear.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "exact_phrases": {
            "title": "Exact Phrases",
            "type": "array",
            "description": "Exact phrases to include.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "exclude_words": {
            "title": "Exclude Words",
            "type": "array",
            "description": "Terms to exclude.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags_any": {
            "title": "Hashtags (Any)",
            "type": "array",
            "description": "Include tweets containing any listed hashtag.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags_exclude": {
            "title": "Hashtags (Exclude)",
            "type": "array",
            "description": "Exclude tweets containing these hashtags.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "from_users": {
            "title": "From Users",
            "type": "array",
            "description": "Search tweets authored by these users.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "to_users": {
            "title": "To Users",
            "type": "array",
            "description": "Search tweets replying to or directed at these users.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mentioning_users": {
            "title": "Mentioning Users",
            "type": "array",
            "description": "Search tweets mentioning these users.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tweet_type": {
            "title": "Tweet Type",
            "enum": [
              "all",
              "originals_only",
              "replies_only",
              "retweets_only",
              "exclude_replies",
              "exclude_retweets"
            ],
            "type": "string",
            "description": "Maps to filter:/-filter: operators.",
            "default": "all"
          },
          "verified_only": {
            "title": "Verified Only",
            "type": "boolean",
            "description": "Only verified users.",
            "default": false
          },
          "blue_verified_only": {
            "title": "Blue Verified Only",
            "type": "boolean",
            "description": "Only blue-verified users.",
            "default": false
          },
          "has_images": {
            "title": "Has Images",
            "type": "boolean",
            "description": "Must contain images.",
            "default": false
          },
          "has_videos": {
            "title": "Has Videos",
            "type": "boolean",
            "description": "Must contain videos.",
            "default": false
          },
          "has_links": {
            "title": "Has Links",
            "type": "boolean",
            "description": "Must contain links.",
            "default": false
          },
          "has_mentions": {
            "title": "Has Mentions",
            "type": "boolean",
            "description": "Must contain mentions.",
            "default": false
          },
          "has_hashtags": {
            "title": "Has Hashtags",
            "type": "boolean",
            "description": "Must contain hashtags.",
            "default": false
          },
          "min_likes": {
            "title": "Minimum Likes",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum likes threshold.",
            "default": 0
          },
          "min_replies": {
            "title": "Minimum Replies",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum replies threshold.",
            "default": 0
          },
          "min_retweets": {
            "title": "Minimum Retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum retweets threshold.",
            "default": 0
          },
          "place": {
            "title": "Place",
            "type": "string",
            "description": "Place operator value.",
            "default": ""
          },
          "geocode": {
            "title": "Geocode",
            "type": "string",
            "description": "Format: lat,lon,radius (for example: 39.8283,-98.5795,2500km).",
            "default": ""
          },
          "near": {
            "title": "Near",
            "type": "string",
            "description": "City or location text.",
            "default": ""
          },
          "within": {
            "title": "Within",
            "type": "string",
            "description": "Radius used with near (for example: 10km).",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}