{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky User Posts Scraper",
    "description": "Bluesky User Posts Scraper scrapes posts from one or many Bluesky accounts: text, images, video, likes, reposts, replies, quotes, author stats, reply threads, sentiment, filters and monitoring mode for new posts. No login needed. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "BehbI0lWzQfgHvfKx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialdataapi~bluesky-user-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialdataapi-bluesky-user-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-user-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-socialdataapi-bluesky-user-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-user-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-socialdataapi-bluesky-user-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": [
          "handles"
        ],
        "properties": {
          "handles": {
            "title": "👤 Accounts",
            "type": "array",
            "description": "Bluesky accounts to read posts from, one per line: a handle (espn.com, @name.bsky.social), a DID (did:plc:...) or a profile link (https://bsky.app/profile/espn.com). Each account gets its own Max posts per account; duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max posts per account",
            "minimum": 1,
            "type": "integer",
            "description": "How many posts to collect from each account (newest first). Only posts that pass the filters below count; the pinned post and reply rows come on top. Free plan: up to 20 results per run (posts, replies and profile rows, all accounts together) and 200 results per month; paid plans have no limit.",
            "default": 10
          },
          "maxTotalItems": {
            "title": "🔢 Max results per run",
            "minimum": 1,
            "type": "integer",
            "description": "Optional ceiling on rows for the whole run (posts, replies and profile rows of all accounts together); the run stops once it is reached. Leave empty for no run-wide cap."
          },
          "filter": {
            "title": "🎯 Post types",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Which part of the account's feed to read: own posts plus the author's own thread replies (default), posts without replies, posts with every reply, only posts with images or video, or only video posts.",
            "default": "posts_and_author_threads"
          },
          "includeReplies": {
            "title": "✅ Include replies",
            "type": "boolean",
            "description": "Off = drop the account's replies to other posts.",
            "default": true
          },
          "includeReposts": {
            "title": "✅ Include reposts",
            "type": "boolean",
            "description": "Off = drop reposts of other accounts' posts.",
            "default": true
          },
          "includePins": {
            "title": "✅ Include pinned post",
            "type": "boolean",
            "description": "Return the account's pinned post on top of the first page (marked pinned). Off = newest posts only; the pinned flag is then empty.",
            "default": true
          },
          "dateFrom": {
            "title": "📅 Posted from",
            "type": "string",
            "description": "Only posts published on or after this date (UTC), e.g. 2026-01-01. Older posts end the account's walk."
          },
          "dateTo": {
            "title": "📅 Posted until",
            "type": "string",
            "description": "Only posts published on or before this date (UTC, the whole day counts)."
          },
          "minLikes": {
            "title": "🎯 Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many likes.",
            "default": 0
          },
          "minReposts": {
            "title": "🎯 Min reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many reposts.",
            "default": 0
          },
          "minReplies": {
            "title": "🎯 Min replies",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many replies.",
            "default": 0
          },
          "languages": {
            "title": "🌍 Languages",
            "type": "array",
            "description": "Only posts in these languages. A post matches by its detected language or its language tag.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "nl",
                "ja",
                "ko",
                "zh",
                "ru",
                "uk",
                "pl",
                "tr",
                "sv",
                "id",
                "ar",
                "fa",
                "he",
                "hi",
                "bn",
                "th",
                "el",
                "hy",
                "ka",
                "ca",
                "cs",
                "da",
                "fi",
                "no",
                "hu",
                "ro",
                "vi"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Portuguese",
                "French",
                "German",
                "Italian",
                "Dutch",
                "Japanese",
                "Korean",
                "Chinese",
                "Russian",
                "Ukrainian",
                "Polish",
                "Turkish",
                "Swedish",
                "Indonesian",
                "Arabic",
                "Persian",
                "Hebrew",
                "Hindi",
                "Bengali",
                "Thai",
                "Greek",
                "Armenian",
                "Georgian",
                "Catalan",
                "Czech",
                "Danish",
                "Finnish",
                "Norwegian",
                "Hungarian",
                "Romanian",
                "Vietnamese"
              ]
            }
          },
          "keywords": {
            "title": "🎯 Keywords",
            "type": "array",
            "description": "Only posts whose text contains at least one of these words (not case-sensitive).",
            "items": {
              "type": "string"
            }
          },
          "scrapeReplies": {
            "title": "✅ Scrape replies",
            "type": "boolean",
            "description": "Add the replies under each post as rows of type reply, linked to their post in reply_to.",
            "default": false
          },
          "maxReplies": {
            "title": "🔢 Max replies per post",
            "minimum": 1,
            "type": "integer",
            "description": "Most reply rows per post when Scrape replies is on.",
            "default": 5
          },
          "replyDepth": {
            "title": "🔢 Reply depth",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Reply levels to read: 1 = direct replies, 2 = also replies to those replies, and so on (up to 10).",
            "default": 1
          },
          "authorStats": {
            "title": "✅ Author stats",
            "type": "boolean",
            "description": "Fill followers, follows, post count and bio for every post's author, the account's engagement rate per post and its total post count. Off = faster, those fields stay empty.",
            "default": true
          },
          "videoDuration": {
            "title": "✅ Video duration",
            "type": "boolean",
            "description": "Fill duration_seconds for video posts.",
            "default": true
          },
          "sentiment": {
            "title": "✅ Sentiment",
            "type": "boolean",
            "description": "Add a sentiment label (positive / neutral / negative) and score to English posts; other languages stay empty.",
            "default": true
          },
          "includeProfile": {
            "title": "✅ Include profile row",
            "type": "boolean",
            "description": "Add one row of type profile per account (display name, bio, avatar, banner, follower and post counts). Needs Author stats on.",
            "default": false
          },
          "monitoringMode": {
            "title": "🔧 Monitoring mode",
            "type": "boolean",
            "description": "Return only posts that earlier runs with the same monitoring store have not returned yet - for scheduled runs. The post ids of each account are kept in your key-value store named below.",
            "default": false
          },
          "monitoringStoreName": {
            "title": "🔧 Monitoring store name",
            "type": "string",
            "description": "Name of the key-value store in your account that remembers returned posts in monitoring mode. Use a different name per monitoring task.",
            "default": "bluesky-user-posts-monitor"
          },
          "cursor": {
            "title": "🔧 Resume position",
            "type": "string",
            "description": "Continue an account's feed where an earlier run stopped: paste the position the log printed at the end of that run. Works with a single account only."
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 0,
            "type": "integer",
            "description": "Retries for a failed request before it is given up.",
            "default": 3
          },
          "timeout": {
            "title": "⏳ Request timeout",
            "minimum": 1,
            "type": "integer",
            "description": "Seconds to wait for one answer before retrying.",
            "default": 30
          },
          "concurrency": {
            "title": "⚡ Concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Parallel lookups for replies, video durations and author stats.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional proxy to start with. If requests are blocked, the run moves to a datacenter and then a residential proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}