{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter Follower/Following/Verified Scraper",
    "description": "A Twitter Scraper that scrapes followers/following and verified follower/following data.",
    "version": "0.0",
    "x-build-id": "20ShMdAlPOmLZWnLy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dead00~twitter-follower-following-verified-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dead00-twitter-follower-following-verified-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/dead00~twitter-follower-following-verified-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dead00-twitter-follower-following-verified-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/dead00~twitter-follower-following-verified-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dead00-twitter-follower-following-verified-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": [
          "username",
          "cookies"
        ],
        "properties": {
          "username": {
            "title": "Usernames",
            "type": "array",
            "description": "Twitter usernames to scrape followers from (without @)",
            "default": [
              "elonmusk"
            ],
            "items": {
              "type": "string"
            }
          },
          "scrape_type": {
            "title": "Scrape Type",
            "enum": [
              "followers",
              "following",
              "verified_followers",
              "verified_following"
            ],
            "type": "string",
            "description": "What to scrape",
            "default": "followers"
          },
          "follower_limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of followers to scrape per username (for verified-only options, this is the limit after filtering)",
            "default": 20
          },
          "cookies": {
            "title": "Cookies",
            "type": "array",
            "description": "Twitter cookies for authentication (array of objects with name and value)",
            "default": [
              {
                "domain": ".x.com",
                "expirationDate": 1811412982.846718,
                "hostOnly": false,
                "httpOnly": true,
                "name": "auth_token",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "92e7877bdfd87af908c6d539dc65862288966c24"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814436958.223783,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177987695684429428"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1811917497.061782,
                "hostOnly": false,
                "httpOnly": false,
                "name": "twid",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "u%3D1877748387220799489"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1780986292.806873,
                "hostOnly": false,
                "httpOnly": false,
                "name": "external_referer",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "padhuUp37zjgzgv1mFWxJ12Ozwit7owX|0|8e8t2xd8A2w%3D"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1780383226.297378,
                "hostOnly": false,
                "httpOnly": true,
                "name": "__cf_bm",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "kWf2gTNFMJvjyHttIhHsPZm4px0RGOYtSUhrPqCbiG4-1780381424.1058052-1.0.1.1-YwCQ9XBoVjijH_BW9CyZNEYD1fdoXjzw8xKevJnVyfFoy3hcphRvWht_noPBUpFavGNAQQjdnSsRk97RynpYsdsh.AYnr4orpLCrEUheN2gjbduH40dY2Ef.41_PXdZF"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814436983.209681,
                "hostOnly": false,
                "httpOnly": false,
                "name": "ct0",
                "path": "/",
                "sameSite": "lax",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "2b28db60d87508ecd1aacb5b3eaabde0422a8c9054be2941a646c2f209eda73f2ad0421b538daf177411196f0adcadd5bfd4d33d0f7917e2f91d0ebb236d103569c557ba992533de64507d6bae59b7f7"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814437000.946302,
                "hostOnly": false,
                "httpOnly": false,
                "name": "dnt",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814941491.70758,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id_ads",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177987695684429428"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814941491.707756,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id_marketing",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177987695684429428"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1814436971.485391,
                "hostOnly": false,
                "httpOnly": false,
                "name": "personalization_id",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "\"v1_5FpDOs5xe3AmAR2jzHPTfA==\""
              }
            ]
          },
          "headless": {
            "title": "Headless Mode",
            "type": "boolean",
            "description": "Run browser in headless mode",
            "default": true
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "HTTP proxy configuration (residential US proxies recommended for better rate limits)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}