{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper 🦋",
    "description": "Scrape Bluesky posts and DMs without the hassle. This Actor extracts posts, replies, and direct messages from Bluesky, fast, reliable.",
    "version": "0.0",
    "x-build-id": "0YUDL0LNvWljRtqD4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nocodeventure~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nocodeventure-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/nocodeventure~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nocodeventure-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/nocodeventure~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nocodeventure-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": {
          "scrapeMode": {
            "title": "Scrape Mode",
            "enum": [
              "posts",
              "messages"
            ],
            "type": "string",
            "description": "What to scrape from Bluesky.",
            "default": "posts"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Search term to find posts on Bluesky. Leave empty to scrape from a specific user's feed instead."
          },
          "searchSort": {
            "title": "Search Sort",
            "enum": [
              "top",
              "latest"
            ],
            "type": "string",
            "description": "How to sort search results.",
            "default": "top"
          },
          "handle": {
            "title": "User Handle",
            "type": "string",
            "description": "The Bluesky handle to scrape posts from (e.g., 'apify.com', 'jay.bsky.team'). Don't include '@'. Leave empty if using search mode."
          },
          "feedFilter": {
            "title": "Feed Filter",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media"
            ],
            "type": "string",
            "description": "What type of content to get from the user's feed.",
            "default": "posts_and_author_threads"
          },
          "postCount": {
            "title": "Number of Posts",
            "minimum": 0,
            "type": "integer",
            "description": "Number of posts to extract. Set to 0 to get all available posts (up to API limits).",
            "default": 10
          },
          "includeReplies": {
            "title": "Include Reply Threads",
            "type": "boolean",
            "description": "When enabled, fetches the full reply thread for each post. This makes additional API calls per post.",
            "default": false
          },
          "repliesDepth": {
            "title": "Replies Depth",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum depth of reply threads to fetch (0 = all replies). Only applies when 'Include Reply Threads' is enabled.",
            "default": 2
          },
          "conversationCount": {
            "title": "Number of Conversations",
            "minimum": 0,
            "type": "integer",
            "description": "Number of DM conversations to fetch. Set to 0 to get all conversations.",
            "default": 10
          },
          "messagesPerConversation": {
            "title": "Messages per Conversation",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum messages to fetch per conversation. Set to 0 for all messages.",
            "default": 50
          },
          "unreadOnly": {
            "title": "Unread Conversations Only",
            "type": "boolean",
            "description": "When enabled, only fetches conversations with unread messages.",
            "default": false
          },
          "blueskyIdentifier": {
            "title": "Bluesky Identifier",
            "type": "string",
            "description": "Your Bluesky handle or email for authentication. Required for all operations."
          },
          "blueskyPassword": {
            "title": "Bluesky App Password",
            "type": "string",
            "description": "Your Bluesky app password. Create one at Settings > App Passwords. Do NOT use your main account password."
          },
          "service": {
            "title": "AT Protocol Service URL",
            "type": "string",
            "description": "The AT Protocol service URL to authenticate against. Only change this if your account is hosted on a different PDS (Personal Data Server) than the default Bluesky server.",
            "default": "https://bsky.social"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}