{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper - Posts, Profiles & Search",
    "description": "Scrape Bluesky posts, profiles, search, threads & followers via the public AT Protocol. Clean flat JSON/CSV with image alt-text & quoted posts. No login.",
    "version": "1.0",
    "x-build-id": "duAlz8NfSCZr3ED1E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eszetael_lab~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eszetael_lab-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/eszetael_lab~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eszetael_lab-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/eszetael_lab~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eszetael_lab-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "author_posts",
              "search_posts",
              "profiles",
              "search_profiles",
              "post_thread",
              "followers",
              "follows"
            ],
            "type": "string",
            "description": "Pick the capability. Everything except 'search_posts' works with no login.",
            "default": "author_posts"
          },
          "handles": {
            "title": "Accounts (handles or DIDs)",
            "type": "array",
            "description": "e.g. nytimes.com, bsky.app, or did:plc:... . Used by author_posts, profiles, followers, follows.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword(s) for 'search_posts' or 'search_profiles'. Supports Bluesky search syntax."
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "bsky.app post URLs (or at:// URIs) for 'post_thread'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results (per target)",
            "minimum": 0,
            "type": "integer",
            "description": "Cap results per account/query. 0 or empty = unlimited (until the API runs out).",
            "default": 200
          },
          "authorFeedFilter": {
            "title": "Author feed filter",
            "enum": [
              "posts_and_author_threads",
              "posts_no_replies",
              "posts_with_media",
              "posts_with_replies"
            ],
            "type": "string",
            "description": "For 'author_posts': which posts to include.",
            "default": "posts_and_author_threads"
          },
          "sort": {
            "title": "Sort (search_posts)",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Sort order for search results: 'latest' (newest first) or 'top' (most relevant).",
            "default": "latest"
          },
          "since": {
            "title": "Since (ISO date/datetime)",
            "type": "string",
            "description": "Only posts on/after this time, e.g. 2026-07-01 or 2026-07-01T00:00:00Z."
          },
          "until": {
            "title": "Until (ISO date/datetime)",
            "type": "string",
            "description": "Only posts before this date (YYYY-MM-DD). Search modes only."
          },
          "lang": {
            "title": "Language filter (search_posts)",
            "type": "string",
            "description": "Two-letter code, e.g. en, pl."
          },
          "fromAuthor": {
            "title": "From author (search_posts)",
            "type": "string",
            "description": "Restrict search to one account's posts."
          },
          "mentions": {
            "title": "Mentions (search_posts)",
            "type": "string",
            "description": "Posts mentioning this account."
          },
          "hashtags": {
            "title": "Hashtags (search_posts)",
            "type": "array",
            "description": "Posts carrying these tags (no # sign).",
            "items": {
              "type": "string"
            }
          },
          "threadDepth": {
            "title": "Thread depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "For 'post_thread': how many reply levels to walk.",
            "default": 6
          },
          "onlyNew": {
            "title": "Only new since last run (monitoring)",
            "type": "boolean",
            "description": "Skip posts already delivered in previous runs of this saved task — turns any scrape into a change monitor / alert feed.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Optional label that groups 'onlyNew' memory. Leave blank to derive from the query/accounts."
          },
          "blueskyIdentifier": {
            "title": "Bluesky handle (for post search)",
            "type": "string",
            "description": "Only needed for 'search_posts'. Your Bluesky handle, e.g. you.bsky.social."
          },
          "blueskyAppPassword": {
            "title": "Bluesky app password",
            "type": "string",
            "description": "Create at Bluesky → Settings → App Passwords. NOT your main password. Only used to sign in for post search; never stored."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}