{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper",
    "description": "Bluesky/bsky social media scraper — posts, profiles, followers, feeds, trending. 15 modes, 30+ fields, sentiment analysis, engagement metrics. Free AT Protocol API, no proxy. Social media monitoring & brand tracking.",
    "version": "1.0",
    "x-build-id": "DKRO0Ku0YD0SZeSfl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/commanding_hotdog~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-commanding_hotdog-bluesky-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/commanding_hotdog~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-commanding_hotdog-bluesky-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/commanding_hotdog~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-commanding_hotdog-bluesky-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "📋 选择功能",
            "enum": [
              "search_posts",
              "user_posts",
              "user_profile",
              "followers",
              "following",
              "post_thread",
              "custom_feed",
              "post_likes",
              "quote_posts",
              "trending_topics",
              "starter_pack"
            ],
            "type": "string",
            "description": "选择要执行的数据提取功能",
            "default": "search_posts"
          },
          "searchQuery": {
            "title": "🔍 搜索关键词",
            "type": "string",
            "description": "输入关键词、标签或短语（例如：python、#AI、web scraping）"
          },
          "handles": {
            "title": "👤 用户 Handle",
            "type": "string",
            "description": "输入 Bluesky 用户名，多个用逗号分隔（例如：jay.bsky.team, pfrazee.com）"
          },
          "postUrls": {
            "title": "🔗 帖子链接",
            "type": "string",
            "description": "输入帖子 URL 或 AT-URI，多个用逗号分隔"
          },
          "feedUri": {
            "title": "📰 Feed URI",
            "type": "string",
            "description": "输入自定义 Feed 的 AT-URI（例如：at://did:plc:xxx/app.bsky.feed.generator/xxx）"
          },
          "maxItems": {
            "title": "📊 最大结果数",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "最多提取多少条结果",
            "default": 100
          },
          "searchSort": {
            "title": "📈 排序方式",
            "enum": [
              "latest",
              "top",
              "hot"
            ],
            "type": "string",
            "description": "结果排序方式",
            "default": "latest"
          },
          "dateSince": {
            "title": "📅 开始日期",
            "type": "string",
            "description": "只包含此日期之后的帖子（格式：YYYY-MM-DD）"
          },
          "dateUntil": {
            "title": "📅 结束日期",
            "type": "string",
            "description": "只包含此日期之前的帖子（格式：YYYY-MM-DD）"
          },
          "language": {
            "title": "🌐 语言过滤",
            "enum": [
              "",
              "en",
              "zh",
              "ja",
              "ko",
              "es",
              "fr",
              "de",
              "pt",
              "ru",
              "ar"
            ],
            "type": "string",
            "description": "只返回指定语言的帖子",
            "default": ""
          },
          "includeReplies": {
            "title": "💬 包含回复",
            "type": "boolean",
            "description": "是否包含回复帖子",
            "default": true
          },
          "includeReposts": {
            "title": "🔄 包含转发",
            "type": "boolean",
            "description": "是否包含转发/转帖",
            "default": true
          },
          "mediaOnly": {
            "title": "🖼️ 仅含媒体",
            "type": "boolean",
            "description": "只返回包含图片/视频的帖子",
            "default": false
          },
          "minLikes": {
            "title": "❤️ 最小点赞数",
            "minimum": 0,
            "type": "integer",
            "description": "只返回点赞数大于等于此值的帖子",
            "default": 0
          },
          "minReposts": {
            "title": "🔄 最小转发数",
            "minimum": 0,
            "type": "integer",
            "description": "只返回转发数大于等于此值的帖子",
            "default": 0
          },
          "minReplies": {
            "title": "💬 最小回复数",
            "minimum": 0,
            "type": "integer",
            "description": "只返回回复数大于等于此值的帖子",
            "default": 0
          },
          "calculateEngagement": {
            "title": "📊 计算互动率",
            "type": "boolean",
            "description": "计算每个帖子的互动率（点赞+转发+回复 / 作者关注者数）",
            "default": true
          },
          "analyzeSentiment": {
            "title": "🎭 情感分析",
            "type": "boolean",
            "description": "分析帖子情感倾向（正面/负面/中性）",
            "default": false
          },
          "extractTopics": {
            "title": "🏷️ 提取话题",
            "type": "boolean",
            "description": "自动提取帖子中的话题/主题",
            "default": false
          },
          "threadDepth": {
            "title": "🧵 线程深度",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "帖子线程展开的最大深度",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}