{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper - Posts, Search, Profiles, Followers & Replies",
    "description": "Scrape Bluesky posts by keyword or profile, profiles, followers, follows, replies, reposts and quotes: text, author, likes, reposts, replies, quotes, images, links, hashtags and mentions. Official public API, no login.",
    "version": "0.1",
    "x-build-id": "cBbbUwXfTWpfmEW6f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wakachobi~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wakachobi-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/wakachobi~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wakachobi-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/wakachobi~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wakachobi-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": [
              "searchPosts",
              "profilePosts",
              "profiles",
              "followers",
              "follows",
              "postReplies",
              "repostedBy",
              "quotes"
            ],
            "type": "string",
            "description": "Search posts uses 'Search queries'. Posts from profiles, profile details, followers and follows use 'Profiles'. Replies, reposted by and quotes use 'Post URLs'.",
            "default": "searchPosts"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords, phrases or Bluesky search syntax, e.g. 'artificial intelligence', '#bookstodon' or 'from:bsky.app'. Used in 'Search posts' mode.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest = newest first. Top = most engaging first.",
            "default": "latest"
          },
          "since": {
            "title": "Posted since",
            "type": "string",
            "description": "Search mode: only posts created on or after this date (YYYY-MM-DD or ISO 8601). Profile posts mode: stop when posts get older than this."
          },
          "until": {
            "title": "Posted before",
            "type": "string",
            "description": "Search mode: only posts created before this date (YYYY-MM-DD or ISO 8601)."
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Search mode: only posts in this language (ISO code, e.g. 'en', 'de', 'ja')."
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Search mode: only posts by this account (handle or DID)."
          },
          "mentions": {
            "title": "Mentions",
            "type": "string",
            "description": "Search mode: only posts mentioning this account (handle or DID)."
          },
          "domain": {
            "title": "Link domain",
            "type": "string",
            "description": "Search mode: only posts linking to this domain, e.g. 'nytimes.com'."
          },
          "tags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Search mode: only posts with all of these hashtags (without #).",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "Bluesky handles, DIDs or profile URLs, e.g. 'bsky.app', '@jay.bsky.team' or 'https://bsky.app/profile/bsky.app'.",
            "items": {
              "type": "string"
            }
          },
          "authorFeedFilter": {
            "title": "Profile posts filter",
            "enum": [
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video",
              "posts_and_author_threads"
            ],
            "type": "string",
            "description": "Which posts to return in 'Posts from profiles' mode.",
            "default": "posts_no_replies"
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Profile posts mode: also return posts the profile reposted (flagged with isRepost).",
            "default": false
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Links to Bluesky posts (https://bsky.app/profile/<handle>/post/<id>) or at:// URIs. Used in replies, reposted by and quotes modes.",
            "items": {
              "type": "string"
            }
          },
          "replyDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Replies mode: how many levels of nested replies to follow (1 = direct replies only).",
            "default": 10
          },
          "enrichProfiles": {
            "title": "Add follower counts to followers/follows",
            "type": "boolean",
            "description": "Followers/follows/reposted-by modes: fetch full profiles so each account includes follower, follows and post counts (one extra request per 25 accounts).",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results in total.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Datacenter proxy works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}