{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Profiles, Posts & Followers",
    "description": "Scrape Bluesky as data. One row per profile, post, reply, follower, follow or like: text, engagement counts, images, links, mentions and quoted posts. Search the account directory, walk a thread, list who liked a post. No API key, no login, no app password.",
    "version": "0.1",
    "x-build-id": "p6JHKcwcgVndLHMbN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insight.solutions~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insight.solutions-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/insight.solutions~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insight.solutions-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/insight.solutions~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insight.solutions-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": {
          "profiles": {
            "title": "Bluesky profiles",
            "type": "array",
            "description": "One entry per account. A handle (`bsky.app`, `@nasa.gov`), a DID (`did:plc:z72i7hdynmk6r22z27h6tvur`), or a profile URL (`https://bsky.app/profile/bsky.app`) — all three work. Each profile returns one `profile` row and, unless you turn posts off, its recent posts. Duplicates are read, and billed, once.",
            "items": {
              "type": "string"
            }
          },
          "includePosts": {
            "title": "Include each profile's posts",
            "type": "boolean",
            "description": "Walk each profile's feed and return one `post` row per post. Turn it off to get profile rows only — one request per account, which is the cheapest way to enrich a list of handles.",
            "default": true
          },
          "maxPostsPerProfile": {
            "title": "Posts per profile",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many posts to return for each profile. Bluesky serves up to 100 per page, so the walk stops on the page that reaches your number. Set 0 for the whole feed, which on a busy account means thousands of rows and a run bounded only by your time and charge budgets.",
            "default": 100
          },
          "feedFilter": {
            "title": "Which posts",
            "enum": [
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_and_author_threads"
            ],
            "type": "string",
            "description": "Which of Bluesky's own four author-feed filters to walk. `posts_no_replies` is the account's own timeline as a visitor sees it. `posts_with_replies` adds every reply they wrote to somebody else. `posts_with_media` keeps only posts with an image or a video. `posts_and_author_threads` keeps their own threads whole. Reposts appear in all four and are marked `isRepost`.",
            "default": "posts_no_replies"
          },
          "includeFollowers": {
            "title": "Include followers",
            "type": "boolean",
            "description": "Return one `follower` row per account following each profile, up to the cap below. Followers are billed at the same rate as posts and a popular account has millions, so this is off by default and always bounded.",
            "default": false
          },
          "includeFollows": {
            "title": "Include follows",
            "type": "boolean",
            "description": "Return one `follow` row per account each profile follows, up to the cap below. Usually a much shorter list than the followers, and often the more interesting one.",
            "default": false
          },
          "maxFollowsPerProfile": {
            "title": "Followers / follows per profile",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The cap on `follower` rows and, separately, on `follow` rows for a single profile. Ignored when both switches above are off. Set 0 for the whole list — on an account with a million followers that is 10,000 requests, so bound it with `maxRunSecs` and `ACTOR_MAX_TOTAL_CHARGE_USD` before you try.",
            "default": 100
          },
          "profileSearchQueries": {
            "title": "Account searches",
            "type": "array",
            "description": "Search Bluesky's account directory and return one `profile` row per match — handle, display name, bio, avatar. Matches handles, display names and bios. Note this searches **accounts, not posts**: keyword post search is not available to any non-browser client (see the README).",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Results per search",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "How many accounts to return for each search query. Bluesky ranks them, so the first page is the useful one; deep paging returns increasingly loose matches. Set 0 for everything the directory will hand over.",
            "default": 50
          },
          "postUrls": {
            "title": "Individual posts",
            "type": "array",
            "description": "One entry per post: a `https://bsky.app/profile/<handle>/post/<id>` URL or an `at://` URI. Each returns one `post` row for the post itself plus a `reply` row per answer in its thread, six generations deep. Optionally the accounts that liked or reposted it.",
            "items": {
              "type": "string"
            }
          },
          "maxRepliesPerPost": {
            "title": "Replies per post",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "The cap on `reply` rows for a single post. Bluesky returns the whole thread in one request, so lowering this saves rows and money but not time. Set 0 for every reply the thread holds down to the sixth generation.",
            "default": 100
          },
          "includeLikes": {
            "title": "Include who liked each post",
            "type": "boolean",
            "description": "Return one `like` row per account that liked each post in `postUrls`, with the time of the like. A high-signal audience list — the people who engaged with one specific thing.",
            "default": false
          },
          "includeReposts": {
            "title": "Include who reposted each post",
            "type": "boolean",
            "description": "Return one `repost` row per account that reposted each post in `postUrls`. Bluesky does not publish when a repost happened through this endpoint, so those rows carry the account's creation date instead.",
            "default": false
          },
          "maxEngagementPerPost": {
            "title": "Likes / reposts per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The cap on `like` rows and, separately, on `repost` rows for a single post. Ignored when both switches above are off. Set 0 for everything, which on a post with 8,000 likes is 80 requests.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Entries in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many profiles, searches and posts are walked at once. Each parallel worker keeps its own proxy session, so an entry that gets rate-limited burns only its own exit IP. Pages *within* one entry cannot be parallelised — each page hands over the cursor for the next — so this is the only lever on speed.",
            "default": 4
          },
          "maxRunSecs": {
            "title": "Maximum run time (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Wall-clock budget for the whole run. When it is reached the Actor stops walking, keeps and bills for every row it already wrote, and files a free diagnostic row for each entry it never reached. An entry stopped part-way keeps its rows and is not marked as failed.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Bluesky's public API answers datacenter addresses as readily as residential ones, so the default is Apify's datacenter proxy — far cheaper, and its cost is already inside the per-row price. Sessions rotate automatically when an exit IP is refused. Switch to residential only if you see `blocked` rows, which would mean the rate limits have tightened.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}