{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper",
    "description": "Scrape Bluesky posts by keyword (date & language filters), user feeds, replies/threads, profiles, followers, following, likers and reposters. Likes, reposts, replies, quotes, images, links. Official API, $0.95 per 1,000 results.",
    "version": "1.0",
    "x-build-id": "C6U71Cm83cZjeNbSf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/exciting_pawpaw~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-exciting_pawpaw-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/exciting_pawpaw~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-exciting_pawpaw-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/exciting_pawpaw~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-exciting_pawpaw-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",
              "userPosts",
              "postThread",
              "profiles",
              "searchUsers",
              "followers",
              "following",
              "likers",
              "reposters"
            ],
            "type": "string",
            "description": "Choose the type of data. Search modes use 'Search queries'; user modes use 'Handles'; thread/likers/reposters use 'Post URLs'.",
            "default": "userPosts"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords or phrases for 'Search posts' and 'Search users'. Supports Bluesky search syntax, e.g. \"exact phrase\", #hashtag, from:handle, -excluded. Note: 'Search posts' requires a Bluesky handle + app password (see below); 'Search users' works without login.",
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Handles / profile URLs",
            "type": "array",
            "description": "Bluesky handles (alice.bsky.social, @alice, or just 'alice'), DIDs, or profile URLs like https://bsky.app/profile/alice.bsky.social. Used by user posts, profiles, followers and following.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Post URLs like https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l (or at:// URIs). Used by thread, likers and reposters modes.",
            "items": {
              "type": "string"
            }
          },
          "blueskyHandle": {
            "title": "Bluesky handle (required for post search only)",
            "type": "string",
            "description": "Bluesky no longer allows post search without login. For the 'Search posts' mode, enter the handle of a Bluesky account (e.g. myname.bsky.social). We recommend a separate throwaway account. All other modes work without login."
          },
          "blueskyAppPassword": {
            "title": "Bluesky app password (required for post search only)",
            "type": "string",
            "description": "An app password, NOT your main password. Create one at https://bsky.app/settings/app-passwords (Settings > Privacy and security > App passwords); you can revoke it anytime. Stored encrypted and never logged."
          },
          "maxItems": {
            "title": "Maximum results (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of results saved across all inputs. You pay only for results saved.",
            "default": 100
          },
          "maxItemsPerInput": {
            "title": "Maximum results per input",
            "minimum": 0,
            "type": "integer",
            "description": "Optional limit per search query / handle / post URL. 0 = no per-input limit (only the total limit applies).",
            "default": 0
          },
          "sort": {
            "title": "Search sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "For 'Search posts'. 'latest' = newest first; 'top' = Bluesky's relevance/engagement ranking.",
            "default": "latest"
          },
          "since": {
            "title": "Posts from (date)",
            "type": "string",
            "description": "Only posts created on/after this date. 'YYYY-MM-DD', a full ISO timestamp, or relative like '7 days', '24 hours'. Applies to 'Search posts' and 'Posts of users'."
          },
          "until": {
            "title": "Posts until (date)",
            "type": "string",
            "description": "Only posts created before this date (a plain date includes that whole day). Same formats as 'Posts from'. Applies to 'Search posts' and 'Posts of users'."
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "For 'Search posts': only posts tagged with this language code, e.g. en, de, ja, pt."
          },
          "author": {
            "title": "Only posts by author",
            "type": "string",
            "description": "For 'Search posts': restrict results to posts by this handle."
          },
          "mentions": {
            "title": "Only posts mentioning",
            "type": "string",
            "description": "For 'Search posts': restrict to posts mentioning this handle."
          },
          "domain": {
            "title": "Only posts linking to domain",
            "type": "string",
            "description": "For 'Search posts': restrict to posts linking to this domain, e.g. nytimes.com."
          },
          "feedFilter": {
            "title": "User posts filter",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "For 'Posts of users': which posts to include from each profile.",
            "default": "posts_with_replies"
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "For 'Posts of users': also include posts the user reposted (marked with isRepost=true).",
            "default": false
          },
          "threadDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "For 'Post replies / thread': how many levels of nested replies to fetch (1 = direct replies only).",
            "default": 10
          },
          "includeRootPost": {
            "title": "Include the original post",
            "type": "boolean",
            "description": "For 'Post replies / thread': also output the post itself (threadDepth 0) before its replies.",
            "default": true
          },
          "sortReplies": {
            "title": "Reply order",
            "enum": [
              "likes",
              "api"
            ],
            "type": "string",
            "description": "For 'Post replies / thread': order of direct replies.",
            "default": "likes"
          },
          "includeProfileDetails": {
            "title": "Include full profile details for user lists",
            "type": "boolean",
            "description": "For followers, following, likers, reposters and user search: fetch follower/following/post counts for each user (1 extra request per 25 users).",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}