{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper – Posts, Profiles, Replies & Followers",
    "description": "Scrape Bluesky via the official public API: keyword search, user posts, replies, profiles, followers and following, with likes, reposts, links and bio emails. Date, language and likes filters (filtered posts free), only-new monitoring. No login. $0.50 per 1,000 posts.",
    "version": "0.0",
    "x-build-id": "8KbWEHvkFk39jlzyu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/chris_elder~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-chris_elder-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/chris_elder~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-chris_elder-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/chris_elder~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-chris_elder-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": {
          "searchQueries": {
            "title": "Search posts by keyword",
            "type": "array",
            "description": "Bluesky post search, one query per line. Supports Bluesky search syntax: \"exact phrase\", from:handle, #hashtag, -exclude. Each query returns up to \"Max posts per search query\".",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Search sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest returns newest posts first; Top returns the most engaged posts Bluesky finds for the query.",
            "default": "latest"
          },
          "maxPostsPerQuery": {
            "title": "Max posts per search query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops each search after this many saved posts. Filtered posts do not count and are free.",
            "default": 100
          },
          "handles": {
            "title": "User handles or profile URLs (profile + their posts)",
            "type": "array",
            "description": "One per line: bsky.app, @nasa.gov, alice (becomes alice.bsky.social), did:plc:..., or https://bsky.app/profile/alice.bsky.social. Returns a profile row and the newest posts of each account.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerHandle": {
            "title": "Max posts per handle",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest first. Set 0 to get only profile rows.",
            "default": 100
          },
          "authorFeedFilter": {
            "title": "Which posts from each handle",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Bluesky's own author-feed filter.",
            "default": "posts_with_replies"
          },
          "includeProfiles": {
            "title": "Include profile row for each handle",
            "type": "boolean",
            "description": "One row per handle with bio, followers, following, posts count, created date, plus emails and links found in the bio.",
            "default": true
          },
          "postUrls": {
            "title": "Post URLs (post + replies)",
            "type": "array",
            "description": "One per line: https://bsky.app/profile/<handle>/post/<id> or at:// URIs. Returns the post and its reply thread (up to 10 levels deep).",
            "items": {
              "type": "string"
            }
          },
          "maxRepliesPerPost": {
            "title": "Max replies per post",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Replies returned per post URL (Bluesky returns up to a few hundred per thread).",
            "default": 100
          },
          "followersOf": {
            "title": "Get followers of these handles",
            "type": "array",
            "description": "One handle or profile URL per line. Each follower is one account row (charged as Account).",
            "items": {
              "type": "string"
            }
          },
          "followingOf": {
            "title": "Get accounts these handles follow",
            "type": "array",
            "description": "One handle or profile URL per line. Each followed account is one account row.",
            "items": {
              "type": "string"
            }
          },
          "userSearchQueries": {
            "title": "Search users by keyword",
            "type": "array",
            "description": "Find accounts whose name, handle or bio matches, e.g. \"data journalist\" or \"shopify\". Each match is one account row with bio emails and links.",
            "items": {
              "type": "string"
            }
          },
          "maxAccountsPerList": {
            "title": "Max accounts per list or user search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Caps each followers list, following list and user search.",
            "default": 500
          },
          "dateFrom": {
            "title": "Posts newer than",
            "type": "string",
            "description": "Optional. YYYY-MM-DD, an ISO date-time, or relative like \"7 days\" / \"24 hours\". Search uses it server-side; author feeds stop paging when older posts are reached."
          },
          "dateTo": {
            "title": "Posts older than",
            "type": "string",
            "description": "Optional. YYYY-MM-DD or relative like \"1 day\"."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional two-letter code, e.g. en, de, ja. Posts tagged with another language are skipped (free)."
          },
          "keywords": {
            "title": "Only posts containing any of these keywords",
            "type": "array",
            "description": "Optional, case-insensitive. Posts without a match are skipped and NOT charged. Matches are returned in matchedKeywords.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip posts containing",
            "type": "array",
            "description": "Optional, case-insensitive. Skipped posts are not charged.",
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Posts with fewer likes are skipped (free).",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Posts with fewer reposts are skipped (free).",
            "default": 0
          },
          "excludeReplies": {
            "title": "Skip replies",
            "type": "boolean",
            "description": "Skip posts that are replies (free).",
            "default": false
          },
          "excludeReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "In author feeds, skip posts the account reposted from others (free).",
            "default": false
          },
          "mentions": {
            "title": "Search: only posts mentioning this handle",
            "type": "string",
            "description": "Optional, applies to keyword search only."
          },
          "domain": {
            "title": "Search: only posts linking to this domain",
            "type": "string",
            "description": "Optional, applies to keyword search only, e.g. nytimes.com. Useful for brand and link tracking."
          },
          "onlyNew": {
            "title": "Only new posts since the last run (monitoring)",
            "type": "boolean",
            "description": "Remembers the newest post time per search query and handle in a named key-value store in your account, so scheduled runs return and charge only new posts.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}