{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter Search Scraper",
    "description": "A twitter search scraper: search X (Twitter) by keyword and collect matching posts with authors, dates, counts and media links. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "ZDm2tfEdzxPWjF6Fj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/icoe-man~twitter-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-icoe-man-twitter-search-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/icoe-man~twitter-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-icoe-man-twitter-search-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/icoe-man~twitter-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-icoe-man-twitter-search-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Enter one or more search terms, such as nasa.",
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Posts from",
            "type": "string",
            "description": "Enter a date in UTC, such as 2026-11-01, to include posts from that day onward. Leave blank for no start date."
          },
          "postedBefore": {
            "title": "Posts before",
            "type": "string",
            "description": "Enter a date in UTC, such as 2026-11-15, to include only posts before that day. Leave blank for no end date or if you use Verified authors only. This filter may return fewer results than your limit."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Enter a two-letter language code, such as en for English or es for Spanish. Leave blank to allow any language or if you use Verified authors only."
          },
          "minLikes": {
            "title": "Minimum likes",
            "type": "string",
            "description": "Enter how many likes a post needs to qualify, such as 100. Leave blank for no minimum. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match."
          },
          "minReplies": {
            "title": "Minimum replies",
            "type": "string",
            "description": "Enter how many replies a post needs to qualify. Leave blank for no minimum. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match."
          },
          "minReposts": {
            "title": "Minimum reposts",
            "type": "string",
            "description": "Enter how many reposts a post needs to qualify. Leave blank for no minimum. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match."
          },
          "replyingTo": {
            "title": "Replying to",
            "type": "string",
            "description": "Enter a username, such as NASA, to get only replies to that account. Leave blank to allow replies to any account. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match."
          },
          "contentType": {
            "title": "Content",
            "enum": [
              "any",
              "images",
              "videos",
              "media",
              "links"
            ],
            "type": "string",
            "description": "By default, any post can match. To narrow the results, choose posts with images, videos, any media, or links. You can't choose videos with Verified authors only. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match.",
            "default": "any"
          },
          "replies": {
            "title": "Replies",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "The search includes replies by default. You can leave them out or get only replies. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match.",
            "default": "include"
          },
          "verifiedOnly": {
            "title": "Verified authors only",
            "enum": [
              "false",
              "true"
            ],
            "type": "string",
            "description": "Turn this on to get posts only from verified accounts. It's off by default. You can't combine it with Posts before, Language, or videos under Content. If the Actor applies this filter after reading posts, you may get fewer results than your limit. The run stops early if three pages in a row have no matches or too few of the posts it reads match.",
            "default": "false"
          },
          "maxItems": {
            "title": "Result limit per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Enter the maximum number of results to collect for each keyword.",
            "default": 100
          },
          "freshness": {
            "title": "Data freshness",
            "enum": [
              "standard",
              "live"
            ],
            "type": "string",
            "description": "Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.",
            "default": "standard"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}