{
  "openapi": "3.0.1",
  "info": {
    "title": "X Profile Scraper | $0.15/1K | Pay-Per-Result",
    "description": "Scrape X (Twitter) profiles, optional posts, replies, media, and likes for $0.15 per 1,000 delivered rows on paid Apify plans. Use handles, IDs, or URLs in bulk. Filters and deduplication run before billing. No X API key or login. Built by Xquik. Not affiliated with X Corp.",
    "version": "1.0",
    "x-build-id": "Lldc43hhqcoiYMwmd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xquik~x-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xquik-x-profile-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/xquik~x-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xquik-x-profile-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/xquik~x-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xquik-x-profile-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": "Profile URLs",
            "type": "array",
            "description": "Public x.com or twitter.com profile URLs. Strings and {\"url\":\"...\"} objects are accepted.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "twitterHandles": {
            "title": "X Handles",
            "type": "array",
            "description": "Usernames with or without @.",
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "Numeric User IDs",
            "type": "array",
            "description": "Numeric X user IDs.",
            "items": {
              "type": "string"
            }
          },
          "includeTweets": {
            "title": "Include Posts",
            "type": "boolean",
            "description": "Add maximum-coverage profile posts as separate billed rows.",
            "default": false
          },
          "includeReplies": {
            "title": "Include With Replies",
            "type": "boolean",
            "description": "Add maximum-coverage profile With Replies rows.",
            "default": false
          },
          "includeMedia": {
            "title": "Include Media Posts",
            "type": "boolean",
            "description": "Add posts from each profile Media tab.",
            "default": false
          },
          "includeLikes": {
            "title": "Include Likes",
            "type": "boolean",
            "description": "Add best-effort public liked posts when X exposes them.",
            "default": false
          },
          "includeFollowers": {
            "title": "Include Followers",
            "type": "boolean",
            "description": "Add maximum-coverage follower profiles.",
            "default": false
          },
          "includeFollowing": {
            "title": "Include Following",
            "type": "boolean",
            "description": "Add maximum-coverage followed profiles.",
            "default": false
          },
          "includeVerifiedFollowers": {
            "title": "Include Verified Followers",
            "type": "boolean",
            "description": "Add maximum-coverage verified follower profiles.",
            "default": false
          },
          "sinceDate": {
            "title": "Posts Since",
            "type": "string",
            "description": "Keep optional post rows on or after this date."
          },
          "untilDate": {
            "title": "Posts Until",
            "type": "string",
            "description": "Keep optional post rows on or before this date."
          },
          "language": {
            "title": "Post Language",
            "type": "string",
            "description": "Keep optional posts with this language code."
          },
          "mediaType": {
            "title": "Post Media Type",
            "enum": [
              "images",
              "videos",
              "gifs",
              "media",
              "links",
              "none"
            ],
            "type": "string",
            "description": "Keep optional posts with the selected media type."
          },
          "minViews": {
            "title": "Minimum Post Views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional posts with at least this many views."
          },
          "minLikes": {
            "title": "Minimum Post Likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional posts with at least this many likes."
          },
          "minReplies": {
            "title": "Minimum Post Replies",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional posts with at least this many replies."
          },
          "minRetweets": {
            "title": "Minimum Post Reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional posts with at least this many reposts."
          },
          "nativeRetweets": {
            "title": "Native Reposts Only",
            "type": "boolean",
            "description": "Keep only native reposts in optional post resources.",
            "default": false
          },
          "verifiedOnly": {
            "title": "Verified Authors or Profiles Only",
            "type": "boolean",
            "description": "Keep optional posts or profiles with verified authors.",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional profile rows above this audience size."
          },
          "maxFollowers": {
            "title": "Maximum Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional profile rows below this audience size."
          },
          "minAccountAgeDays": {
            "title": "Minimum Account Age in Days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep optional profile rows at least this old."
          },
          "maxItems": {
            "title": "Maximum Delivered Rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Global cap across profiles and optional timeline rows.",
            "default": 10000
          },
          "maxItemsPerTarget": {
            "title": "Rows per Profile",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap for each profile or selected profile resource."
          },
          "dedupeAcrossTargets": {
            "title": "Deduplicate Across Profiles",
            "type": "boolean",
            "description": "Remove repeated canonical rows before billing.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Maximum Concurrency",
            "minimum": 1,
            "maximum": 128,
            "type": "integer",
            "description": "Parallel independent profile reads. Leave the default for maximum safe throughput.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}