{
  "openapi": "3.0.1",
  "info": {
    "title": "X (Twitter) List Scraper — Members & Tweets",
    "description": "Scrape X (Twitter) List members and timeline tweets by List URL or ID. Members include username, bio, followers and verification; tweets include text, likes, media and hashtags.",
    "version": "0.2",
    "x-build-id": "qOmUf7Ns3oWoZCgxr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~x-list-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-x-list-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/khadinakbar~x-list-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-x-list-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/khadinakbar~x-list-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-x-list-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": [
          "lists"
        ],
        "properties": {
          "lists": {
            "title": "X List URLs or IDs",
            "type": "array",
            "description": "Public X Lists to scrape. Use links like https://x.com/i/lists/1234567890 or just the numeric List ID. Up to 10 lists are read at the same time. Private lists return nothing.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "both",
              "members",
              "subscribers",
              "tweets"
            ],
            "type": "string",
            "description": "members = people added to the list. subscribers = people who follow the list. tweets = the list's timeline. both = members plus tweets. Members and subscribers are billed as member profiles.",
            "default": "both"
          },
          "maxMembersPerList": {
            "title": "Max members per list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most profiles to save per list, for members or subscribers (1 to 1000). You pay per profile saved. Free Apify plans return up to 25 members and 25 tweets per run.",
            "default": 100
          },
          "maxTweetsPerList": {
            "title": "Max tweets per list",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most tweets to save per list (1 to 500). You pay per tweet saved.",
            "default": 50
          },
          "minFollowers": {
            "title": "Minimum followers (members)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip member profiles with fewer followers. Skipped profiles are not billed. 0 keeps everyone.",
            "default": 0
          },
          "verifiedOnly": {
            "title": "Verified members only",
            "type": "boolean",
            "description": "Keep only members with a verified badge (blue or legacy). Others are skipped and not billed.",
            "default": false
          },
          "excludeRetweets": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Leave out reposts (posts that start with RT @). Skipped tweets are not billed.",
            "default": false
          },
          "excludeReplies": {
            "title": "Skip replies",
            "type": "boolean",
            "description": "Leave out replies so only original posts and quotes remain. Skipped tweets are not billed.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only tweets with media",
            "type": "boolean",
            "description": "Keep only tweets that have a photo or video.",
            "default": false
          },
          "minLikes": {
            "title": "Minimum likes (tweets)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip tweets with fewer likes than this. Skipped tweets are not billed.",
            "default": 0
          },
          "tweetLanguage": {
            "title": "Tweet language",
            "type": "string",
            "description": "Keep only tweets in this language, as a short code such as en, es or ja. Leave empty for all languages."
          },
          "sinceDate": {
            "title": "Tweets since date",
            "type": "string",
            "description": "Keep only tweets posted on or after this date, written like 2026-11-01. Leave empty for no date limit."
          },
          "includeRaw": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Attach the original data record to every row. Makes the dataset larger.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}