{
  "openapi": "3.0.1",
  "info": {
    "title": "X Tweet Scraper: Twitter Profile Posts & Tweets, No Login",
    "description": "Twitter scraper API, no login: an account's tweets newest first, tweets by URL with likes, reposts, views and the whole text, X Articles as Markdown, replies, community top posts. Export to JSON, CSV or Excel. Misses free.",
    "version": "0.1",
    "x-build-id": "pUdoiwc2XwMQk1GAo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~x-tweet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-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/hyperbach~x-tweet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-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/hyperbach~x-tweet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-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 links or post ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Profile links (x.com/NASA, twitter.com/NASA), post links (x.com/NASA/status/123…, also with /photo/1 or from a share mirror such as fxtwitter.com), bare post ids, community links (x.com/i/communities/<id>), a Highlights tab link (x.com/NASA/highlights) or a search link whose term names one author (x.com/search?q=from:NASA). A list, a hashtag or a keyword search link gets a free row that says X shows it only to a logged-in reader.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "twitterHandles": {
            "title": "Handles",
            "maxItems": 5000,
            "type": "array",
            "description": "X handles, with or without @ (NASA, @SpaceX). Each handle's timeline is read: its own posts, its replies and its reposts, newest first.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms (from: one author)",
            "maxItems": 1000,
            "type": "array",
            "description": "X search terms whose author is one handle, such as from:NASA since:2026-10-01 lang:en min_faves:100 filter:media artemis. X serves its search only to a logged-in reader, so such a term is read as that handle's timeline and its other parts (since:, until:, since_id:, max_id:, lang:, min_faves:, min_retweets:, min_replies:, filter: / -filter: media, images, videos, links, replies, retweets, quote, words and \"phrases\") are applied to the posts the timeline serves. Any other term gets a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "conversationIds": {
            "title": "Conversation ids (a post and its first replies)",
            "maxItems": 5000,
            "type": "array",
            "description": "Post ids or post links: each post is read with the first replies X shows a logged-out reader (3 on its page).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max posts (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most post rows of the whole run (the charged rows); 0 = no cap beyond your charge limit: each input is read to its end (an account's timeline to the end X serves a logged-out reader, 85 to 833 posts on our walks of 2026-11-16). The free summary row of each input does not count.",
            "default": 0
          },
          "maxTweetsPerTarget": {
            "title": "Max posts per input",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most post rows of one input (one account, one search term, one community); 0 = no cap per input.",
            "default": 0
          },
          "start": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Keep posts posted on or after this date (YYYY-MM-DD, UTC). A timeline walk stops at the first post older than it (the pinned post aside)."
          },
          "end": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Keep posts posted on or before this date (YYYY-MM-DD, the whole day included, UTC)."
          },
          "sinceId": {
            "title": "Only posts newer than this post id",
            "type": "string",
            "description": "A post id: keep only posts with a higher id (newer); a timeline walk stops at the first older post. Give the newest id of your last run to read only what came after it."
          },
          "tweetLanguage": {
            "title": "Post language",
            "type": "string",
            "description": "A language code (en, es, ja …): keep only posts X marks with this language."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "Latest",
              "Top",
              "Latest + Top"
            ],
            "type": "string",
            "description": "Latest: newest first, X's own timeline order. Top and Latest + Top are search sorts, and X's search needs a login: the posts still come newest first and the run says so.",
            "default": "Latest"
          },
          "includeRetweets": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Keep the account's reposts (each with the original post and its own counts in retweet).",
            "default": true
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Keep the account's replies that its timeline shows.",
            "default": true
          },
          "includePinned": {
            "title": "Include the pinned post",
            "type": "boolean",
            "description": "Keep the account's pinned post (isPinned true; it is not one of the newest and never stops the walk).",
            "default": true
          },
          "onlyReplies": {
            "title": "Only replies",
            "type": "boolean",
            "description": "Keep only replies.",
            "default": false
          },
          "onlyImage": {
            "title": "Only posts with images",
            "type": "boolean",
            "description": "Keep only posts that carry a photo.",
            "default": false
          },
          "onlyVideo": {
            "title": "Only posts with videos",
            "type": "boolean",
            "description": "Keep only posts that carry a video or a GIF.",
            "default": false
          },
          "onlyQuote": {
            "title": "Only quote posts",
            "type": "boolean",
            "description": "Keep only posts that quote another post.",
            "default": false
          },
          "onlyVerifiedUsers": {
            "title": "Only verified authors",
            "type": "boolean",
            "description": "Keep only posts whose author carries any verification (blue, business or government).",
            "default": false
          },
          "onlyTwitterBlue": {
            "title": "Only blue-verified authors",
            "type": "boolean",
            "description": "Keep only posts whose author is blue-verified.",
            "default": false
          },
          "minimumFavorites": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep posts with at least this many likes (a repost is read by its original's counts).",
            "default": 0
          },
          "minimumRetweets": {
            "title": "Min reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep posts with at least this many reposts.",
            "default": 0
          },
          "minimumReplies": {
            "title": "Min replies",
            "minimum": 0,
            "type": "integer",
            "description": "Keep posts with at least this many replies.",
            "default": 0
          },
          "minimumViews": {
            "title": "Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep posts with at least this many views (a post with no view count from X, before December 2022, counts as 0).",
            "default": 0
          },
          "minimumBookmarks": {
            "title": "Min bookmarks",
            "minimum": 0,
            "type": "integer",
            "description": "Keep posts with at least this many bookmarks.",
            "default": 0
          },
          "includeKeywords": {
            "title": "Keep posts with any of these words",
            "type": "array",
            "description": "Keep only posts whose text or links contain at least one of these words (not case-sensitive).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Leave out posts with any of these words",
            "type": "array",
            "description": "Leave out posts whose text or links contain any of these words (not case-sensitive).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postReplies": {
            "title": "Read the first replies of each post link",
            "type": "boolean",
            "description": "For every post link or id: also deliver the first replies X shows a logged-out reader on the post's page (3). Each reply is a post row (replyOf names the post).",
            "default": false
          },
          "includeRaw": {
            "title": "Include X's own post object",
            "type": "boolean",
            "description": "Add raw: the post object exactly as X served it (larger rows).",
            "default": false
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}