{
  "openapi": "3.0.1",
  "info": {
    "title": "X (Twitter) Reply Scraper | $0.15/1K Replies | Pay-Per Result",
    "description": "Scrape X (Twitter) replies, comments, conversations & profile reply timelines for $0.15 per 1,000 rows on paid Apify plans. Bulk URLs or IDs. Nested replies. Filters run before billing. No start fee. No query fee. No X login. Built by Xquik. Not affiliated with X Corp.",
    "version": "1.0",
    "x-build-id": "5umXrUz9UycWJYgZu"
  },
  "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. Strings and {\"url\":\"...\"} objects are accepted."
          },
          "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 @. Returns reply posts from each public With Replies timeline.",
            "items": {
              "type": "string"
            }
          },
          "collectionStrategy": {
            "title": "Collection Strategy",
            "enum": [
              "auto",
              "replies",
              "conversationSearch",
              "thread"
            ],
            "type": "string",
            "description": "auto uses the direct reply endpoint and switches to conversation search when X reports incomplete replies. conversationSearch favors broad conversation coverage. replies forces the direct reply endpoint. thread reads the full conversation context.",
            "default": "auto"
          },
          "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
          },
          "maxItems": {
            "title": "Maximum Delivered Rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global reply-row limit across every target. Agents should set this explicitly. Leave empty to use the Apify maximum-charge limit when set. Otherwise, the Actor uses 200."
          },
          "maxItemsPerTarget": {
            "title": "Maximum Rows per Target",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional delivered-row cap for each post or profile target."
          },
          "maxPagesPerTarget": {
            "title": "Maximum Pages per Target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety cap for source pagination. Continuation cursors remain available in the key-value store.",
            "default": 10
          },
          "startCursor": {
            "title": "Start Cursor",
            "type": "string",
            "description": "Resume one target from a prior X pagination cursor. For multi-target runs, use separate runs per saved cursor."
          },
          "dedupeAcrossTargets": {
            "title": "Deduplicate Across Targets",
            "type": "boolean",
            "description": "Write the first occurrence when the same reply appears under multiple targets.",
            "default": true
          },
          "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
          },
          "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."
          },
          "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."
          },
          "outputMode": {
            "title": "Output Detail",
            "enum": [
              "compact",
              "full",
              "raw"
            ],
            "type": "string",
            "description": "compact keeps analysis-ready fields. full preserves every supported public reply field. 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
          },
          "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": "Profile URL alias for public With Replies timelines."
          },
          "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}