{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper: Posts, Profiles, Replies, Followers",
    "description": "Scrape Bluesky posts, profiles, reply threads, followers, following, likers and search results from the public AT Protocol API. No login or account needed. Date and like filters, clean JSON, only delivered results are charged.",
    "version": "1.0",
    "x-build-id": "ImYf4XLCyIh5Rb3qw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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": {
          "profiles": {
            "title": "Profiles (with their posts)",
            "type": "array",
            "description": "Bluesky handles (nytimes.com, alice.bsky.social, @alice), DIDs (did:plc:...) or profile URLs (https://bsky.app/profile/...). Returns one profile row with follower, following and post counts, then the latest posts (see Posts per profile).",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (with replies)",
            "type": "array",
            "description": "Post links like https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l or at:// URIs. Returns the post and its reply thread. Optionally the people who liked or reposted it and the quote posts.",
            "items": {
              "type": "string"
            }
          },
          "searchPosts": {
            "title": "Search posts by keyword",
            "type": "array",
            "description": "Keywords, hashtags (#ai), phrases in quotes, or Bluesky search operators such as from:handle, mentions:handle, domain:example.com, lang:en. Uses Bluesky's public search without logging in. If Bluesky ever requires a login for search, these inputs are skipped with a free explanation row.",
            "items": {
              "type": "string"
            }
          },
          "searchUsers": {
            "title": "Search users by keyword",
            "type": "array",
            "description": "Find accounts whose name, handle or bio matches the keyword.",
            "items": {
              "type": "string"
            }
          },
          "followersOf": {
            "title": "Followers of",
            "type": "array",
            "description": "Handles, DIDs or profile URLs. Lists the accounts that follow each one (newest followers first).",
            "items": {
              "type": "string"
            }
          },
          "followingOf": {
            "title": "Following of",
            "type": "array",
            "description": "Handles, DIDs or profile URLs. Lists the accounts each one follows.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Posts per profile",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Latest posts per profile, newest first. 0 returns only the profile row.",
            "default": 20
          },
          "includeProfileDetails": {
            "title": "Include the profile row",
            "type": "boolean",
            "description": "Add a row with bio, follower, following and post counts, avatar, banner, join date and links from the bio for every profile in Profiles.",
            "default": true
          },
          "feedFilter": {
            "title": "Which posts",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Same tabs as on a Bluesky profile.",
            "default": "posts_and_author_threads"
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Also return posts by other people that the profile reposted (marked isRepost with repostedAt).",
            "default": false
          },
          "includePinned": {
            "title": "Include the pinned post",
            "type": "boolean",
            "description": "Keep the pinned post (marked isPinned). It comes first and is often older than the rest.",
            "default": true
          },
          "maxRepliesPerPost": {
            "title": "Replies per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Replies to return per post URL, top replies first, nested replies included. 0 returns only the post.",
            "default": 100
          },
          "replyDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many levels of replies to replies to follow. 1 = direct replies only.",
            "default": 10
          },
          "includeThreadParents": {
            "title": "Include parent posts",
            "type": "boolean",
            "description": "When the URL points to a reply, also return the posts above it up to the start of the thread (threadDepth below 0).",
            "default": false
          },
          "includeLikers": {
            "title": "Include who liked it",
            "type": "boolean",
            "description": "Accounts that liked each post, with the time of the like.",
            "default": false
          },
          "includeReposters": {
            "title": "Include who reposted it",
            "type": "boolean",
            "description": "Accounts that reposted each post.",
            "default": false
          },
          "includeQuotes": {
            "title": "Include quote posts",
            "type": "boolean",
            "description": "Posts that quote each post.",
            "default": false
          },
          "maxEngagementsPerPost": {
            "title": "Max likers, reposters or quotes per post",
            "minimum": 0,
            "type": "integer",
            "description": "Limit for each of the three lists above. 0 means all.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Posts or users per keyword. 0 means as many as Bluesky returns. Post search returns at most 100 posts per keyword without login; user search usually ends after a few thousand.",
            "default": 100
          },
          "searchSort": {
            "title": "Post search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest is best for monitoring and works with the date filters.",
            "default": "latest"
          },
          "searchLanguage": {
            "title": "Post search language",
            "type": "string",
            "description": "Two letter language code such as en, es, ja. Leave empty for all languages."
          },
          "maxAccountsPerProfile": {
            "title": "Accounts per follower or following list",
            "minimum": 0,
            "type": "integer",
            "description": "Followers or follows to return per profile. 0 means all (large accounts can have millions).",
            "default": 100
          },
          "enrichAccounts": {
            "title": "Full profiles for listed accounts",
            "type": "boolean",
            "description": "Follower lists, likers and user search return basic accounts (handle, name, bio, avatar). Turn this on to also get follower, following and post counts for each one. These rows are charged as full profiles.",
            "default": false
          },
          "postedAfter": {
            "title": "Only posts after",
            "type": "string",
            "description": "Skip posts created before this date or period, for example 2026-01-01 or 7 days. Profile feeds stop paging as soon as posts get older."
          },
          "postedBefore": {
            "title": "Only posts before",
            "type": "string",
            "description": "Skip posts created after this date."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes.",
            "default": 0
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many result rows (posts, profiles and accounts). 0 means no limit. Your maximum cost per run setting is always respected too.",
            "default": 0
          },
          "includeErrorItems": {
            "title": "Include explanation rows",
            "type": "boolean",
            "description": "Add a free (never charged) row for each input that returned nothing, explaining why (not found, deactivated, hidden from logged out visitors, no matches).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Inputs in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many inputs to process at the same time. Requests are rate limited either way.",
            "default": 4
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Bluesky allows about 10 requests per second per IP address. The Actor backs off automatically when Bluesky asks it to slow down.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the Bluesky API is public. Only turn this on if your runs get rate limited.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}