{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Posts, Profiles, Followers & Search",
    "description": "Scrape Bluesky posts, profiles, followers/following, full threads, and keyword search into clean flat JSON/CSV. Profiles and feeds need no login; keyword search uses your free app password.",
    "version": "1.0",
    "x-build-id": "BwQkFHiQtGhX4wYeg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ethanteague~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ethanteague-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/ethanteague~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ethanteague-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/ethanteague~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ethanteague-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": {
          "userHandles": {
            "title": "User handles or profile URLs",
            "type": "array",
            "description": "Bluesky users to scrape — handles (<code>bsky.app</code>, <code>@someone.bsky.social</code>), profile URLs (<code>https://bsky.app/profile/...</code>), or DIDs. For each user the actor scrapes the profile and/or their posts, depending on the options below. <b>No login needed.</b>",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerUser": {
            "title": "Max posts per user",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "How many of each user's most recent posts to scrape. Set to 0 to skip posts and get profiles only.",
            "default": 100
          },
          "includeProfiles": {
            "title": "Scrape profile details",
            "type": "boolean",
            "description": "Push a profile item (bio, follower counts, etc.) for every user handle.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts in user feeds",
            "type": "boolean",
            "description": "When on, reposts appearing in a user's feed are included (the item's author is the original poster).",
            "default": false
          },
          "authorPostsFilter": {
            "title": "Which posts from user feeds",
            "enum": [
              "posts_no_replies",
              "posts_with_replies",
              "posts_and_author_threads",
              "posts_with_media"
            ],
            "type": "string",
            "description": "Filter applied to each user's feed.",
            "default": "posts_no_replies"
          },
          "includeFollowers": {
            "title": "Scrape followers",
            "type": "boolean",
            "description": "Collect each user's followers (as profile items with source = followers_of).",
            "default": false
          },
          "includeFollows": {
            "title": "Scrape following",
            "type": "boolean",
            "description": "Collect who each user follows (as profile items with source = follows_of).",
            "default": false
          },
          "maxFollowersPerUser": {
            "title": "Max followers/following per user",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for each list (applies separately to followers and following).",
            "default": 200
          },
          "postThreadUrls": {
            "title": "Post/thread URLs",
            "type": "array",
            "description": "Post URLs (<code>https://bsky.app/profile/handle/post/xyz</code>) or AT-URIs (<code>at://did/app.bsky.feed.post/xyz</code>). The post and its reply tree are scraped.",
            "items": {
              "type": "string"
            }
          },
          "threadDepth": {
            "title": "Thread reply depth",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many levels of nested replies to fetch.",
            "default": 6
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keyword searches, e.g. <code>ai agents</code>. Advanced operators from the Bluesky app work too (e.g. <code>from:handle</code>). Leave empty to skip search.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerQuery": {
            "title": "Max posts per query",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many posts to collect per search query.",
            "default": 100
          },
          "searchSort": {
            "title": "Search sort",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Sort order of search results.",
            "default": "latest"
          },
          "searchSince": {
            "title": "Search since (ISO date)",
            "type": "string",
            "description": "Only posts after this time, e.g. <code>2026-01-01T00:00:00Z</code>. Optional."
          },
          "searchUntil": {
            "title": "Search until (ISO date)",
            "type": "string",
            "description": "Only posts before this time. Optional."
          },
          "searchLanguage": {
            "title": "Search language",
            "type": "string",
            "description": "Two-letter language code filter, e.g. <code>en</code>. Optional."
          },
          "blueskyIdentifier": {
            "title": "Bluesky identifier (for search only)",
            "type": "string",
            "description": "Your Bluesky handle or the email you log in with. Only used to unlock keyword search; never stored."
          },
          "blueskyAppPassword": {
            "title": "Bluesky app password (for search only)",
            "type": "string",
            "description": "An app password from Settings → Privacy and security → App passwords. NOT your main password. Encrypted by Apify; never logged."
          },
          "pdsService": {
            "title": "PDS service URL",
            "type": "string",
            "description": "Only change this if your Bluesky account lives on a self-hosted PDS.",
            "default": "https://bsky.social"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}