{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Single Posts Scraper",
    "description": "Bluesky Single Posts Scraper scrapes a Bluesky post by URL: text, author, media, likes, reposts, quotes and the reply thread as one flat row per post, with filters, author stats, sentiment and quotes mode. No Bluesky login needed. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "asEIzR9JEmhLk32Hk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialdataapi~bluesky-single-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialdataapi-bluesky-single-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/socialdataapi~bluesky-single-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-socialdataapi-bluesky-single-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/socialdataapi~bluesky-single-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-socialdataapi-bluesky-single-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 Post URLs",
            "type": "array",
            "description": "Bluesky post links, one per line: https://bsky.app/profile/<handle>/post/<id>. An at:// post URI or <handle>/post/<id> works too. Each post is scraped with its replies (or its quote posts in quotes mode).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "🔧 Mode",
            "enum": [
              "thread",
              "quotes"
            ],
            "type": "string",
            "description": "thread = the post and every reply under it. quotes = the posts that quote it.",
            "default": "thread"
          },
          "max_items": {
            "title": "🔢 Max posts per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many post rows across all URLs together. 0 = no cap. Free plan: up to 20 posts per run (all URLs together) and 200 per month; paid plans have no limit.",
            "default": 10
          },
          "max_results_per_input": {
            "title": "🔢 Max rows per URL",
            "minimum": 0,
            "type": "integer",
            "description": "Most rows to keep for each URL (the post itself, its parents and replies all count). 0 = all.",
            "default": 0
          },
          "max_replies": {
            "title": "🔢 Max direct replies",
            "minimum": 0,
            "type": "integer",
            "description": "Most direct (first-level) replies to load per post. 0 = every one there is.",
            "default": 0
          },
          "depth": {
            "title": "🔢 Reply depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many reply levels to load under the post (1 = direct replies only, 0 = the post alone). Max 1000.",
            "default": 6
          },
          "parent_height": {
            "title": "🔢 Parent posts",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "When the post is itself a reply: how many posts above it to include (source = parent). 0 = none.",
            "default": 80
          },
          "reply_sort": {
            "title": "🔃 Reply order",
            "enum": [
              "api",
              "likes",
              "top",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of replies at every level. api = Bluesky's own order (the author's replies first), likes / top = most liked first, newest, oldest.",
            "default": "api"
          },
          "include_root_post": {
            "title": "✅ Include the post itself",
            "type": "boolean",
            "description": "Thread mode: put the post's own row (source = thread-root) first. Off = only its parents and replies.",
            "default": true
          },
          "add_author_stats": {
            "title": "✅ Author stats",
            "type": "boolean",
            "description": "Add authorFollowersCount, authorFollowsCount, authorPostsCount and isPinned to every row.",
            "default": true
          },
          "add_sentiment": {
            "title": "✅ Sentiment",
            "type": "boolean",
            "description": "Add sentiment (positive / negative / neutral) and sentimentScore (-1 to 1) from the post text and emoji (tuned for English).",
            "default": false
          },
          "compute_metrics": {
            "title": "✅ Engagement rate",
            "type": "boolean",
            "description": "Add engagementRate (likes, reposts, replies and quotes per author follower) to the post's own row.",
            "default": true
          },
          "estimate_reach": {
            "title": "✅ Estimated reach",
            "type": "boolean",
            "description": "Add estimatedReach to the post's own row: the author's followers plus the followers of everyone who reposted or quoted it. Adds a few seconds per post.",
            "default": false
          },
          "reach_max_amplifiers": {
            "title": "🔢 Max reposters / quoters for reach",
            "minimum": 1,
            "type": "integer",
            "description": "Most reposters and quoters counted for estimatedReach.",
            "default": 10
          },
          "video_duration": {
            "title": "✅ Video length",
            "type": "boolean",
            "description": "Add durationSeconds to the row of a post with a video.",
            "default": true
          },
          "reply_index": {
            "title": "✅ Complete reply lists",
            "type": "boolean",
            "description": "Bluesky shows only part of a very long reply list. On = look up the missing direct replies too, so you get every reply. Off = only the replies Bluesky shows.",
            "default": true
          },
          "posted_after": {
            "title": "📅 Posted after",
            "type": "string",
            "description": "Keep only posts created on or after this day (YYYY-MM-DD)."
          },
          "posted_before": {
            "title": "📅 Posted before",
            "type": "string",
            "description": "Keep only posts created on or before this day (YYYY-MM-DD, that day included)."
          },
          "languages": {
            "title": "🌍 Languages",
            "type": "array",
            "description": "Keep only posts in these languages (two-letter codes such as en, de, ja). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "filter_keywords": {
            "title": "🎯 Keywords",
            "type": "array",
            "description": "Keep a post only when its text, hashtags or link title contain one of these words (case-insensitive). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "min_likes": {
            "title": "🎯 Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes.",
            "default": 0
          },
          "min_reposts": {
            "title": "🎯 Min reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many reposts.",
            "default": 0
          },
          "min_replies": {
            "title": "🎯 Min replies",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many replies.",
            "default": 0
          },
          "output_format": {
            "title": "📦 Output format",
            "enum": [
              "rows",
              "thread"
            ],
            "type": "string",
            "description": "rows = one flat row per post (best for tables and exports). thread = one nested item per URL with the post, its reply tree, computed metrics and run stats.",
            "default": "rows"
          },
          "max_retries": {
            "title": "🔁 Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How often a failed request is retried.",
            "default": 3
          },
          "timeout": {
            "title": "⏳ Request timeout (s)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Seconds to wait for one answer.",
            "default": 30
          },
          "concurrency": {
            "title": "⚡ Concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Requests sent side by side within one post (profiles, extra replies).",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. By default the run connects directly and switches to a proxy by itself only when it is blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}