{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper: Posts, Search, Threads & New-Post Alerts",
    "description": "Scrape Bluesky without an account: posts of any account, search far beyond one page, full threads with replies and profiles, back to a start date. Watch mode returns only new posts, with a webhook for alerts. From $0.30 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "iJyIdTsxGI1TK2a6i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-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/alexmorain~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-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/alexmorain~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-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": {
          "handles": {
            "title": "Accounts",
            "type": "array",
            "description": "Bluesky accounts whose posts you want, one per line: <code>nytimes.com</code>, <code>@nytimes.com</code>, <code>https://bsky.app/profile/nytimes.com</code> or a <code>did:plc:...</code> identifier. The actor reads the account's whole feed, newest first, up to <b>Max posts per source</b>. An account that does not exist, was deleted or suspended comes back as a free row with <code>status</code> set to <code>not_found</code>.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (threads)",
            "type": "array",
            "description": "Posts whose conversation you want, one per line: <code>https://bsky.app/profile/nytimes.com/post/3n2lgsxq2v62s</code> or an <code>at://</code> URI. You get the post and its replies, each with a <code>threadDepth</code> (0 = the post, 1 = direct replies, 2 = replies to replies). See <b>Reply depth</b> and <b>Include parent posts</b>.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Post searches",
            "type": "array",
            "description": "Search terms, one per line, as typed in the Bluesky search box: words, <code>\"exact phrases\"</code>, <code>#hashtag</code>. The search goes <b>far beyond one page</b>: Bluesky's own pagination stops after 100 results, this actor keeps walking back in time until your limits or the end of the results. Every entry needs real text (a lone <code>*</code> is refused by Bluesky once a date is involved). Combine with the filters below.",
            "items": {
              "type": "string"
            }
          },
          "profileQueries": {
            "title": "Account searches",
            "type": "array",
            "description": "Search accounts by name or bio, one term per line (<code>journalist</code>, <code>fintech founder</code>). Each account is one <b>profile</b> row. Account searches from Bluesky do not return follower counters; add the handles to <b>Accounts</b> with <b>Add a profile row per account</b> for those.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Max posts per source",
            "minimum": 0,
            "type": "integer",
            "description": "The most recent posts to deliver for each account, thread and search, newest first. <code>0</code> reads everything the source has (an account of 100,000 posts takes a few minutes, and you pay per post). Combine with the date window to bound a run.",
            "default": 100
          },
          "maxProfiles": {
            "title": "Max profiles per account search",
            "minimum": 0,
            "type": "integer",
            "description": "How many accounts to deliver for each entry of <b>Account searches</b>. <code>0</code> reads every result Bluesky gives.",
            "default": 100
          },
          "maxItems": {
            "title": "Max items in the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Total limit on posts plus profiles for the run, shared by all sources. <code>0</code> means no total limit. Reached, the run stops cleanly with what was delivered.",
            "default": 0
          },
          "sinceDate": {
            "title": "Only posts since",
            "type": "string",
            "description": "Keep posts from this date on: <code>2026-11-01</code>, <code>2026-11-01T08:00:00Z</code> or a relative time such as <code>7 days</code>. Reading stops as soon as it reaches older posts, so a recent window on a huge account or a broad search is fast and cheap."
          },
          "untilDate": {
            "title": "Only posts until",
            "type": "string",
            "description": "Keep posts up to this date. The actor jumps straight to that point, it does not read everything newer first. Cannot be combined with the watch mode."
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "<b>Latest first</b> reads backwards in time without a limit. <b>Top</b> asks Bluesky for its most relevant posts: it returns one page of up to 100 posts and cannot go deeper. Not available with the watch mode.",
            "default": "latest"
          },
          "language": {
            "title": "Search language",
            "type": "string",
            "description": "Only posts declared in this language, as a code: <code>en</code>, <code>fr</code>, <code>pt</code>. Applies to the post searches only."
          },
          "domain": {
            "title": "Search: links to a website",
            "type": "string",
            "description": "Only posts that link to this website, for example <code>nytimes.com</code>. Applies to the post searches only."
          },
          "mentions": {
            "title": "Search: mentioning an account",
            "type": "string",
            "description": "Only posts that mention this account, for example <code>nytimes.com</code>. Applies to the post searches only."
          },
          "hashtag": {
            "title": "Search: with a hashtag",
            "type": "string",
            "description": "Only posts that carry this hashtag, with or without the <code>#</code>. Applies to the post searches only."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Keep the replies of the accounts and the searches. Turn off to get only top-level posts. Replies inside the threads you ask for are always kept.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Add the posts an account reposted to its own feed. Each one is a row with <code>repostedBy</code> and <code>repostedAt</code> set. Off by default: reposts are other people's posts.",
            "default": false
          },
          "includeProfiles": {
            "title": "Add a profile row per account",
            "type": "boolean",
            "description": "Adds one <b>profile</b> row for each account of <b>Accounts</b>: bio, followers, follows, posts count, verification, creation date. Billed as a profile.",
            "default": false
          },
          "replyDepth": {
            "title": "Reply depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many levels of replies to read below each post of <b>Post URLs</b>. <code>1</code> = direct replies only, <code>0</code> = the post alone.",
            "default": 6
          },
          "includeParents": {
            "title": "Include parent posts",
            "type": "boolean",
            "description": "For <b>Post URLs</b> that are replies, also deliver the posts above (up to 80), with a negative <code>threadDepth</code>.",
            "default": false
          },
          "monitorMode": {
            "title": "Watch mode",
            "enum": [
              "off",
              "new"
            ],
            "type": "string",
            "description": "With <b>New only</b> the actor remembers what it has already read and delivered for each account and search in a named key-value store of your account, and only delivers posts that never went out before. Put the run on a schedule to follow accounts, hashtags or brands. The first run reads the window you asked for and fixes the starting point of the watch; older history is never pulled in later. A run cut short (post limit, spending limit) leaves no hole: the next run fills it.",
            "default": "off"
          },
          "registryKey": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional name of this watch. Two schedules with different names keep separate memories; without a name, the memory is tied to the filters of the run (search order, language, domain, replies, reposts), so you can add accounts and searches to the lists at any time."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. A JSON summary of the run is sent here by <code>POST</code> when it ends: status, number of posts and profiles, and what each source returned. Works with Slack, Discord, Zapier, Make or n8n URLs."
          },
          "maxConcurrency": {
            "title": "Sources read in parallel",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many accounts, threads or searches are read at the same time. Each source is read page after page; raise it for many sources.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Bluesky's public API normally needs no proxy. Leave off unless a run reports refused requests."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}