{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper",
    "description": "Scrape Bluesky profiles, posts, threads, followers, likes, reposts, quotes, custom feeds, lists, starter packs, trends and full-text search -- 15 modes, no login or API key needed.",
    "version": "0.0",
    "x-build-id": "rzafef8wmgGLjAhWm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-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/fanndev~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-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/fanndev~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-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": "Mode",
            "enum": [
              "profile",
              "posts",
              "followers",
              "follows",
              "lists",
              "starter-packs",
              "post-detail",
              "post-likes",
              "post-reposts",
              "post-quotes",
              "search-posts",
              "search-users",
              "feed",
              "trends",
              "popular-feeds"
            ],
            "type": "string",
            "description": "What to scrape. Each mode reads ONE of the input lists below -- see each field's description for which. ACTOR modes (read \"Bluesky accounts\"): profile, posts, followers, follows, lists, starter-packs. POST modes (read \"Post URLs\"): post-detail, post-likes, post-reposts, post-quotes. SEARCH modes (read \"Search queries\"): search-posts, search-users. FEED mode (reads \"Feed / list URLs\"): feed. DISCOVERY modes (need no input at all): trends, popular-feeds.",
            "default": "posts"
          },
          "actors": {
            "title": "Bluesky accounts",
            "type": "array",
            "description": "Used by the ACTOR modes (profile, posts, followers, follows, lists, starter-packs). Accepts a handle (bsky.app), an @handle, a DID (did:plc:...), or a profile URL (https://bsky.app/profile/bsky.app) -- mixed freely.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Used by the POST modes (post-detail, post-likes, post-reposts, post-quotes). Accepts a bsky.app post URL (https://bsky.app/profile/<handle>/post/<rkey>) or a raw at:// URI.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Used by the SEARCH modes (search-posts, search-users). One dataset page set per query. Bluesky's inline operators work inside the query text too (for example: from:bsky.app \"release notes\").",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Feed / list URLs",
            "type": "array",
            "description": "Used by the \"feed\" mode. Accepts a custom-feed URL (https://bsky.app/profile/<did>/feed/<rkey>), a list URL (https://bsky.app/profile/<did>/lists/<rkey>), or the equivalent at:// URI. Feeds and lists are told apart automatically.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on records collected for EACH input item (each account, post, or query) -- not for the run as a whole. Pagination stops early when the account or result set runs out.",
            "default": 100
          },
          "postFilter": {
            "title": "Post type filter",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "\"posts\" mode only -- which of the account's posts to return. Default (posts_with_replies) returns everything.",
            "default": "posts_with_replies"
          },
          "includePins": {
            "title": "Include pinned post",
            "type": "boolean",
            "description": "\"posts\" mode only -- put the account's pinned post at the top of its feed.",
            "default": false
          },
          "threadDepth": {
            "title": "Reply thread depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "\"post-detail\" mode only -- how many reply levels below the post to walk. 0 returns the post alone; 6 is the bsky.app web default. Replies come back flat with a replyDepth field, so the tree is still reconstructable.",
            "default": 6
          },
          "parentHeight": {
            "title": "Parent thread height",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "\"post-detail\" mode only -- how many ancestor posts above the given post to include. 0 (default) treats the given post as the root.",
            "default": 0
          },
          "sort": {
            "title": "Search sort order",
            "enum": [
              "top",
              "latest"
            ],
            "type": "string",
            "description": "\"search-posts\" mode only -- rank results by engagement (top) or recency (latest).",
            "default": "latest"
          },
          "since": {
            "title": "Search: posted after",
            "type": "string",
            "description": "\"search-posts\" mode only -- only posts created at or after this time. ISO 8601 (2026-08-01T00:00:00Z) or a plain date (2026-08-01)."
          },
          "until": {
            "title": "Search: posted before",
            "type": "string",
            "description": "\"search-posts\" mode only -- only posts created before this time. ISO 8601 (2026-08-29T00:00:00Z) or a plain date (2026-08-29)."
          },
          "lang": {
            "title": "Search: language",
            "type": "string",
            "description": "\"search-posts\" mode only -- restrict to posts tagged with this BCP-47 language code, e.g. id, en, ja."
          },
          "author": {
            "title": "Search: author",
            "type": "string",
            "description": "\"search-posts\" mode only -- restrict to posts written by this handle or DID."
          },
          "mentions": {
            "title": "Search: mentions account",
            "type": "string",
            "description": "\"search-posts\" mode only -- restrict to posts that mention this handle or DID."
          },
          "domain": {
            "title": "Search: links to domain",
            "type": "string",
            "description": "\"search-posts\" mode only -- restrict to posts linking to this domain, e.g. nytimes.com."
          },
          "url": {
            "title": "Search: links to URL",
            "type": "string",
            "description": "\"search-posts\" mode only -- restrict to posts linking to this exact URL."
          },
          "tag": {
            "title": "Search: hashtags",
            "type": "array",
            "description": "\"search-posts\" mode only -- restrict to posts carrying every one of these hashtags. Enter them without the leading # sign.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrent workers",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many input items to process in parallel. Ignored for \"search-posts\", which is forced to 1 because Bluesky throttles that endpoint per IP and parallel workers only drain the same budget faster.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Bluesky's public API has no WAF, so most modes need no proxy at all. \"search-posts\" is the exception: it is rate-limited per IP, and a proxy lets the actor rotate to a fresh IP instead of waiting out the cooldown.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}