{
  "openapi": "3.0.1",
  "info": {
    "title": "Enhanced Twitter (X) Bot",
    "description": "A versatile Twitter bot for powerful social media automation. This tool uses the Twitter API to auto-like, auto-follow, and manage your followers. Configure keywords, schedules, and safety limits for effective Twitter engagement and account growth.",
    "version": "0.3",
    "x-build-id": "Bgt1zqyfqzQSmSsXq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eunit~enhanced-twitter-x-bot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eunit-enhanced-twitter-x-bot",
        "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/eunit~enhanced-twitter-x-bot/runs": {
      "post": {
        "operationId": "runs-sync-eunit-enhanced-twitter-x-bot",
        "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/eunit~enhanced-twitter-x-bot/run-sync": {
      "post": {
        "operationId": "run-sync-eunit-enhanced-twitter-x-bot",
        "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": [
          "consumer_key",
          "consumer_secret",
          "access_token",
          "access_token_secret"
        ],
        "properties": {
          "consumer_key": {
            "title": "Consumer Key",
            "type": "string",
            "description": "The API key for your Twitter developer account."
          },
          "consumer_secret": {
            "title": "Consumer Secret",
            "type": "string",
            "description": "The API secret for your Twitter developer account."
          },
          "access_token": {
            "title": "Access Token",
            "type": "string",
            "description": "The access token for your Twitter user account."
          },
          "access_token_secret": {
            "title": "Access Token Secret",
            "type": "string",
            "description": "The access token secret for your Twitter user account."
          },
          "bearer_token": {
            "title": "Bearer Token",
            "type": "string",
            "description": "The bearer token for Twitter API v2 requests (optional)."
          },
          "tweet_interval": {
            "title": "Tweet Interval (seconds)",
            "type": "integer",
            "description": "The time in seconds between each 'boost' tweet.",
            "default": 1800
          },
          "search_interval": {
            "title": "Search Interval (seconds)",
            "type": "integer",
            "description": "The time in seconds between each keyword search.",
            "default": 900
          },
          "follow_check_interval": {
            "title": "Follow Check Interval (seconds)",
            "type": "integer",
            "description": "The time in seconds between checks for new followers to follow back.",
            "default": 3600
          },
          "cleanup_interval": {
            "title": "Cleanup Interval (seconds)",
            "type": "integer",
            "description": "The time in seconds between cleanup runs (unfollowing non-followers).",
            "default": 86400
          },
          "min_action_delay": {
            "title": "Min Action Delay (seconds)",
            "type": "integer",
            "description": "The minimum random delay between actions like liking or following.",
            "default": 30
          },
          "max_action_delay": {
            "title": "Max Action Delay (seconds)",
            "type": "integer",
            "description": "The maximum random delay between actions.",
            "default": 120
          },
          "min_follow_delay": {
            "title": "Min Follow Delay (seconds)",
            "type": "integer",
            "description": "The minimum random delay between consecutive follow actions.",
            "default": 60
          },
          "max_follow_delay": {
            "title": "Max Follow Delay (seconds)",
            "type": "integer",
            "description": "The maximum random delay between consecutive follow actions.",
            "default": 180
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "List of keywords to search for tweets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "like_probability": {
            "title": "Like Probability (0.0-1.0)",
            "enum": [
              "0.0",
              "0.1",
              "0.2",
              "0.3",
              "0.4",
              "0.5",
              "0.6",
              "0.7",
              "0.8",
              "0.9",
              "1.0"
            ],
            "type": "string",
            "description": "The probability of liking a found tweet.",
            "default": "0.3"
          },
          "follow_probability": {
            "title": "Follow Probability (0.0-1.0)",
            "enum": [
              "0.0",
              "0.1",
              "0.2",
              "0.3",
              "0.4",
              "0.5",
              "0.6",
              "0.7",
              "0.8",
              "0.9",
              "1.0"
            ],
            "type": "string",
            "description": "The probability of following the author of a found tweet.",
            "default": "0.1"
          },
          "enable_engagement": {
            "title": "Enable Engagement",
            "type": "boolean",
            "description": "Enable/disable keyword-based liking and following.",
            "default": true
          },
          "enable_boost_tweets": {
            "title": "Enable Boost Tweets",
            "type": "boolean",
            "description": "Enable/disable periodic 'boost' tweets.",
            "default": true
          },
          "enable_follow_back": {
            "title": "Enable Follow Back",
            "type": "boolean",
            "description": "Enable/disable automatically following back new followers.",
            "default": true
          },
          "enable_cleanup": {
            "title": "Enable Cleanup",
            "type": "boolean",
            "description": "Enable/disable unfollowing users who do not follow you back.",
            "default": false
          },
          "enable_unfollow": {
            "title": "Enable Unfollow",
            "type": "boolean",
            "description": "A safety feature to prevent accidental mass unfollowing. This is a redundant field for safety reasons.",
            "default": false
          },
          "boost_message": {
            "title": "Boost Tweet Message",
            "type": "string",
            "description": "The message to be used for the periodic 'boost' tweets.",
            "default": "Building connections in the digital space! 🚀 Follow for insights on"
          },
          "welcome_message": {
            "title": "Welcome Message",
            "type": "string",
            "description": "The welcome message to send to new followers (not implemented in the provided code, but included for future use).",
            "default": "Thanks for the follow! Looking forward to connecting! 🤝"
          },
          "max_follows_per_day": {
            "title": "Max Follows per Day",
            "type": "integer",
            "description": "The maximum number of users the bot will follow in a single day.",
            "default": 100
          },
          "max_likes_per_day": {
            "title": "Max Likes per Day",
            "type": "integer",
            "description": "The maximum number of tweets the bot will like in a single day.",
            "default": 200
          },
          "max_tweets_per_day": {
            "title": "Max Tweets per Day",
            "type": "integer",
            "description": "The maximum number of tweets the bot will post in a single day.",
            "default": 20
          },
          "woeid": {
            "title": "WOEID",
            "type": "integer",
            "description": "Where On Earth Identifier for Twitter trends (e.g., 1 for Worldwide).",
            "default": 1
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "fr",
              "it",
              "es",
              "de",
              "pt",
              "ja",
              "ko",
              "ar",
              "hi",
              "ru"
            ],
            "type": "string",
            "description": "The language code for searches and interactions (e.g., 'en').",
            "default": "en"
          },
          "report_file": {
            "title": "Report File Name",
            "type": "string",
            "description": "The name of the file to save bot analytics to.",
            "default": "bot_analytics.json"
          },
          "performance_threshold": {
            "title": "Performance Threshold",
            "enum": [
              "0.0",
              "0.1",
              "0.2",
              "0.3",
              "0.4",
              "0.5",
              "0.6",
              "0.7",
              "0.8",
              "0.9",
              "1.0"
            ],
            "type": "string",
            "description": "Minimum engagement rate to consider the bot's performance successful.",
            "default": "0.1"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}