{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper – Posts, Profiles, Followers & Search API",
    "description": "Scrape Bluesky via the official AT Protocol API: user posts (date range, replies/reposts), profiles, followers/following, threads & replies, likers, quotes, keyword search and custom feeds. Likes, reposts, images, links, hashtags. No login needed. $0.80 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "xcd0WwxqQvWazvlja"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-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/gazidev~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-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/gazidev~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-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": [
              "authorPosts",
              "profiles",
              "followers",
              "following",
              "postThreads",
              "postQuotes",
              "postLikers",
              "postReposters",
              "searchPosts",
              "searchUsers",
              "customFeed"
            ],
            "type": "string",
            "description": "Choose the data you want. Each mode reads one input list: <b>handles</b> (author posts, profiles, followers, following), <b>post URLs</b> (threads, quotes, likers, reposters), <b>search queries</b> (post / user search) or <b>feed URLs</b> (custom feeds and lists).",
            "default": "authorPosts"
          },
          "handles": {
            "title": "Bluesky handles / profile URLs",
            "type": "array",
            "description": "Used by the author posts, profiles, followers and following modes. Accepts <code>jay.bsky.team</code>, <code>@bsky.app</code>, a DID (<code>did:plc:…</code>) or a profile URL (<code>https://bsky.app/profile/bsky.app</code>). A bare name like <code>alice</code> is treated as <code>alice.bsky.social</code>.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Used by the thread, quotes, likers and reposters modes. Accepts <code>https://bsky.app/profile/&lt;handle&gt;/post/&lt;id&gt;</code> or an <code>at://</code> URI.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Used by the search modes. Post search supports Bluesky's search syntax, e.g. <code>#atproto</code>, <code>\"exact phrase\"</code>, <code>from:bsky.app</code>, <code>domain:nytimes.com</code>, <code>lang:de</code>. <b>Note:</b> without login, Bluesky returns only the first page (up to ~100 posts) per query; add an App Password below for deeper results.",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Custom feed / list URLs",
            "type": "array",
            "description": "Used by the custom feed mode. Feed URL (<code>https://bsky.app/profile/bsky.app/feed/whats-hot</code>), list URL (<code>https://bsky.app/profile/&lt;handle&gt;/lists/&lt;id&gt;</code>) or <code>at://</code> URI. Personalized feeds (e.g. \"Following\", \"Popular with friends\") need a login.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerHandle": {
            "title": "Max posts per user",
            "minimum": 0,
            "type": "integer",
            "description": "Author posts mode: newest posts first. 0 = no limit (all posts within the date range).",
            "default": 50
          },
          "maxResultsPerInput": {
            "title": "Max results per input (other modes)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum items per handle / post / query / feed in every other mode (followers, likers, thread posts, search results, feed posts…). 0 = no limit.",
            "default": 100
          },
          "dateFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Only posts on/after this date (author posts, search, feeds). <code>YYYY-MM-DD</code> or relative, e.g. <code>7 days</code>, <code>3 months</code>. For reposts, the repost time is used."
          },
          "dateTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Only posts on/before this date (<code>YYYY-MM-DD</code>, inclusive)."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Author posts mode: also return the user's replies to other posts.",
            "default": false
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Author posts / feed modes: also return posts the user reposted (marked <code>isRepost</code> with <code>repostedByHandle</code>).",
            "default": false
          },
          "onlyMedia": {
            "title": "Only posts with media",
            "type": "boolean",
            "description": "Author posts mode: only posts with images or video.",
            "default": false
          },
          "includeProfile": {
            "title": "Also save the user's profile",
            "type": "boolean",
            "description": "Author posts mode: also save one profile record (followers, following, post counts) per user. Charged as a profile.",
            "default": false
          },
          "threadDepth": {
            "title": "Thread reply depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Thread mode: how many levels of nested replies to fetch.",
            "default": 6
          },
          "includeThreadParents": {
            "title": "Include parent posts in threads",
            "type": "boolean",
            "description": "Thread mode: if the URL points to a reply, also return the posts above it (negative <code>threadDepth</code>).",
            "default": true
          },
          "searchSort": {
            "title": "Search sort",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Post search order.",
            "default": "latest"
          },
          "searchLang": {
            "title": "Search language",
            "type": "string",
            "description": "Post search: only posts in this language (ISO code, e.g. <code>en</code>, <code>ja</code>, <code>pt</code>)."
          },
          "respectOptOut": {
            "title": "Skip accounts that opted out of logged-out visibility",
            "type": "boolean",
            "description": "Bluesky users can ask apps not to show their content to logged-out people (label <code>!no-unauthenticated</code>). Keeping this on respects that choice and is recommended.",
            "default": true
          },
          "blueskyHandle": {
            "title": "Your Bluesky handle",
            "type": "string",
            "description": "Optional. Only needed for deep post search (more than the first page) and personalized feeds. Everything else works without login."
          },
          "blueskyAppPassword": {
            "title": "Bluesky App Password",
            "type": "string",
            "description": "App Password in the form <code>xxxx-xxxx-xxxx-xxxx</code>. You can revoke it at any time in Bluesky settings."
          },
          "pdsHost": {
            "title": "Login server (PDS)",
            "type": "string",
            "description": "Leave as is for Bluesky-hosted accounts. Self-hosted PDS users can enter their server URL.",
            "default": "https://bsky.social"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}