{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Posts, Profiles, Feeds & Followers",
    "description": "Scrape Bluesky without login: posts by keyword or hashtag, account feeds, likes, custom feeds, lists and reply threads, plus profiles, followers and following. Monitoring mode outputs only new posts.",
    "version": "0.1",
    "x-build-id": "lnfGqDXUBfHMmutoe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-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/tortuga~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-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/tortuga~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords, phrases or hashtags to search posts for, one per line: `climate change`, `#python`, `\"exact phrase\"`. Bluesky search syntax works too (`from:handle`, `lang:en`). Each term is one source.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Sort search results by",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest = newest first, pages back as far as Max items allows. Top = Bluesky's most relevant posts; without login Bluesky returns at most about 100 top posts per term.",
            "default": "latest"
          },
          "since": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts newer than this: a date (YYYY-MM-DD), a date-time, or a period such as `7 days` or `24 hours`. Applies to search terms."
          },
          "until": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts older than this date (YYYY-MM-DD) or period (`30 days`). Applies to search terms."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Only posts in this language, as a 2-letter code: `en`, `de`, `ja`, `pt`. Applies to search terms."
          },
          "author": {
            "title": "From account",
            "type": "string",
            "description": "Only posts written by this account (handle such as `bsky.app` or a DID). Applies to search terms."
          },
          "mentions": {
            "title": "Mentioning account",
            "type": "string",
            "description": "Only posts that mention this account (handle or DID). Applies to search terms."
          },
          "domain": {
            "title": "Linking to domain",
            "type": "string",
            "description": "Only posts that link to this website, e.g. `nytimes.com`. Applies to search terms."
          },
          "profiles": {
            "title": "Accounts",
            "type": "array",
            "description": "Bluesky accounts, one per line: a handle (`bsky.app`, `@jay.bsky.team`), a DID or a profile URL (`https://bsky.app/profile/bsky.app`). What is collected for each is set by \"What to get from accounts\".",
            "items": {
              "type": "string"
            }
          },
          "profileContent": {
            "title": "What to get from accounts",
            "enum": [
              "posts",
              "posts_and_replies",
              "media",
              "videos",
              "threads",
              "likes",
              "followers",
              "following",
              "profile"
            ],
            "type": "string",
            "description": "Posts (no replies), posts and replies, media posts, video posts, the account's likes, its followers, the accounts it follows, or only the profile data (followers/following/posts counts, bio, avatar, created date).",
            "default": "posts"
          },
          "includeProfileInfo": {
            "title": "Include profile item",
            "type": "boolean",
            "description": "When collecting posts or likes from accounts, also output one `type: \"profile\"` item per account (counts, bio, avatar, created date). It does not count toward Max items per source.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Include posts the account (or feed/list) reposted, marked `isRepost: true` with `repostedByHandle`. Off = only original posts.",
            "default": false
          },
          "profileDetails": {
            "title": "Full profile details for followers and list members",
            "type": "boolean",
            "description": "Add followers/following/posts counts and pinned post to every follower, followed account and list member (1 extra request per 25 profiles). Turn off for faster, slimmer lists.",
            "default": true
          },
          "startUrls": {
            "title": "Bluesky URLs",
            "type": "array",
            "description": "Any bsky.app link: a post (scrapes it and its reply thread), a custom feed (`/profile/<handle>/feed/<name>`), a list (`/profile/<handle>/lists/<id>`), a starter pack, a profile (or its `/followers`, `/follows`, `/likes` page), a search (`/search?q=...`) or a hashtag page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listContent": {
            "title": "What to get from lists and starter packs",
            "enum": [
              "posts",
              "members"
            ],
            "type": "string",
            "description": "Posts = the list's feed (recent posts by its members). Members = the accounts on the list, as profile items.",
            "default": "posts"
          },
          "threadDepth": {
            "title": "Reply depth for post threads",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "For post URLs: how many levels of replies to collect below the post (1 = direct replies only).",
            "default": 10
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Overall cap on dataset items across all sources. You pay per item, so this caps the cost.",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per search term, account, feed, list or thread. Empty = each source can fill Max items. With monitoring on, this is how many of the newest items are checked per source."
          },
          "onlyNewOrChanged": {
            "title": "Only new posts (monitoring)",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only new posts (and new followers, likes or list members). Use with a Schedule; items already seen are not charged. Newest-first sources stop at the first page with nothing new.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same input stay separate; defaults to a key derived from the input"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (default) spreads requests over IPs, which helps against Bluesky's per-IP rate limits on large runs. The API is public and needs no residential proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}