{
  "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": "5scUBGc40wr4beb6e"
  },
  "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": 1809160067.143722,
                "hostOnly": false,
                "httpOnly": true,
                "name": "auth_token",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "17a096a1f4e6d40234d04416b6f5e8dd9d4aaa10"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1774609057.211549,
                "hostOnly": false,
                "httpOnly": false,
                "name": "gt",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "2037446447470383354"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160056.93491,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177460006153566118"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1806136520.801749,
                "hostOnly": false,
                "httpOnly": false,
                "name": "twid",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "u%3D1920455259413200896"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1774604762.662277,
                "hostOnly": false,
                "httpOnly": true,
                "name": "__cf_bm",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": ".fsLDbEUztbR3vhWhdl8k8RR_2LpaCWOWYwPABVKNZs-1774602967.1711965-1.0.1.1-34uWZsCn84Pkt1_AeEbdOPslqn4IEpORwktM9LKaByd1vRv.BrSvRQJVdGaoJ8_BVe5mqT4BnZtUP1bb2YgROg5KuAh5nhd.MAOLG_V3qLs_goEQ0gnWrN_Fevay4VOT"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160067.571601,
                "hostOnly": false,
                "httpOnly": false,
                "name": "ct0",
                "path": "/",
                "sameSite": "lax",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1f689eff25248ff9b01e4ed7da49875f166a2379d95ed93effc0fe6e9b849d64c998686a07e5ffcf1e58aa2cf16d55fd4727ba988d3c85a1d3c7145b4fb69fbb7530465525c3b834c36cc7ae75455ca5"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160514.71244,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id_ads",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177460006153566118"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160514.712589,
                "hostOnly": false,
                "httpOnly": false,
                "name": "guest_id_marketing",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "v1%3A177460006153566118"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160067.143491,
                "hostOnly": false,
                "httpOnly": true,
                "name": "kdt",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "RtFEjBsmmcoMdKB6l5k7TAPI7Q86mSCQAEjjhKyj"
              },
              {
                "domain": ".x.com",
                "expirationDate": 1809160057.211493,
                "hostOnly": false,
                "httpOnly": false,
                "name": "personalization_id",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "\"v1_eW8avnf3KDYX+tXI9+jd1w==\""
              }
            ]
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}