{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Posts, Profiles, Followers & Search",
    "description": "Scrape Bluesky without login: search posts, user feeds, profiles, followers, follows and replies. Likes, reposts, replies, media, links, hashtags, and bio emails & links for profiles.",
    "version": "1.0",
    "x-build-id": "BeJKEfl5qsj859xMb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datakiln~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datakiln-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/datakiln~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datakiln-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/datakiln~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datakiln-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",
              "profiles",
              "followers",
              "follows",
              "postReplies",
              "searchUsers"
            ],
            "type": "string",
            "description": "Search posts by keyword, get posts of users, get profiles, list followers or follows, get all replies to a post, or search for users.",
            "default": "searchPosts"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Used by 'Search posts' and 'Search users'. Keywords, phrases in quotes or hashtags. Bluesky search operators work too: from:handle, mentions:handle, domain:example.com, lang:en, #hashtag.",
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Handles / URLs",
            "type": "array",
            "description": "Used by all other modes. Handles (bsky.app, @jay.bsky.team), DIDs or profile URLs (https://bsky.app/profile/bsky.app). For 'Replies to posts' use post URLs (https://bsky.app/profile/<handle>/post/<id>).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results per query / handle / post",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum posts or profiles collected for each search query, handle or post. 0 = no limit (use Max total charge to cap the cost). Ignored in 'User profiles' mode.",
            "default": 100
          },
          "sort": {
            "title": "Search sort",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "'Latest' returns posts newest first and can go back as far as you need. 'Top' returns the most popular posts; without login Bluesky gives up to ~100 top posts per query, so set 'Posts from date' to get the top posts of every day in the range.",
            "default": "latest"
          },
          "since": {
            "title": "Posts from date",
            "type": "string",
            "description": "Only posts published on or after this date (YYYY-MM-DD or ISO date-time, UTC). Applies to 'Search posts' and 'Posts of users'."
          },
          "until": {
            "title": "Posts until date",
            "type": "string",
            "description": "Only posts published on or before this date (YYYY-MM-DD is inclusive, UTC). Applies to 'Search posts' and 'Posts of users'."
          },
          "language": {
            "title": "Language (search)",
            "type": "string",
            "description": "Only posts in this language, as a two-letter code (en, es, ja, de, pt …). Applies to 'Search posts'."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Keep posts that are replies to other posts. Turn off to get only original posts (search and user posts).",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts (user posts)",
            "type": "boolean",
            "description": "In 'Posts of users', also return posts the user reposted (marked with repostedBy).",
            "default": false
          },
          "onlyPostsWithMedia": {
            "title": "Only posts with media (user posts)",
            "type": "boolean",
            "description": "In 'Posts of users', return only posts with images or video.",
            "default": false
          },
          "includeAuthorStats": {
            "title": "Add author follower counts to posts",
            "type": "boolean",
            "description": "Adds followersCount, followsCount and postsCount of each post's author (one extra lookup per 25 new authors). No extra charge.",
            "default": false
          },
          "enrichProfiles": {
            "title": "Full profile data for followers / user search",
            "type": "boolean",
            "description": "Followers, follows and user-search lists don't include counts. When on, each profile is completed with followers, follows and posts counts and banner. No extra charge.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Queries / handles in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many queries or handles to process at the same time.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed — Bluesky's public API is open. Enable only if you see rate-limit or 403 errors.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}