{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper - Posts, Search & Replies, No Login",
    "description": "Bluesky scraper and API alternative, no login or app password: any account's posts, keyword and #hashtag search past the 100-post limit, reply threads, and account search with followers and bio e-mails. Only-new monitoring. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "hAftNC2NoaS7QzkUV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alom~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alom-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/alom~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alom-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/alom~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alom-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 scrape",
            "enum": [
              "auto",
              "posts",
              "profile",
              "user_replies",
              "post",
              "search",
              "accounts"
            ],
            "type": "string",
            "description": "Keep <b>Everything I fill in below</b> to scrape whatever you enter: handles give the profile and its posts, post URLs give the post and its replies, keywords give a post search.",
            "default": "auto"
          },
          "usernames": {
            "title": "Handles or profile URLs",
            "type": "array",
            "description": "e.g. <code>bsky.app</code>, <code>@nytimes.com</code>, <code>https://bsky.app/profile/jay.bsky.team</code> or a DID (<code>did:plc:…</code>). A name without a dot means <code>name.bsky.social</code>.",
            "items": {
              "type": "string"
            }
          },
          "includeProfile": {
            "title": "Add a profile row (followers, bio, e-mails)",
            "type": "boolean",
            "description": "In the profile modes, also return one <code>type: profile</code> row per account.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Also return the posts the account reposted (<code>isRepost: true</code>, with <code>repostedAt</code>).",
            "default": false
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "e.g. <code>https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l</code> (or an <code>at://</code> URI). Returns the post and, optionally, its replies.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Return the replies to each post URL as <code>type: reply</code> rows, with <code>depth</code> and <code>parentPostId</code>.",
            "default": true
          },
          "includeNestedReplies": {
            "title": "Include replies to replies",
            "type": "boolean",
            "description": "Off = direct replies only.",
            "default": true
          },
          "repliesSort": {
            "title": "Replies order",
            "enum": [
              "top",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of the replies under each post (and under each reply).",
            "default": "top"
          },
          "maxReplies": {
            "title": "Max replies per post",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "On very big threads Bluesky shows only part of the replies (measured: 756 of 8,709 on its most-replied post).",
            "default": 50
          },
          "searchQueries": {
            "title": "Search keywords or #hashtags",
            "type": "array",
            "description": "Keywords, <code>#hashtags</code>, or bsky.app search / hashtag URLs. Bluesky's search syntax works too: <code>\"exact phrase\"</code>, <code>from:nytimes.com</code>, <code>domain:github.com</code>.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "top",
              "latest"
            ],
            "type": "string",
            "description": "<b>Latest</b> pages back in time and is what a monitor wants.",
            "default": "top"
          },
          "emailOnly": {
            "title": "Accounts search: only accounts with an e-mail in their bio",
            "type": "boolean",
            "description": "For lead lists: accounts without an e-mail address in the bio are skipped (and not charged).",
            "default": false
          },
          "maxPosts": {
            "title": "Max results per profile or keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit per handle, per keyword and (accounts mode) accounts per keyword (max 1,000).",
            "default": 30
          },
          "postedAfter": {
            "title": "Only posts published after",
            "type": "string",
            "description": "Date (UTC), ISO timestamp or relative like <code>7 days</code> or <code>12 hours</code>. Profile paging stops once older posts are reached."
          },
          "postedBefore": {
            "title": "Only posts published before",
            "type": "string",
            "description": "Date (UTC) or ISO timestamp (exclusive)."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes. Leave empty for no limit."
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many replies. Leave empty for no limit."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Keep only posts in these languages, as two-letter codes (<code>en</code>, <code>es</code>, <code>ja</code>…), as set by the author. Posts without a language are kept.",
            "items": {
              "type": "string"
            }
          },
          "onlyNewSinceLastRun": {
            "title": "Only new posts since my last run (monitoring)",
            "type": "boolean",
            "description": "Skip posts, replies and accounts an earlier run with the same monitor name already returned (you are not charged for them). Pair with a Schedule.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keep separate memories for different monitors (e.g. <code>brand-mentions</code>). Defaults to <code>default</code>."
          },
          "includeAuthorDetails": {
            "title": "Add author details (paid add-on)",
            "type": "boolean",
            "description": "Add <code>authorDetails</code> to every post: the author's bio, followers, following, post count, verified badge, own domain, account age and any e-mail, phone or link written in the bio (also fills <code>authorFollowerCount</code> and <code>engagementRate</code>). Charged once per author per run; the posts of an account you scrape by name get it free.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Profiles / posts / keywords processed in parallel.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: Bluesky's API is open, so requests go direct (fastest). If Bluesky ever throttles the server, the run continues through Apify Proxy by itself (logged).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}