{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts Scraper — Search, Accounts, Feeds & Replies",
    "description": "Scrape Bluesky posts without a login: keyword and hashtag search with full history, any account's posts, custom feeds, lists and full reply threads. Get text, author, likes, reposts, replies, quotes, images, video, links, hashtags and language. No start fee.",
    "version": "0.1",
    "x-build-id": "QHu5bme8jYkrlUuDv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jaybird~bluesky-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jaybird-bluesky-posts-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/jaybird~bluesky-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jaybird-bluesky-posts-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/jaybird~bluesky-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jaybird-bluesky-posts-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords, phrases or hashtags, one per line, e.g. openai, \"climate change\", #rustlang. Bluesky search operators work too: from:handle, mentions:handle, domain:nytimes.com, lang:en. With Latest sorting, results go back through the full history (not just the first 100).",
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Accounts",
            "type": "array",
            "description": "Handles, DIDs or profile URLs whose posts to scrape, e.g. nytimes.com, @jay.bsky.team, https://bsky.app/profile/bsky.app. Includes the account's reposts (flagged).",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (replies / comments)",
            "type": "array",
            "description": "Bluesky post URLs. Scrapes the post and its whole reply tree with depth and parent, e.g. https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l.",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Custom feed or list URLs",
            "type": "array",
            "description": "Custom feeds (https://bsky.app/profile/<owner>/feed/<name>) or lists (https://bsky.app/profile/<owner>/lists/<id>).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any Bluesky URLs",
            "type": "array",
            "description": "Paste any mix of bsky.app profile, post, feed, list, hashtag (bsky.app/hashtag/ai) or search (bsky.app/search?q=...) URLs; each is detected automatically.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap across all inputs. You are only charged for saved posts.",
            "default": 200
          },
          "maxItemsPerSource": {
            "title": "Max posts per input",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for each search term, account, post, feed or list. 0 = only the total cap applies.",
            "default": 100
          },
          "sort": {
            "title": "Search sorting",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest returns posts newest-first through the full history. Top returns up to 100 of the most popular matches per term.",
            "default": "latest"
          },
          "searchAuthor": {
            "title": "Only posts by this account (search)",
            "type": "string",
            "description": "Limit search results to one author handle, e.g. nytimes.com."
          },
          "dateFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "YYYY-MM-DD, an ISO timestamp, or relative like \"7 days\" or \"24 hours\". Searches and account feeds stop early once they pass this date."
          },
          "dateTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive) or ISO timestamp."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Keep only posts tagged with these language codes, e.g. en, de, ja, pt. Posts with no language tag (common for news and bot accounts) are kept.",
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no filter.",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no filter.",
            "default": 0
          },
          "onlyWithMedia": {
            "title": "Only posts with images or video",
            "type": "boolean",
            "description": "Keep only posts that have images or a video.",
            "default": false
          },
          "excludeReplies": {
            "title": "Exclude replies (search, feeds)",
            "type": "boolean",
            "description": "Skip posts that are replies. Replies under the Post URLs you add are always kept.",
            "default": false
          },
          "excludeReposts": {
            "title": "Exclude reposts (accounts, feeds)",
            "type": "boolean",
            "description": "Skip reposts of other people's posts in account and feed results.",
            "default": false
          },
          "includeAuthorReplies": {
            "title": "Include the account's own replies",
            "type": "boolean",
            "description": "For Accounts: also scrape replies the account wrote to other people.",
            "default": false
          },
          "includeRootPost": {
            "title": "Include the original post with its replies",
            "type": "boolean",
            "description": "For Post URLs: save the post itself as well as its replies.",
            "default": true
          },
          "threadDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many levels of nested replies to fetch for Post URLs (max 1000).",
            "default": 100
          },
          "includeQuotes": {
            "title": "Also scrape quote posts",
            "type": "boolean",
            "description": "For Post URLs: also save posts that quote the post.",
            "default": false
          },
          "deduplicate": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Save each post once even if several inputs return it (duplicates are not charged).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the public Bluesky API is used directly and Apify Proxy is only used automatically as a fallback if requests fail.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}