{
  "openapi": "3.0.1",
  "info": {
    "title": "Tweet Scraper: X (Twitter) Search, Profiles, Lists & Replies",
    "description": "Scrape tweets from X (Twitter) by search term, advanced search filters, handle, list, tweet URL or conversation (replies). Clean JSON with full author profiles, media and engagement counts. $0.34 per 1,000 tweets, no minimum per query.",
    "version": "0.0",
    "x-build-id": "q09Iu6WFTPUlGyTuo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/winterlock~x-tweet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-winterlock-x-tweet-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/winterlock~x-tweet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-winterlock-x-tweet-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/winterlock~x-tweet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-winterlock-x-tweet-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": {
          "startUrls": {
            "title": "X (Twitter) URLs",
            "type": "array",
            "description": "Tweet, profile, search or list URLs, e.g. https://x.com/apify, https://x.com/search?q=apify&f=live, https://x.com/i/lists/123, https://x.com/apify/status/123. Search URLs keep their own tab (f=live is Latest).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Anything you would type into X search, including advanced operators, e.g. \"web scraping\", \"scraping from:apify\", \"#ai lang:en\". The filters below are added to every term.",
            "items": {
              "type": "string"
            }
          },
          "twitterHandles": {
            "title": "X handles",
            "type": "array",
            "description": "Get tweets posted by these accounts (searched as from:handle, so the filters and dates below apply).",
            "items": {
              "type": "string"
            }
          },
          "conversationIds": {
            "title": "Conversation IDs (replies)",
            "type": "array",
            "description": "Tweet IDs or tweet URLs whose whole conversation you want: the tweet, the tweets above it and its replies.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum tweets",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many tweets in total across all inputs. Leave empty for no limit (your maximum cost per run still applies)."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "Latest",
              "Top",
              "Latest + Top"
            ],
            "type": "string",
            "description": "Which search tab to read. Use Top if Latest returns few tweets. Latest + Top reads both and removes duplicates.",
            "default": "Latest"
          },
          "tweetLanguage": {
            "title": "Tweet language",
            "pattern": "^[a-zA-Z]{2,3}$",
            "type": "string",
            "description": "Only tweets in this language (ISO 639-1 code, e.g. en, es, ja)."
          },
          "onlyVerifiedUsers": {
            "title": "Only verified users",
            "type": "boolean",
            "description": "Only tweets from verified accounts."
          },
          "onlyTwitterBlue": {
            "title": "Only X Premium (blue check) users",
            "type": "boolean",
            "description": "Only tweets from accounts with a blue check."
          },
          "onlyImage": {
            "title": "Only tweets with images",
            "type": "boolean",
            "description": "Only tweets that contain images."
          },
          "onlyVideo": {
            "title": "Only tweets with videos",
            "type": "boolean",
            "description": "Only tweets that contain videos."
          },
          "onlyQuote": {
            "title": "Only quote tweets",
            "type": "boolean",
            "description": "Only tweets that quote another tweet."
          },
          "author": {
            "title": "From account",
            "type": "string",
            "description": "Only tweets sent by this handle."
          },
          "inReplyTo": {
            "title": "In reply to",
            "type": "string",
            "description": "Only tweets replying to this handle."
          },
          "mentioning": {
            "title": "Mentioning",
            "type": "string",
            "description": "Only tweets mentioning this handle."
          },
          "geotaggedNear": {
            "title": "Geotagged near",
            "type": "string",
            "description": "Only tweets sent near this place, e.g. Los Angeles. X's location search only matches tweets that carry location data, so expect few results."
          },
          "withinRadius": {
            "title": "Within radius",
            "type": "string",
            "description": "Radius around 'Geotagged near', e.g. 15km or 10mi."
          },
          "geocode": {
            "title": "Geocode",
            "type": "string",
            "description": "Only tweets from users within a radius of a point: latitude,longitude,radius, e.g. 37.7764685,-122.4172004,10km. X's location search only matches tweets that carry location data, so expect few results."
          },
          "placeObjectId": {
            "title": "Place ID",
            "type": "string",
            "description": "Only tweets tagged with this X place ID, e.g. 96683cc9126741d1."
          },
          "minimumRetweets": {
            "title": "Minimum retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Only tweets with at least this many retweets."
          },
          "minimumFavorites": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only tweets with at least this many likes."
          },
          "minimumReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Only tweets with at least this many replies."
          },
          "start": {
            "title": "Tweets since",
            "type": "string",
            "description": "Only tweets on or after this date: YYYY-MM-DD, or YYYY-MM-DD_HH:MM:SS_UTC."
          },
          "end": {
            "title": "Tweets until",
            "type": "string",
            "description": "Only tweets before this date: YYYY-MM-DD, or YYYY-MM-DD_HH:MM:SS_UTC."
          },
          "includeSearchTerms": {
            "title": "Include the search term",
            "type": "boolean",
            "description": "Add a searchTerm field to each tweet saying which input found it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}