{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper — Posts, Profiles, Threads & Followers",
    "description": "All-in-one Bluesky extractor on the official AT Protocol public API. Search posts (keyword, hashtag, author, domain, date), pull an account feed, scrape a post's reply thread, read custom feeds, or list profiles and followers. Clean JSON with engagement & media — no login, no proxies.",
    "version": "0.1",
    "x-build-id": "gOm2wo3vW2p2gpjLz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nomad-agent~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nomad-agent-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/nomad-agent~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nomad-agent-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/nomad-agent~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nomad-agent-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": "Mode",
            "enum": [
              "search",
              "authorFeed",
              "thread",
              "feed",
              "profile",
              "followers",
              "following"
            ],
            "type": "string",
            "description": "What to scrape: <b>search</b> — posts matching a keyword/hashtag query; <b>authorFeed</b> — posts from specific accounts; <b>thread</b> — a post plus its full reply thread; <b>feed</b> — posts from a custom/algorithmic feed; <b>profile</b> — profile details for specific accounts; <b>followers</b> — accounts following the given handles; <b>following</b> — accounts the given handles follow.",
            "default": "search"
          },
          "handles": {
            "title": "Handles",
            "type": "array",
            "description": "Bluesky handles or DIDs to scrape (used in <b>authorFeed</b>, <b>profile</b>, <b>followers</b> and <b>following</b> modes), e.g. <code>bsky.app</code> or <code>jay.bsky.team</code>. The leading <code>@</code> is optional.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "In <b>authorFeed</b> mode, also include the author's replies (default: original posts, quotes and reposts only).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records to return across the whole run. Set 0 for no limit (paginate until the source is exhausted). Each record returned is billed — see Pricing in the README.",
            "default": 100
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Delta mode: skip records already seen in this Actor's previous run (per search / handle / feed). Uses the newest <code>indexedAt</code> seen last time as a high-water mark. Applies to <b>search</b>, <b>authorFeed</b> and <b>feed</b> modes. First run returns everything.",
            "default": false
          },
          "threadUris": {
            "title": "Thread post URLs / URIs",
            "type": "array",
            "description": "Posts whose reply thread to scrape (used in <b>thread</b> mode). Paste bsky.app post links (e.g. <code>https://bsky.app/profile/bsky.app/post/3l...</code>) or raw <code>at://</code> post URIs.",
            "items": {
              "type": "string"
            }
          },
          "threadDepth": {
            "title": "Thread depth",
            "minimum": 0,
            "type": "integer",
            "description": "In <b>thread</b> mode, how many levels of replies below the post to fetch (0 = just the post itself).",
            "default": 6
          },
          "parentHeight": {
            "title": "Parent height",
            "minimum": 0,
            "type": "integer",
            "description": "In <b>thread</b> mode, how many ancestor posts above the requested post to include (0 = none). Ancestors are returned with a negative <code>depth</code>.",
            "default": 0
          },
          "feedUris": {
            "title": "Feed URLs / generator URIs",
            "type": "array",
            "description": "Custom/algorithmic feeds to read (used in <b>feed</b> mode). Paste bsky.app feed links (e.g. <code>https://bsky.app/profile/&lt;handle&gt;/feed/&lt;rkey&gt;</code>) or raw <code>at://.../app.bsky.feed.generator/...</code> URIs.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword or hashtag to search posts for (used in <b>search</b> mode). Supports Bluesky search operators typed directly into the query, e.g. <code>#ai</code>, <code>\"exact phrase\"</code> — or use the dedicated <b>From author</b>, <b>Mentions author</b>, <b>Language</b>, <b>Domain</b>, <b>URL</b> and <b>Tag</b> fields below instead of typing <code>from:</code>/<code>mentions:</code>/<code>lang:</code>/<code>domain:</code>/<code>#tag</code>."
          },
          "since": {
            "title": "Since",
            "type": "string",
            "description": "Only return posts created at or after this date (used in <b>search</b> mode). Pick a date, or type a precise ISO 8601 timestamp such as <code>2026-06-01T00:00:00Z</code> for finer control."
          },
          "until": {
            "title": "Until",
            "type": "string",
            "description": "Only return posts created before this date (used in <b>search</b> mode). Pick a date, or type a precise ISO 8601 timestamp such as <code>2026-07-01T00:00:00Z</code> for finer control."
          },
          "fromAuthor": {
            "title": "From author",
            "type": "string",
            "description": "Only return posts written by this account (used in <b>search</b> mode). Enter a handle, e.g. <code>bsky.app</code> — same as typing <code>from:</code> into a Bluesky search. The leading <code>@</code> is optional."
          },
          "mentionsAuthor": {
            "title": "Mentions author",
            "type": "string",
            "description": "Only return posts that mention this account (used in <b>search</b> mode). Enter a handle, e.g. <code>bsky.app</code> — same as typing <code>mentions:</code> into a Bluesky search. The leading <code>@</code> is optional."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Only return posts declared in this language (used in <b>search</b> mode). Two-letter ISO 639-1 code, e.g. <code>en</code>, <code>fr</code>, <code>ja</code>."
          },
          "domain": {
            "title": "Domain",
            "type": "string",
            "description": "Only return posts that link to this domain (used in <b>search</b> mode), e.g. <code>nytimes.com</code>. Uses searchPosts' own <code>domain</code> filter param."
          },
          "url": {
            "title": "URL",
            "type": "string",
            "description": "Only return posts that link to this exact URL (used in <b>search</b> mode). Uses searchPosts' own <code>url</code> filter param."
          },
          "tag": {
            "title": "Tags",
            "type": "array",
            "description": "Only return posts carrying these hashtags (used in <b>search</b> mode). Enter tags without the leading <code>#</code>, e.g. <code>art</code>. Uses searchPosts' own repeatable <code>tag</code> filter param.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Ranking for <b>search</b> mode: newest first or by relevance/engagement.",
            "default": "latest"
          },
          "minLikes": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer likes than this before they are returned (applies to <b>search</b>, <b>authorFeed</b>, <b>thread</b> and <b>feed</b> modes; compares against each post's <code>likeCount</code>). 0 = no filter.",
            "default": 0
          },
          "minReposts": {
            "title": "Min reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer reposts than this before they are returned (applies to <b>search</b>, <b>authorFeed</b>, <b>thread</b> and <b>feed</b> modes; compares against each post's <code>repostCount</code>). 0 = no filter.",
            "default": 0
          },
          "aiAnalysis": {
            "title": "AI analysis (bring your own key)",
            "type": "boolean",
            "description": "Add LLM-derived <code>aiSentiment</code>, <code>aiTopics</code> and <code>aiSummary</code> fields to each post (post modes only). Requires your own Anthropic, Mistral or OpenAI API key below — that provider bills you directly; this Actor's per-record price is unchanged. Left null when off.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "anthropic",
              "mistral",
              "openai"
            ],
            "type": "string",
            "description": "Which LLM provider to use when <b>AI analysis</b> is on. Leave unset to auto-detect from whichever key you supply (Anthropic, Mistral or OpenAI); set it explicitly only to override."
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Override the model used for AI analysis. Defaults to a cheap model per provider (<code>claude-haiku-4-5</code> for Anthropic, <code>mistral-small-latest</code> for Mistral, <code>gpt-4.1-mini</code> for OpenAI — any chat-completions GPT model works, including the gpt-5 family)."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "Your Anthropic API key (<code>sk-ant-…</code>). Only used when <b>AI analysis</b> is on and the provider is Anthropic; billed by Anthropic, not by this Actor. Not required."
          },
          "mistralApiKey": {
            "title": "Mistral API key",
            "type": "string",
            "description": "Your Mistral API key. Only used when <b>AI analysis</b> is on and the provider is Mistral; billed by Mistral, not by this Actor. Not required."
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your OpenAI API key (<code>sk-…</code>). Only used when <b>AI analysis</b> is on and the provider is OpenAI; billed by OpenAI, not by this Actor. Not required."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}