{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Profile Info Scraper",
    "description": "Bluesky Profile Info Scraper scrapes Bluesky profiles in bulk from handles, profile URLs or DIDs: followers, following, posts, bio, avatar, verification, DM setting, bio emails and links, latest post, language and engagement rate. No Bluesky login. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "xMXTSDwu9aH7POSUT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialdataapi~bluesky-profile-info-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialdataapi-bluesky-profile-info-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-profile-info-scraper/runs": {
      "post": {
        "operationId": "runs-sync-socialdataapi-bluesky-profile-info-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-profile-info-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-socialdataapi-bluesky-profile-info-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": "🔎 Handles, profile URLs or DIDs",
            "type": "array",
            "description": "Bluesky accounts, one per line. Each can be a handle (espn.com, @nytimes.com, name.bsky.social), a profile URL (https://bsky.app/profile/espn.com; a post URL works too), a DID (did:plc:... or did:web:...) or an at:// URI. Duplicates are removed, also when a handle and its DID name the same account. Entries that are not an account get an error row instead of stopping the run.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Profile URLs",
            "type": "array",
            "description": "Optional: Bluesky profile URLs as a URL list (e.g. https://bsky.app/profile/espn.com). They are read together with the handles above, the same way.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeLatestPost": {
            "title": "📦 Include latest post",
            "type": "boolean",
            "description": "Add the account's newest own post (date, URL, text) to each row. Reposts and replies are skipped.",
            "default": true
          },
          "computeMetrics": {
            "title": "✅ Compute metrics from recent posts",
            "type": "boolean",
            "description": "Read the account's recent original posts to compute the language, engagement rate (average likes, reposts, replies and quotes per post as a percentage of followers) and content category. Off: profile data only; language and category then come from the bio, engagement rate is empty.",
            "default": true
          },
          "feedSample": {
            "title": "🔢 Posts sampled",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the newest posts are read for the metrics and the latest post (1-100). Reposts and replies in that window are skipped, so a higher number finds the latest own post of accounts that mostly repost.",
            "default": 30
          },
          "countLikes": {
            "title": "✅ Count likes received",
            "type": "boolean",
            "description": "Add likes_count: the total likes the account's posts received, summed over its whole post history. Slow on big accounts (about one extra request per 100 posts), so off by default.",
            "default": false
          },
          "likesMaxPosts": {
            "title": "🔢 Max posts for likes count",
            "minimum": 100,
            "type": "integer",
            "description": "Stop counting likes after this many posts. Past it, likes_count is a lower bound and the row's warnings say so.",
            "default": 5000
          },
          "reachSample": {
            "title": "🔢 Posts for estimated reach",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Number of the newest posts whose reposters and quoters are looked up to compute estimated_reach (the account's followers plus the average audience of the people who reposted or quoted a post). 0 = skip. About 10 extra requests per post, so off by default. Needs metrics on.",
            "default": 0
          },
          "amplifierPages": {
            "title": "🔢 Reposter pages per post",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages of 100 reposters and quoters read per post for estimated reach (1-10). Posts with more are extrapolated.",
            "default": 2
          },
          "pageFallback": {
            "title": "🔧 Public page fallback",
            "type": "boolean",
            "description": "When Bluesky's data service cannot be reached after the retries, read the public profile page instead and return a partial row (name, handle, bio; counts and dates empty, partial = true).",
            "default": true
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 0,
            "type": "integer",
            "description": "Retries for a request that fails or is rate limited, with a growing pause between them.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "⏳ Request timeout (seconds)",
            "minimum": 1,
            "type": "integer",
            "description": "How long one request may take before it is retried.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional proxy to start with. Default: no proxy; when 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}