{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Posts, Profiles, Followers, Threads, Trends",
    "description": "Scrape Bluesky (bsky.app) posts, profiles, followers, following, replies, quotes, likers, custom feeds, lists, starter packs and trending topics. Bluesky API scraper, no login needed.",
    "version": "0.1",
    "x-build-id": "IW96lAiYUfuAfkng2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/powernaner~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-powernaner-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/powernaner~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-powernaner-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/powernaner~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-powernaner-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",
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Each keyword or phrase is a separate search. Supports Bluesky search syntax, e.g. \"climate policy\" or from:nytimes.com.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Posts tagged with each hashtag. With or without the #, e.g. art or #art.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Sort search results by",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest = newest first. Top = most popular first (Bluesky's own ranking).",
            "default": "latest"
          },
          "searchLanguage": {
            "title": "Language",
            "type": "string",
            "description": "Only posts declared in this language. Two-letter ISO code, e.g. en, pt, es, ja. Leave empty for all languages."
          },
          "searchAuthor": {
            "title": "Only posts by this author",
            "type": "string",
            "description": "Restrict the search to one account: handle (nytimes.com) or DID."
          },
          "searchDomain": {
            "title": "Only posts linking to this domain",
            "type": "string",
            "description": "Posts that contain a link to this website, e.g. nytimes.com. Useful for brand and media monitoring."
          },
          "since": {
            "title": "From date",
            "type": "string",
            "description": "Only posts created on or after this date (UTC). Applies to search, profile posts, replies, quotes, feeds and list posts."
          },
          "until": {
            "title": "To date",
            "type": "string",
            "description": "Only posts created before this date (UTC)."
          },
          "blueskyHandle": {
            "title": "Your Bluesky handle",
            "type": "string",
            "description": "The account the app password belongs to, e.g. yourname.bsky.social."
          },
          "blueskyAppPassword": {
            "title": "Bluesky app password",
            "type": "string",
            "description": "Create one in the Bluesky app: Settings → Privacy and security → App passwords. Format xxxx-xxxx-xxxx-xxxx. Stored encrypted by Apify, used only to log in for search, never written to the output. You can revoke it at any time. Never enter your main password."
          },
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "Handles (bsky.app), @handles, profile URLs (https://bsky.app/profile/bsky.app) or DIDs.",
            "items": {
              "type": "string"
            }
          },
          "profileData": {
            "title": "What to collect from each profile",
            "type": "array",
            "description": "Profile = bio and counts. Posts = the profile's feed. Followers/Following = account lists. Lists, starter packs and feeds created by the profile.",
            "items": {
              "type": "string",
              "enum": [
                "profile",
                "posts",
                "followers",
                "follows",
                "lists",
                "starterPacks",
                "feeds"
              ],
              "enumTitles": [
                "Profile details",
                "Posts",
                "Followers",
                "Following",
                "Lists created",
                "Starter packs created",
                "Custom feeds created"
              ]
            },
            "default": [
              "profile",
              "posts"
            ]
          },
          "authorFeedFilter": {
            "title": "Which posts from each profile",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Bluesky's own profile tabs. Reposts are included and flagged with isRepost.",
            "default": "posts_and_author_threads"
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Links like https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l (or at:// URIs).",
            "items": {
              "type": "string"
            }
          },
          "postData": {
            "title": "What to collect from each post",
            "type": "array",
            "description": "The post itself, its replies (full thread), quote posts, who liked it (with like date) and who reposted it.",
            "items": {
              "type": "string",
              "enum": [
                "post",
                "replies",
                "quotes",
                "likers",
                "reposters"
              ],
              "enumTitles": [
                "Post",
                "Replies (thread)",
                "Quote posts",
                "Likers",
                "Reposters"
              ]
            },
            "default": [
              "post",
              "replies"
            ]
          },
          "threadDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many levels of replies-to-replies to follow in a thread. 1 = direct replies only.",
            "default": 6
          },
          "feedUrls": {
            "title": "Custom feed URLs",
            "type": "array",
            "description": "Links like https://bsky.app/profile/bsky.app/feed/whats-hot. Returns the feed details and its posts.",
            "items": {
              "type": "string"
            }
          },
          "listUrls": {
            "title": "List URLs",
            "type": "array",
            "description": "Links like https://bsky.app/profile/<handle>/lists/<id>.",
            "items": {
              "type": "string"
            }
          },
          "listData": {
            "title": "What to collect from each list",
            "type": "array",
            "description": "List details, its members, and/or the posts from its members.",
            "items": {
              "type": "string",
              "enum": [
                "list",
                "members",
                "posts"
              ],
              "enumTitles": [
                "List details",
                "Members",
                "Posts from members"
              ]
            },
            "default": [
              "list",
              "members"
            ]
          },
          "starterPackUrls": {
            "title": "Starter pack URLs",
            "type": "array",
            "description": "Links like https://bsky.app/starter-pack/<handle>/<id>. Returns the pack details and its members.",
            "items": {
              "type": "string"
            }
          },
          "includeTrends": {
            "title": "Include trending topics",
            "type": "boolean",
            "description": "Bluesky's current trending topics, with category, post count and start time (up to 25).",
            "default": false
          },
          "maxItemsPerSource": {
            "title": "Max results per source",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for each source: each search query, each profile's posts, each profile's followers, each post's replies, and so on.",
            "default": 100
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap for the whole run. The run stops cleanly when it is reached.",
            "default": 1000
          },
          "enrichProfiles": {
            "title": "Add follower counts to account lists",
            "type": "boolean",
            "description": "Followers, likers, reposters and list members come without follower/post counts from Bluesky. Turn on to fetch them (one extra request per 25 accounts; enriched rows are billed as profiles).",
            "default": false
          },
          "includeAnalytics": {
            "title": "Add engagement analytics to posts",
            "type": "boolean",
            "description": "Adds analytics.engagementTotal and analytics.engagementRate (engagement ÷ author followers). Raw counts are always included.",
            "default": false
          },
          "includeRawRecord": {
            "title": "Include raw API object",
            "type": "boolean",
            "description": "Attaches the original Bluesky API object under `raw`, for full fidelity.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel sources",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many sources run in parallel. Requests to each Bluesky server are spaced regardless.",
            "default": 3
          },
          "healthCheck": {
            "title": "Health check mode (canary)",
            "type": "boolean",
            "description": "For the scheduled daily health check. Ignores every other field, checks a fixed list of stable Bluesky accounts, posts, feeds and lists, writes nothing to the dataset (no charge), and FAILS the run if a whole source stops responding. The status message names the broken source.",
            "default": false
          },
          "healthCheckSimulateFailure": {
            "title": "Simulate a canary failure (test only)",
            "type": "boolean",
            "description": "Test only: with health check mode, swaps the test profiles for nonexistent ones so the profile sources really fail. Used to prove the failure alert works.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}