{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper",
    "description": "Scrape Bluesky without a login: posts of any account, keyword and hashtag search, profiles with followers and bio contacts, followers and following, comments under a post, likers, reposters, quotes, custom feeds and starter packs. Export JSON, CSV or Excel, or call it by API.",
    "version": "0.1",
    "x-build-id": "DDBKGqhF0eVzC0MNk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blueskyscraper~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blueskyscraper-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/blueskyscraper~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blueskyscraper-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/blueskyscraper~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blueskyscraper-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": {
          "mode": {
            "title": "🧭 What to get",
            "enum": [
              "posts",
              "search",
              "profile",
              "followers",
              "following",
              "thread",
              "quotes",
              "likers",
              "reposters",
              "accounts",
              "feed",
              "list"
            ],
            "type": "string",
            "description": "<b>Posts</b> — an account's own posts. <b>Search</b> — public posts for a keyword, hashtag or phrase. <b>Profiles</b> — followers count, bio, links, emails. <b>Followers / Following</b> — an account's audience. <b>Comments</b> — a post and every reply under it. <b>Quotes / Likers / Reposters</b> — who reacted to a post. <b>Account search</b> — people and brands by keyword. <b>Custom feed</b> and <b>List or starter pack</b> — paste the URL into <i>Bluesky URLs</i>.",
            "default": "posts"
          },
          "handles": {
            "title": "👤 Accounts",
            "type": "array",
            "description": "For Posts, Profiles, Followers and Following. Handle, @handle, profile URL or DID: <code>bsky.app</code>, <code>@nytimes.com</code>, <code>https://bsky.app/profile/jay.bsky.team</code>, <code>alice</code> (read as alice.bsky.social).",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords or hashtags",
            "type": "array",
            "description": "For Search and Account search. <code>coffee</code>, <code>#bookstodon</code>, <code>\"climate policy\"</code> (exact phrase). Bluesky search operators work too: <code>from:nytimes.com</code>, <code>lang:de</code>, <code>domain:github.com</code>.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "🔗 Post URLs",
            "type": "array",
            "description": "For Comments, Quotes, Likers and Reposters: <code>https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l</code>. An <code>at://</code> URI works too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Bluesky URLs",
            "type": "array",
            "description": "Any bsky.app link, routed automatically: profiles, posts, <b>custom feeds</b> (<code>…/profile/&lt;handle&gt;/feed/&lt;name&gt;</code>), <b>lists</b> (<code>…/lists/&lt;id&gt;</code>), <b>starter packs</b> (<code>bsky.app/starter-pack/…</code>), search and hashtag pages.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerInput": {
            "title": "💯 Results per account, keyword or URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for each input, not for the whole run. Search pages back in time for Latest; Top returns up to 100 posts per keyword (all Bluesky shows a visitor who is not logged in).",
            "default": 50
          },
          "sort": {
            "title": "↕️ Search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Search: <b>Latest</b> goes back as far as you ask; <b>Top</b> is Bluesky's ranking, first 100 posts per keyword.",
            "default": "latest"
          },
          "postedAfter": {
            "title": "📅 Only posts after",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. Older posts are dropped; Posts and Search stop paging once they reach them."
          },
          "postedBefore": {
            "title": "📅 Only posts before",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. With <i>Only posts after</i> this gives a date window."
          },
          "languages": {
            "title": "🌐 Languages",
            "type": "array",
            "description": "Keep only posts written in these languages, ISO codes: <code>en</code>, <code>de</code>, <code>ja</code>, <code>pt</code>. Bluesky apps tag the language of almost every post. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "#️⃣ Must have hashtags",
            "type": "array",
            "description": "Search: only posts carrying all of these hashtags (without #).",
            "items": {
              "type": "string"
            }
          },
          "fromAuthor": {
            "title": "👤 Only posts by",
            "type": "string",
            "description": "Search: limit results to one account's posts."
          },
          "mentions": {
            "title": "📣 Only posts mentioning",
            "type": "string",
            "description": "Search: posts that mention this account — brand monitoring in one field."
          },
          "domain": {
            "title": "🌍 Only posts linking to domain",
            "type": "string",
            "description": "Search: posts that link to a website, e.g. <code>nytimes.com</code> — who shares your content."
          },
          "linkUrl": {
            "title": "🔗 Only posts linking to this URL",
            "type": "string",
            "description": "Search: posts sharing one exact page."
          },
          "strictKeywordMatch": {
            "title": "🎯 Only posts that contain the keyword",
            "type": "boolean",
            "description": "Search: Bluesky also returns posts that match a keyword by stem or by a link preview. On keeps only posts whose text, hashtags or link title contain it. Every row carries <code>containsKeyword</code> either way.",
            "default": false
          },
          "filterKeywords": {
            "title": "🧹 Keep only posts containing",
            "type": "array",
            "description": "Any mode: a post is kept when its text, hashtags or link title contain any of these words. Empty = keep everything.",
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "❤️ Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer likes.",
            "default": 0
          },
          "minReposts": {
            "title": "🔁 Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer reposts.",
            "default": 0
          },
          "minReplies": {
            "title": "💬 Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer replies.",
            "default": 0
          },
          "authorFeedFilter": {
            "title": "🗂️ Which posts of an account",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Posts mode: the same tabs a profile shows.",
            "default": "posts_and_author_threads"
          },
          "includeReposts": {
            "title": "🔁 Include reposts",
            "type": "boolean",
            "description": "Posts mode: keep posts the account reposted (marked <code>isRepost</code>, with <code>repostedAt</code>).",
            "default": true
          },
          "includeProfile": {
            "title": "👤 Add the account's profile row ($0.002)",
            "type": "boolean",
            "description": "Posts mode: also save one profile row per account — followers, bio, links, emails.",
            "default": false
          },
          "includeLatestPost": {
            "title": "🕒 Latest post on profiles",
            "type": "boolean",
            "description": "Profiles mode: fill <code>latestPostAt</code>, <code>latestPostUrl</code> and <code>latestPostText</code> — shows at a glance whether the account is active. One extra request per profile, no extra charge.",
            "default": true
          },
          "includeProfileDetails": {
            "title": "📇 Full profiles for followers and likers ($0.002 instead of $0.0005)",
            "type": "boolean",
            "description": "Followers, Following, Likers, Reposters, Account search, Lists: every person already comes with followers, following and posts counts. On opens the full profile row instead — phones, banner, pinned post, lists and feeds counts, latest post fields — billed at the profile price.",
            "default": false
          },
          "includeRootPost": {
            "title": "📌 Include the original post",
            "type": "boolean",
            "description": "Comments mode: the first row is the post itself, then its replies.",
            "default": true
          },
          "replySort": {
            "title": "↕️ Reply order",
            "enum": [
              "likes",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Comments mode: order of replies under each post. Every reply keeps <code>threadDepth</code> and <code>parentUri</code>, so the tree can always be rebuilt.",
            "default": "likes"
          },
          "maxItems": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows in the whole run — a hard ceiling on cost.",
            "default": 10000
          },
          "monitoringStoreName": {
            "title": "🔔 Monitoring mode — store name",
            "type": "string",
            "description": "Give the run a name (e.g. <code>brand-watch</code>) and every later run with the same name returns <b>only posts it has not delivered before</b> — schedule it hourly and get a clean feed of new posts, nothing billed twice. Empty = normal run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}