{
  "openapi": "3.0.1",
  "info": {
    "title": "X Reply Scraper | $0.00015/Reply | Pay-Per-Result",
    "description": "Scrape X (Twitter) replies, comments, conversations, and reply timelines from $0.00015 per delivered row on every Apify plan. Use bulk URLs, 25+ filters, and flat exports. No X login. Built by Xquik. World's fastest & cheapest X (Twitter) scraper service. Not affiliated with X Corp.",
    "version": "1.2",
    "x-build-id": "tNBpxgvERdzcYNZA5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xquik~x-reply-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xquik-x-reply-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-reply-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xquik-x-reply-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-reply-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xquik-x-reply-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": "X post or profile URLs",
            "type": "array",
            "description": "Public x.com or twitter.com post and profile URLs. Mix both in one run. The field accepts strings and {\"url\":\"...\"} objects."
          },
          "tweetIds": {
            "title": "Tweet IDs",
            "type": "array",
            "description": "Numeric Tweet IDs. Each ID becomes a reply-conversation target.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames for reply timelines",
            "type": "array",
            "description": "X usernames with or without @. Each one returns that account's public With Replies timeline.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum delivered rows",
            "minimum": 1,
            "type": "integer",
            "description": "Global reply-row limit across every target. The form starts at 1,000. A run can return 100,000 rows & more, so raise it for a full export.",
            "default": 100000
          },
          "maxItemsPerTarget": {
            "title": "Maximum rows per target",
            "minimum": 1,
            "type": "integer",
            "description": "Optional delivered-row cap for each post or profile target."
          },
          "scope": {
            "title": "Reply scope",
            "enum": [
              "direct",
              "nested",
              "all"
            ],
            "type": "string",
            "description": "direct keeps replies to the source post. nested keeps replies to replies. all keeps every available conversation reply.",
            "default": "all"
          },
          "maxDepth": {
            "title": "Maximum reply depth",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum parent-child depth from the source post. 1 keeps direct replies. Leave empty for every available depth."
          },
          "sort": {
            "title": "Sort replies",
            "enum": [
              "relevance",
              "latest",
              "oldest",
              "likes"
            ],
            "type": "string",
            "description": "Keep X relevance order, or sort the collected result by latest, oldest, or most liked.",
            "default": "relevance"
          },
          "includeOriginalPost": {
            "title": "Include original post",
            "type": "boolean",
            "description": "Add the source post as depth 0 when available.",
            "default": false
          },
          "exactPhrase": {
            "title": "Exact phrase",
            "type": "string",
            "description": "Keep replies containing this exact phrase. Case-insensitive."
          },
          "anyWords": {
            "title": "Any included words",
            "type": "array",
            "description": "Keep replies containing at least 1 listed word or phrase.",
            "items": {
              "type": "string"
            }
          },
          "excludeWords": {
            "title": "Excluded words",
            "type": "array",
            "description": "Remove replies containing any listed word or phrase.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Keep replies containing at least 1 listed hashtag. Values may include #.",
            "items": {
              "type": "string"
            }
          },
          "cashtags": {
            "title": "Cashtags",
            "type": "array",
            "description": "Keep replies containing at least 1 listed cashtag. Values may include $.",
            "items": {
              "type": "string"
            }
          },
          "fromUser": {
            "title": "Reply author",
            "type": "string",
            "description": "Keep replies written by this username."
          },
          "toUser": {
            "title": "Replying to user",
            "type": "string",
            "description": "Keep replies whose reply target is this username."
          },
          "mentioning": {
            "title": "Mentioning user",
            "type": "string",
            "description": "Keep replies mentioning this username."
          },
          "lang": {
            "title": "Reply language",
            "type": "string",
            "description": "Keep an X language code such as en, es, tr, de, or ja."
          },
          "excludeOriginalAuthor": {
            "title": "Exclude original author",
            "type": "boolean",
            "description": "Remove self-replies from the source-post author when author data is available.",
            "default": false
          },
          "verifiedOnly": {
            "title": "Verified authors only",
            "type": "boolean",
            "description": "Keep replies from accounts with any public verification signal.",
            "default": false
          },
          "blueVerifiedOnly": {
            "title": "X Premium authors only",
            "type": "boolean",
            "description": "Keep replies from X Premium or Blue verified accounts.",
            "default": false
          },
          "since": {
            "title": "Replies since",
            "type": "string",
            "description": "Inclusive date or timestamp, such as 2026-07-01 or an ISO 8601 timestamp."
          },
          "until": {
            "title": "Replies until",
            "type": "string",
            "description": "Exclusive date or timestamp, such as 2026-08-01 or an ISO 8601 timestamp."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum like count per delivered reply."
          },
          "minReplies": {
            "title": "Minimum child replies",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum reply count on each delivered reply."
          },
          "minRetweets": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum repost count per delivered reply."
          },
          "minQuotes": {
            "title": "Minimum quotes",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum quote count per delivered reply."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum view count per delivered reply."
          },
          "minBookmarks": {
            "title": "Minimum bookmarks",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum bookmark count per delivered reply."
          },
          "hasMediaOnly": {
            "title": "Replies with media only",
            "type": "boolean",
            "description": "Keep replies with an image, video, or GIF attachment.",
            "default": false
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "any",
              "image",
              "video",
              "gif",
              "link"
            ],
            "type": "string",
            "description": "Keep replies containing any media, an image, video, GIF, or link."
          },
          "outputMode": {
            "title": "Output detail",
            "enum": [
              "compact",
              "full",
              "rich",
              "raw"
            ],
            "type": "string",
            "description": "compact keeps fields used for analysis. full preserves every supported public reply field. rich adds every other public field X provides. raw also adds the sanitized source row.",
            "default": "full"
          },
          "outputPreset": {
            "title": "JSON or CSV layout",
            "enum": [
              "nested",
              "flat"
            ],
            "type": "string",
            "description": "nested preserves author and media objects. flat adds top-level author fields and media URL arrays for CSV and spreadsheets.",
            "default": "flat"
          },
          "fieldStyle": {
            "title": "Field names",
            "enum": [
              "source",
              "camelCase",
              "snake_case"
            ],
            "type": "string",
            "description": "Preserve source names or normalize nested output to camelCase or snake_case.",
            "default": "source"
          },
          "includeTargetMetadata": {
            "title": "Include source attribution",
            "type": "boolean",
            "description": "Add sourceTweetId, sourceTarget, and sourceUrl fields to every delivered row.",
            "default": true
          },
          "collectionStrategy": {
            "title": "Collection strategy",
            "enum": [
              "auto",
              "replies",
              "conversationSearch",
              "thread",
              "hiddenReplies"
            ],
            "type": "string",
            "description": "auto picks the best way to collect the chosen scope. conversationSearch favors broad conversation coverage. replies returns direct replies in X order. thread reads the full conversation context. hiddenReplies returns the replies the post author hid.",
            "default": "auto"
          },
          "startCursor": {
            "title": "Start cursor",
            "type": "string",
            "description": "Resume one target from a saved opaque cursor. Pass it unchanged. Legacy cursors remain supported. Use separate runs per cursor."
          },
          "dedupeAcrossTargets": {
            "title": "Deduplicate across targets",
            "type": "boolean",
            "description": "Write the first occurrence when the same reply appears under multiple targets.",
            "default": true
          },
          "alwaysSaveRunRecords": {
            "title": "Always save run records",
            "type": "boolean",
            "description": "Save run-report on every run. When off, small runs that go well skip it & cost less.",
            "default": false
          },
          "urls": {
            "title": "URLs alias",
            "type": "array",
            "description": "Alias for Start URLs. Accepts URL strings or {\"url\":\"...\"} objects."
          },
          "tweetUrls": {
            "title": "Tweet URLs alias",
            "type": "array",
            "description": "Tweet or post URL alias."
          },
          "postUrls": {
            "title": "Post URLs alias",
            "type": "array",
            "description": "Post URL alias."
          },
          "profileUrls": {
            "title": "Profile URLs alias",
            "type": "array",
            "description": "Alias for Usernames. Add profile URLs whose reply timelines to collect."
          },
          "conversationIds": {
            "title": "Conversation IDs alias",
            "type": "array",
            "description": "Alias for Tweet IDs.",
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post IDs alias",
            "type": "array",
            "description": "Alias for Tweet IDs.",
            "items": {
              "type": "string"
            }
          },
          "ids": {
            "title": "IDs alias",
            "type": "array",
            "description": "Alias for Tweet IDs.",
            "items": {
              "type": "string"
            }
          },
          "tweetId": {
            "title": "Single Tweet ID",
            "type": "string",
            "description": "Single Tweet ID alias."
          },
          "id": {
            "title": "Single ID alias",
            "type": "string",
            "description": "Single Tweet ID alias."
          },
          "twitterHandles": {
            "title": "Twitter handles alias",
            "type": "array",
            "description": "Alias for Usernames.",
            "items": {
              "type": "string"
            }
          },
          "screenname": {
            "title": "Single username alias",
            "type": "string",
            "description": "Single profile-reply username alias."
          },
          "useSearch": {
            "title": "Use conversation search alias",
            "type": "boolean",
            "description": "Compatibility alias. true selects conversationSearch.",
            "default": false
          },
          "includeNestedReplies": {
            "title": "Include nested replies alias",
            "type": "boolean",
            "description": "Compatibility alias for Reply Scope. Explicit Reply Scope takes precedence."
          },
          "includeRepliesOfReplies": {
            "title": "Include replies of replies alias",
            "type": "boolean",
            "description": "Compatibility alias for Reply Scope. Explicit Reply Scope takes precedence."
          },
          "maxResults": {
            "title": "Max results alias",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for Maximum Delivered Rows."
          },
          "max_results": {
            "title": "Max results alias",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for Maximum Delivered Rows."
          },
          "resultsLimit": {
            "title": "Results limit alias",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for Maximum Delivered Rows."
          },
          "maxReplies": {
            "title": "Max replies alias",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for Maximum Delivered Rows."
          },
          "maxRepliesPerTweet": {
            "title": "Max replies per Tweet alias",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for Maximum Rows per Target."
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post alias",
            "minimum": 1,
            "type": "integer",
            "description": "Compatibility alias for Maximum Rows per Target."
          },
          "queryType": {
            "title": "Query type alias",
            "type": "string",
            "description": "Compatibility alias. Latest selects latest. Likes selects most liked. Other values keep relevance."
          },
          "sortBy": {
            "title": "Sort alias",
            "type": "string",
            "description": "Alias for Sort Replies."
          },
          "includeOriginalTweet": {
            "title": "Include original Tweet alias",
            "type": "boolean",
            "description": "Alias for Include Original Post.",
            "default": false
          },
          "keywordInclude": {
            "title": "Included keywords alias",
            "type": "array",
            "description": "Alias merged with Any Included Words.",
            "items": {
              "type": "string"
            }
          },
          "keywordExclude": {
            "title": "Excluded keywords alias",
            "type": "array",
            "description": "Alias merged with Excluded Words.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language alias",
            "type": "string",
            "description": "Alias for Reply Language."
          },
          "minFaves": {
            "title": "Minimum favorites alias",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for Minimum Likes."
          },
          "sinceTime": {
            "title": "Since time alias",
            "type": "string",
            "description": "Alias for Replies Since."
          },
          "untilTime": {
            "title": "Until time alias",
            "type": "string",
            "description": "Alias for Replies Until."
          },
          "outputVariant": {
            "title": "Output variant alias",
            "type": "string",
            "description": "Alias for Output Detail."
          },
          "includeRaw": {
            "title": "Include raw alias",
            "type": "boolean",
            "description": "Compatibility alias. true selects raw output.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}