{
  "openapi": "3.0.1",
  "info": {
    "title": "X Tweet Scraper | $0.15/1K Tweets | Pay-Per Result",
    "description": "Scrape X/Twitter tweets for just $0.15 per 1,000 results. Advanced search with 40+ filters, batch tweet lookup, multiple search terms. No API key needed, no rate limits. Export JSON, CSV, Excel. Cheapest tweet scraper on Apify. Twitter API alternative by Xquik.",
    "version": "1.0",
    "x-build-id": "GL9ydvfmqgX9aZdrD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xquik~x-tweet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xquik-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/xquik~x-tweet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xquik-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/xquik~x-tweet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xquik-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "X (Twitter) URLs to scrape. Supports tweet URLs, profile URLs, search URLs, and list URLs. Mix freely. Example: https://x.com/elonmusk, https://x.com/search?q=AI",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "twitterHandles": {
            "title": "Twitter Handles",
            "type": "array",
            "description": "X usernames to scrape timelines for. Accepts usernames with or without @ prefix. Example: elonmusk, @nasa",
            "items": {
              "type": "string"
            }
          },
          "listIds": {
            "title": "List IDs",
            "type": "array",
            "description": "X list IDs to scrape. Faster than pasting list URLs into Start URLs. Example: 1442216750565797889",
            "items": {
              "type": "string"
            }
          },
          "tweetIds": {
            "title": "Tweet IDs",
            "type": "array",
            "description": "Tweet IDs to look up directly. When set, all search and filter fields are ignored. Accepts up to 100 IDs per run. Example: 1846987139428634858",
            "items": {
              "type": "string"
            }
          },
          "twitterContent": {
            "title": "Search Query",
            "type": "string",
            "description": "Search query using Twitter/X advanced search syntax. Supports keywords, hashtags, exact phrases in quotes, and boolean operators (OR). Example: web scraping OR #datascience"
          },
          "searchTerms": {
            "title": "Search Terms",
            "type": "array",
            "description": "Run multiple searches in a single Actor run. Each term is searched separately, and maxItems applies per term. Example: from:elonmusk AI, #bitcoin lang:en",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of tweets to return. When searchTerms or listIds is set, this limit applies per term/list. Cost: $0.15 per 1,000 tweets.",
            "default": 200
          },
          "includeSearchTerms": {
            "title": "Include Search Terms",
            "type": "boolean",
            "description": "Attach the matching search term as a searchTerm field on each result tweet. Useful when running multiple searchTerms in one run.",
            "default": false
          },
          "queryType": {
            "title": "Sort By",
            "enum": [
              "Latest",
              "Top",
              "Latest + Top"
            ],
            "type": "string",
            "description": "Sort order for search results. Latest returns most recent. Top returns most popular. Latest + Top runs both passes and deduplicates for maximum coverage.",
            "default": "Latest"
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Filter tweets by language using ISO 639-1 codes. Example: en (English), es (Spanish), ja (Japanese), fr (French)."
          },
          "from": {
            "title": "From User",
            "type": "string",
            "description": "Only include tweets sent by this username (without the @ symbol). Example: elonmusk"
          },
          "to": {
            "title": "To User",
            "type": "string",
            "description": "Only include tweets that are replies to this username (without @). Example: OpenAI"
          },
          "@": {
            "title": "Mentioning User",
            "type": "string",
            "description": "Only include tweets that mention this username (without @). Example: Google"
          },
          "list": {
            "title": "List ID",
            "type": "string",
            "description": "Tweets from members of list ID."
          },
          "near": {
            "title": "Near Place",
            "type": "string",
            "description": "Only include tweets geotagged near this place. Example: San Francisco"
          },
          "within": {
            "title": "Within Radius",
            "type": "string",
            "description": "Radius for the Near Place filter. Example: 10km, 25mi"
          },
          "geocode": {
            "title": "Geocode",
            "type": "string",
            "description": "Filter by exact coordinates in lat,long,radius format. Example: 37.7749,-122.4194,10km"
          },
          "since": {
            "title": "Since Date",
            "type": "string",
            "description": "Only include tweets on or after this date. Format: YYYY-MM-DD_HH:MM:SS_UTC. Example: 2026-01-01_00:00:00_UTC"
          },
          "until": {
            "title": "Until Date",
            "type": "string",
            "description": "Only include tweets before this date. Same format as Since Date. Example: 2026-04-01_00:00:00_UTC"
          },
          "since_time": {
            "title": "Since Time",
            "type": "string",
            "description": "Only include tweets on or after this unix timestamp (seconds). Example: 1704067200"
          },
          "until_time": {
            "title": "Until Time",
            "type": "string",
            "description": "Only include tweets before this unix timestamp (seconds). Example: 1711929600"
          },
          "since_id": {
            "title": "Since ID",
            "type": "string",
            "description": "Only include tweets with an ID greater than (posted after) this tweet ID."
          },
          "max_id": {
            "title": "Max ID",
            "type": "string",
            "description": "Only include tweets with an ID less than (posted before) this tweet ID."
          },
          "within_time": {
            "title": "Within Time",
            "type": "string",
            "description": "Only include tweets from the last N time units. Example: 1d (1 day), 12h (12 hours), 30m (30 minutes), 60s (60 seconds)"
          },
          "conversation_id": {
            "title": "Conversation ID",
            "type": "string",
            "description": "Only include tweets belonging to this conversation thread. Use the first tweet's ID in the thread."
          },
          "quoted_tweet_id": {
            "title": "Quoted Tweet ID",
            "type": "string",
            "description": "Only include tweets that quote this specific tweet ID."
          },
          "quoted_user_id": {
            "title": "Quoted User ID",
            "type": "string",
            "description": "Only include tweets that quote any tweet from this user ID."
          },
          "url": {
            "title": "URL",
            "type": "string",
            "description": "Only include tweets containing this URL or domain. Example: github.com"
          },
          "card_name": {
            "title": "Card Name",
            "enum": [
              "poll2choice_text_only",
              "poll3choice_text_only",
              "poll4choice_text_only",
              "poll2choice_image",
              "poll3choice_image",
              "poll4choice_image"
            ],
            "type": "string",
            "description": "Filter by Twitter poll or card type. Use to find tweets with specific poll formats."
          },
          "filter:blue_verified": {
            "title": "Blue Verified Only",
            "type": "boolean",
            "description": "Only include tweets from X Premium (Blue) verified accounts.",
            "default": false
          },
          "filter:nativeretweets": {
            "title": "Native Retweets Only",
            "type": "boolean",
            "description": "Only include native retweets.",
            "default": false
          },
          "include:nativeretweets": {
            "title": "Include Native Retweets",
            "type": "boolean",
            "description": "Include native retweets in results (excluded by default).",
            "default": false
          },
          "filter:replies": {
            "title": "Replies Only",
            "type": "boolean",
            "description": "Only include reply tweets.",
            "default": false
          },
          "filter:quote": {
            "title": "Quote Tweets Only",
            "type": "boolean",
            "description": "Only include quote tweets.",
            "default": false
          },
          "filter:has_engagement": {
            "title": "Has Engagement",
            "type": "boolean",
            "description": "Only include tweets with at least one like, retweet, or reply.",
            "default": false
          },
          "filter:media": {
            "title": "Has Media",
            "type": "boolean",
            "description": "Only include tweets containing any media (images, videos, GIFs).",
            "default": false
          },
          "filter:twimg": {
            "title": "Has Twimg",
            "type": "boolean",
            "description": "Only include tweets containing Twitter-hosted images (twimg.com).",
            "default": false
          },
          "filter:images": {
            "title": "Has Images",
            "type": "boolean",
            "description": "Only include tweets containing images.",
            "default": false
          },
          "filter:videos": {
            "title": "Has Videos",
            "type": "boolean",
            "description": "Only include tweets containing any video.",
            "default": false
          },
          "filter:native_video": {
            "title": "Has Native Video",
            "type": "boolean",
            "description": "Only include tweets with natively uploaded video.",
            "default": false
          },
          "filter:vine": {
            "title": "Has Vine",
            "type": "boolean",
            "description": "Only include tweets with Vine videos.",
            "default": false
          },
          "filter:consumer_video": {
            "title": "Has Consumer Video",
            "type": "boolean",
            "description": "Only include tweets with consumer-uploaded video.",
            "default": false
          },
          "filter:pro_video": {
            "title": "Has Pro Video",
            "type": "boolean",
            "description": "Only include tweets with professionally produced video.",
            "default": false
          },
          "filter:spaces": {
            "title": "Has Spaces",
            "type": "boolean",
            "description": "Only include tweets containing a Twitter Spaces link.",
            "default": false
          },
          "filter:links": {
            "title": "Has Links",
            "type": "boolean",
            "description": "Only include tweets containing external links.",
            "default": false
          },
          "filter:mentions": {
            "title": "Has Mentions",
            "type": "boolean",
            "description": "Only include tweets containing @mentions.",
            "default": false
          },
          "filter:news": {
            "title": "Has News",
            "type": "boolean",
            "description": "Only include tweets containing news article links.",
            "default": false
          },
          "filter:safe": {
            "title": "Safe Content Only",
            "type": "boolean",
            "description": "Only include tweets marked as safe (excludes sensitive content).",
            "default": false
          },
          "filter:hashtags": {
            "title": "Has Hashtags",
            "type": "boolean",
            "description": "Only include tweets containing hashtags.",
            "default": false
          },
          "min_retweets": {
            "title": "Minimum Retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at least this many retweets. Set to 0 to disable.",
            "default": 0
          },
          "min_faves": {
            "title": "Minimum Likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at least this many likes.",
            "default": 0
          },
          "min_replies": {
            "title": "Minimum Replies",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at least this many replies.",
            "default": 0
          },
          "-min_retweets": {
            "title": "Maximum Retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at most this many retweets.",
            "default": 0
          },
          "-min_faves": {
            "title": "Maximum Likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at most this many likes.",
            "default": 0
          },
          "-min_replies": {
            "title": "Maximum Replies",
            "minimum": 0,
            "type": "integer",
            "description": "Only include tweets with at most this many replies.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}