{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper: Posts, Profiles, Followers & Search",
    "description": "Scrape Bluesky (AT Protocol) posts, profiles, followers, follows, likes, threads, search results, and feeds - no browser, no proxies, no cookies. Pay only for results you receive.",
    "version": "0.3",
    "x-build-id": "WUtFeg2gQC3gik20o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perconey~bluesky-scraper-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perconey-bluesky-scraper-pro",
        "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/perconey~bluesky-scraper-pro/runs": {
      "post": {
        "operationId": "runs-sync-perconey-bluesky-scraper-pro",
        "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/perconey~bluesky-scraper-pro/run-sync": {
      "post": {
        "operationId": "run-sync-perconey-bluesky-scraper-pro",
        "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": [
          "action",
          "queries"
        ],
        "properties": {
          "action": {
            "title": "What do you want to scrape?",
            "enum": [
              "getProfiles",
              "getAuthorFeed",
              "getFollowers",
              "getFollows",
              "getPostThread",
              "getLikes",
              "getReposts",
              "searchActors",
              "getFeed",
              "searchPosts"
            ],
            "type": "string",
            "description": "Choose the type of data to collect. Each action accepts different inputs (filled below).",
            "default": "getProfiles"
          },
          "queries": {
            "title": "Queries / Handles / URLs / URIs",
            "type": "array",
            "description": "What to look up. Format depends on the action:\n• searchPosts / searchActors → search keywords (e.g. \"openai\", \"#crypto\")\n• getAuthorFeed / getProfiles / getFollowers / getFollows → Bluesky handles (e.g. bsky.app) or DIDs\n• getPostThread / getLikes / getReposts → full post URLs (https://bsky.app/profile/.../post/...) or AT-URIs (at://did:.../app.bsky.feed.post/...)\n• getFeed → feed URLs or AT-URIs",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum items returned per input query. Pagination stops when reached. 0 means unlimited.",
            "default": 100
          },
          "since": {
            "title": "Since (ISO date)",
            "type": "string",
            "description": "Only return posts created on/after this date. Format: 2024-01-01 or 2024-01-01T00:00:00Z. Applies to searchPosts and getAuthorFeed."
          },
          "until": {
            "title": "Until (ISO date)",
            "type": "string",
            "description": "Only return posts created before this date. Same format as 'since'."
          },
          "lang": {
            "title": "Language filter",
            "type": "string",
            "description": "Filter posts by ISO 639-1 language code (e.g. 'en', 'pl', 'ja'). Only applied for searchPosts."
          },
          "sortOrder": {
            "title": "Sort order (search only)",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Order of results from searchPosts. 'latest' = newest first, 'top' = most engagement first.",
            "default": "latest"
          },
          "minLikes": {
            "title": "Minimum likes filter",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer likes than this. Applied post-fetch to results from searchPosts / getAuthorFeed.",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts filter",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer reposts than this.",
            "default": 0
          },
          "minReplies": {
            "title": "Minimum replies filter",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer replies than this.",
            "default": 0
          },
          "fromAuthor": {
            "title": "Limit to author (search only)",
            "type": "string",
            "description": "When using searchPosts, restrict to posts from this Bluesky handle."
          },
          "mentionsActor": {
            "title": "Mentions actor (search only)",
            "type": "string",
            "description": "When using searchPosts, restrict to posts mentioning this handle."
          },
          "tag": {
            "title": "Hashtag filter (search only)",
            "type": "string",
            "description": "When using searchPosts, restrict to posts using this hashtag (without #)."
          },
          "domain": {
            "title": "Domain filter (search only)",
            "type": "string",
            "description": "When using searchPosts, only posts that link to this domain (e.g. 'github.com')."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "For getAuthorFeed: include the author's replies to other people's posts.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "For getAuthorFeed: include reposts shared by the author.",
            "default": true
          },
          "authHandle": {
            "title": "Bluesky login handle (only for searchPosts / getFeed)",
            "type": "string",
            "description": "Your Bluesky handle, e.g. you.bsky.social. searchPosts requires login on the public AppView. NEVER use your account password - generate an App Password at bsky.app › Settings › Privacy & Security › App Passwords."
          },
          "authAppPassword": {
            "title": "Bluesky App Password",
            "type": "string",
            "description": "Generated at bsky.app › Settings › App Passwords. Looks like xxxx-xxxx-xxxx-xxxx. Stored securely by Apify, only used to obtain a short-lived session token from Bluesky."
          },
          "service": {
            "title": "AT Protocol service host (advanced)",
            "type": "string",
            "description": "Default: https://public.api.bsky.app (Bluesky AppView, no auth required for most endpoints). Change only if you self-host or know what you're doing.",
            "default": "https://public.api.bsky.app"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}