{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky PRO: Scraper & Analytics",
    "description": "The ONLY Bluesky tool with advanced analytics. Get profiles + posts + followers + AI insights in ONE platform. Features viral detection, engagement scoring & content optimization.",
    "version": "0.0",
    "x-build-id": "f45yotuL9XPXk1m9q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~bluesky-pro-scraper-analytics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-bluesky-pro-scraper-analytics",
        "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/brilliant_gum~bluesky-pro-scraper-analytics/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-bluesky-pro-scraper-analytics",
        "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/brilliant_gum~bluesky-pro-scraper-analytics/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-bluesky-pro-scraper-analytics",
        "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": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "profiles",
              "search",
              "followers"
            ],
            "type": "string",
            "description": "What type of data to scrape",
            "default": "profiles"
          },
          "handles": {
            "title": "Bluesky Handles",
            "type": "array",
            "description": "Bluesky handles to analyze (e.g., @user.bsky.social or 'user')",
            "items": {
              "type": "string"
            }
          },
          "postsPerProfile": {
            "title": "Posts per Profile",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum posts to analyze from each profile",
            "default": 100
          },
          "getFollowers": {
            "title": "Analyze Followers",
            "type": "boolean",
            "description": "Include follower analysis (influencer tiers, engagement potential)",
            "default": false
          },
          "getFollowing": {
            "title": "Analyze Following",
            "type": "boolean",
            "description": "Include following analysis (network insights)",
            "default": false
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword, hashtag, or phrase to search for"
          },
          "searchType": {
            "title": "Search Type",
            "enum": [
              "posts",
              "users"
            ],
            "type": "string",
            "description": "What to search for",
            "default": "posts"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum total results to collect",
            "default": 1000
          },
          "includeReplies": {
            "title": "Include Replies",
            "type": "boolean",
            "description": "Include reply posts in results",
            "default": false
          },
          "includeReposts": {
            "title": "Include Reposts",
            "type": "boolean",
            "description": "Include reposted content",
            "default": false
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Only include posts after this date (ISO format: 2024-01-01)"
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "Only include posts before this date (ISO format)"
          },
          "language": {
            "title": "Language Filter",
            "enum": [
              "all",
              "en",
              "es",
              "pt",
              "fr",
              "de"
            ],
            "type": "string",
            "description": "Filter content by language (auto-detected)",
            "default": "all"
          },
          "contentType": {
            "title": "Content Type Filter",
            "enum": [
              "all",
              "text",
              "image",
              "video",
              "link"
            ],
            "type": "string",
            "description": "Filter by content type",
            "default": "all"
          },
          "minEngagement": {
            "title": "Minimum Engagements",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Minimum total engagements (likes + reposts + replies + quotes)",
            "default": 0
          },
          "maxEngagement": {
            "title": "Maximum Engagements",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum total engagements (optional limit)"
          },
          "engagementRate": {
            "title": "Min Engagement Rate %",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum engagement rate percentage (for profiles with known follower counts)"
          },
          "enableAnalytics": {
            "title": "Enable Advanced Analytics",
            "type": "boolean",
            "description": "Calculate engagement rates, virality scores, and content insights",
            "default": true
          },
          "detectViral": {
            "title": "Viral Content Detection",
            "type": "boolean",
            "description": "Identify viral posts (10,000+ total engagements)",
            "default": true
          },
          "analyzeHashtags": {
            "title": "Hashtag Trend Analysis",
            "type": "boolean",
            "description": "Analyze trending hashtags and topic popularity",
            "default": true
          },
          "contentAnalysis": {
            "title": "Content Type Analysis",
            "type": "boolean",
            "description": "Analyze content types (text/image/video/link) performance",
            "default": true
          },
          "sentimentAnalysis": {
            "title": "Sentiment Analysis",
            "type": "boolean",
            "description": "Basic sentiment scoring (positive/negative/neutral)",
            "default": false
          },
          "competitorMode": {
            "title": "Competitor Analysis Mode",
            "type": "boolean",
            "description": "Multi-profile comparison and benchmarking",
            "default": false
          },
          "calculateGrowth": {
            "title": "Growth Analysis",
            "type": "boolean",
            "description": "Profile growth analysis (requires historical data)",
            "default": false
          },
          "exportFormat": {
            "title": "Export Format",
            "enum": [
              "basic",
              "enhanced",
              "analytics"
            ],
            "type": "string",
            "description": "Data export depth and detail level",
            "default": "enhanced"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}