{
  "openapi": "3.0.1",
  "info": {
    "title": "Tweet Scraper - $0.14 per 1,000, No X API Key",
    "description": "$0.14 per 1,000 tweets, flat - no volume tiers, no plan gates. Full text, engagement counts, media, timestamps and author data from any handle or search. No X API key, no $200/month developer plan, no login.",
    "version": "0.1",
    "x-build-id": "2qvWNk0gxnQIVCxTi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~tweet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~tweet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~tweet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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": {
          "twitterHandles": {
            "title": "Profile handles",
            "type": "array",
            "description": "X / Twitter usernames (with or without @) to scrape recent tweets from. The most reliable, fully keyless mode. Example: elonmusk, nasa.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (profiles or tweets)",
            "type": "array",
            "description": "Paste X/Twitter URLs directly — a profile URL (https://x.com/nasa) scrapes its timeline, a status URL (https://x.com/nasa/status/123) scrapes that single tweet via the stable syndication CDN.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Full X search queries (supports advanced operators like from:, since:, filter:media, min_faves:). Note: keyless search is rate-limited by X and less reliable than profile/URL modes. NOTE: X no longer serves search to signed-out clients (its SearchTimeline API answers guest tokens with an empty 404), so this mode needs the optional X session cookies below. Profile handles and tweet URLs work with no login.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Search sort",
            "enum": [
              "Latest",
              "Top"
            ],
            "type": "string",
            "description": "For search terms: newest tweets (Latest) or most relevant (Top).",
            "default": "Latest"
          },
          "maxItems": {
            "title": "Max tweets",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of tweets to collect across all inputs. You are charged per tweet returned.",
            "default": 100
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "For profile timelines: include the account's replies, not just top-level tweets. Replies also require the optional X session cookies below; without them the run falls back to original tweets only and says so in a diagnostic row.",
            "default": false
          },
          "onlyVerifiedUsers": {
            "title": "Only verified authors",
            "type": "boolean",
            "description": "Keep only tweets whose author is verified (legacy or X Premium / blue).",
            "default": false
          },
          "since": {
            "title": "Since date",
            "type": "string",
            "description": "Only keep tweets on/after this date (YYYY-MM-DD). Profile timelines have no server-side date filter, so the actor walks the timeline backwards (up to 80 pages) to reach the window; a window years in the past may be out of reach and the run will say how far back it got."
          },
          "until": {
            "title": "Until date",
            "type": "string",
            "description": "Only keep tweets on/before this date (YYYY-MM-DD). Profile timelines have no server-side date filter, so the actor walks the timeline backwards (up to 80 pages) to reach the window; a window years in the past may be out of reach and the run will say how far back it got."
          },
          "xAuthToken": {
            "title": "X auth_token cookie (optional)",
            "type": "string",
            "description": "Optional. The auth_token cookie from a logged-in x.com browser session. Only needed for Search terms and for Include replies — X refuses both to signed-out clients. Profile handles and tweet URLs need no login. Use a throwaway account; X may rate-limit or lock accounts used for scraping."
          },
          "xCsrfToken": {
            "title": "X ct0 cookie (optional)",
            "type": "string",
            "description": "Optional. The ct0 (CSRF) cookie from the same logged-in x.com session as the auth_token above. Both must come from the same session or X rejects the request."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. You normally do not need to touch this: the Actor runs on its own pool of stable, unmetered egress addresses. Leave it as-is, or paste your own proxy servers under Custom proxy URLs if you prefer to use yours.",
            "default": {
              "useApifyProxy": true
            }
          },
          "notionConnector": {
            "title": "Notion connector ID (optional)",
            "type": "string",
            "description": "Optional. If set, the tweets are also delivered to your connected Notion via Apify MCP connectors — no extra code. Leave empty to just use the dataset."
          },
          "notionParentId": {
            "title": "Notion data-source ID (optional)",
            "type": "string",
            "description": "Optional Notion database/data-source id to create the pages in. If empty, pages are created privately in your workspace."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}