{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter Scraper",
    "description": "⚡ From $0.10/1K — No-Login Twitter (X.com) Scraper & Crypto X-Intel API (11-in-1): Tweets, Timelines, Threads, Replies, Profiles, HD Videos & Solana/Pump.fun Sentiment. MCP-ready for AI Agents & n8n. Zero cookies required.",
    "version": "2.0",
    "x-build-id": "ZnN3gCViNzJgVaTzs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nghianguyen2~twitter-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nghianguyen2-twitter-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/nghianguyen2~twitter-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nghianguyen2-twitter-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/nghianguyen2~twitter-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nghianguyen2-twitter-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": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "1. Extraction Mode (Action)",
            "enum": [
              "auto_start_urls",
              "timeline",
              "tweet",
              "batch_tweets",
              "thread_unroll",
              "user",
              "token_x_intel",
              "meme_radar",
              "search_x_tokens",
              "dex_boosts_live",
              "new_token_profiles"
            ],
            "type": "string",
            "description": "Select the extraction mode, or choose 'auto_start_urls' to paste a mixed list of Tweet URLs, Profile URLs, and Token CAs into Start URLs below.",
            "default": "auto_start_urls"
          },
          "startUrls": {
            "title": "Start URLs (Tweet URLs, Profile URLs, or Token CAs)",
            "type": "array",
            "description": "Paste any mix of X/Twitter Tweet URLs (https://x.com/user/status/123), Profile URLs (https://x.com/solana), or Solana/Base Contract Addresses. The scraper automatically detects each item type!",
            "default": [
              "https://x.com/solana/status/2125078025377378634",
              "https://x.com/solana"
            ],
            "items": {
              "type": "string"
            }
          },
          "twitterHandles": {
            "title": "Twitter (X) Handles (Multi-KOL Timeline / Profile Batch)",
            "type": "array",
            "description": "List of X handles (without @) to fetch their latest timeline tweets and profile stats (e.g., ['solana', 'elonmusk', 'VitalikButerin']).",
            "default": [
              "solana"
            ],
            "items": {
              "type": "string"
            }
          },
          "tweetIdOrUrl": {
            "title": "Tweet ID or X Status URL (for 'tweet' or 'thread_unroll')",
            "type": "string",
            "description": "Numeric Tweet ID or full https://x.com/user/status/1234567890 URL.",
            "default": "2124953580662886416"
          },
          "username": {
            "title": "Single X Username / Handle (for 'user' or 'timeline')",
            "type": "string",
            "description": "Twitter/X username without @ (e.g. 'elonmusk', 'solana', 'VitalikButerin').",
            "default": "solana"
          },
          "batchTweetIds": {
            "title": "Comma-Separated Tweet IDs (for 'batch_tweets')",
            "type": "string",
            "description": "Up to 25 comma-separated numeric Tweet IDs or URLs.",
            "default": "2125078025377378634,1812258574049157405,20"
          },
          "contractAddress": {
            "title": "Token Contract Address / CA (for 'token_x_intel')",
            "type": "string",
            "description": "Solana, Base, Ethereum, or BSC token contract address (e.g. 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263').",
            "default": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
          },
          "searchQuery": {
            "title": "Crypto Ticker or Keyword (for 'search_x_tokens')",
            "type": "string",
            "description": "Search token ticker or keyword on DexScreener + X (e.g. 'BONK', 'PEPE', 'SOL').",
            "default": "BONK"
          },
          "chain": {
            "title": "Blockchain Filter (for Crypto modes)",
            "enum": [
              "all",
              "solana",
              "base",
              "ethereum",
              "bsc"
            ],
            "type": "string",
            "description": "Filter tokens by blockchain network.",
            "default": "solana"
          },
          "maxItems": {
            "title": "Max Items per Handle / Query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of tweets or tokens to return per handle or query (1 - 50). No 50-tweet minimum!",
            "default": 10
          },
          "onlyVideo": {
            "title": "Filter: Only Tweets with Video (MP4)",
            "type": "boolean",
            "description": "If enabled, only returns tweets that contain a downloadable video.",
            "default": false
          },
          "onlyImage": {
            "title": "Filter: Only Tweets with Images / Media",
            "type": "boolean",
            "description": "If enabled, only returns tweets that contain images or media.",
            "default": false
          },
          "minimumLikes": {
            "title": "Filter: Minimum Likes (Favorites)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return tweets with at least this many likes (0 = no filter).",
            "default": 0
          },
          "minimumRetweets": {
            "title": "Filter: Minimum Retweets",
            "minimum": 0,
            "type": "integer",
            "description": "Only return tweets with at least this many retweets (0 = no filter).",
            "default": 0
          },
          "rapidapiKey": {
            "title": "Optional RapidAPI Key (Sub-250ms Cloudflare Global Edge Mode)",
            "type": "string",
            "description": "Optional: Provide a RapidAPI key from https://rapidapi.com/Techssss/api/twitter-x-real-time-data-crypto-x-intel to route through our Cloudflare Global Edge Cache. Leave blank to run directly inside the Actor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}