{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts & Profiles Scraper",
    "description": "Bluesky Scraper SD - Bluesky Scraper is a social media data tool that extracts public Bluesky posts by search term, profile or post link: text, likes, reposts, replies, quotes, hashtags, links, images, video and author stats. No login.",
    "version": "1.0",
    "x-build-id": "UBGtHzMehO9JO1Lra"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~bluesky-posts-profiles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-bluesky-posts-profiles-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/neuro-scraper~bluesky-posts-profiles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-bluesky-posts-profiles-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/neuro-scraper~bluesky-posts-profiles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-bluesky-posts-profiles-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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Words, phrases, #hashtags or Bluesky search syntax, one per line (e.g. web scraping). Each query returns up to \"Max results per input\" posts (and/or accounts, see \"What searches return\").",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "What searches return",
            "enum": [
              "posts",
              "accounts",
              "both"
            ],
            "type": "string",
            "description": "Posts = matching posts; Accounts = matching profiles (people search, with follower and post counts); Both = posts and accounts for every query.",
            "default": "posts"
          },
          "sort": {
            "title": "Sort posts by",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Searches only. Latest = newest posts first; Top = Bluesky ranking.",
            "default": "latest"
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Optional two-letter language code (en, de, ja ...). Searches ask for posts in that language; profile and feed posts are filtered by their language tags."
          },
          "since": {
            "title": "Posted on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*)?$",
            "type": "string",
            "description": "Optional date YYYY-MM-DD (or a full ISO date-time). Searches, profiles and feeds keep only posts created on or after it; profile paging stops once the posts are older."
          },
          "until": {
            "title": "Posted on or before",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*)?$",
            "type": "string",
            "description": "Optional date YYYY-MM-DD (or a full ISO date-time). Keeps only posts created on or before it (the whole day counts)."
          },
          "fromAuthor": {
            "title": "Only posts from this account",
            "type": "string",
            "description": "Searches only, optional. Handle or DID (e.g. bsky.app) - search only this account's posts."
          },
          "mentionsAuthor": {
            "title": "Only posts mentioning this account",
            "type": "string",
            "description": "Searches only, optional. Handle or DID - keep posts that mention this account."
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Searches only, optional. Keep posts that carry ALL these hashtags (without #). With no query, the hashtags alone are searched.",
            "items": {
              "type": "string"
            }
          },
          "domain": {
            "title": "Links to this domain",
            "type": "string",
            "description": "Searches only, optional. Keep posts that link to this domain (e.g. github.com)."
          },
          "exactUrl": {
            "title": "Links to this exact URL",
            "type": "string",
            "description": "Searches only, optional. Keep posts that share exactly this link."
          },
          "handles": {
            "title": "Handles",
            "type": "array",
            "description": "Handles (bsky.app), @handles, DIDs (did:plc:...) or profile links (https://bsky.app/profile/bsky.app). What each returns is set by \"What to scrape for handles\".",
            "items": {
              "type": "string"
            }
          },
          "scrapeType": {
            "title": "What to scrape for handles",
            "enum": [
              "posts",
              "profiles",
              "both",
              "followers",
              "following",
              "all"
            ],
            "type": "string",
            "description": "posts = the profile's posts; profiles = one profile row; both = profile row + posts; followers / following = the account lists; all = everything.",
            "default": "posts"
          },
          "includePosts": {
            "title": "Also fetch each profile's posts",
            "type": "boolean",
            "description": "Adds the posts of every handle to whatever \"What to scrape for handles\" selects.",
            "default": false
          },
          "includeFollowers": {
            "title": "Also export followers",
            "type": "boolean",
            "description": "Adds the followers of every handle (one row per follower, with counts).",
            "default": false
          },
          "includeFollowing": {
            "title": "Also export following",
            "type": "boolean",
            "description": "Adds the accounts every handle follows (one row per account, with counts).",
            "default": false
          },
          "maxFollowsPerProfile": {
            "title": "Max followers / following per profile",
            "minimum": 1,
            "type": "integer",
            "description": "How many follower and following rows to return per handle (each list pages until this number).",
            "default": 100
          },
          "feedFilter": {
            "title": "Profile posts to include",
            "enum": [
              "posts_no_replies",
              "posts_with_replies",
              "posts_with_media",
              "posts_with_video",
              "posts_and_author_threads"
            ],
            "type": "string",
            "description": "Handles only. Which posts of the profile to return.",
            "default": "posts_no_replies"
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Handles only. Also return posts the profile reposted (isRepost = true, repostedBy, repostedAt).",
            "default": false
          },
          "includeReplies": {
            "title": "Include reply posts",
            "type": "boolean",
            "description": "Keep posts that are replies to other posts in search, profile and feed results. Off = only top-level posts.",
            "default": true
          },
          "postUrls": {
            "title": "Post links (post + replies)",
            "type": "array",
            "description": "Post links like https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l or at:// post URIs. Returns the post and its reply thread.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Bluesky links (any kind)",
            "type": "array",
            "description": "Any mix of links: profiles, posts, custom feeds, search pages (bsky.app/search?q=...) and hashtag pages (bsky.app/hashtag/...). Each is routed to the right scraper.",
            "items": {
              "type": "string"
            }
          },
          "feedUris": {
            "title": "Custom feed links",
            "type": "array",
            "description": "Custom feeds like https://bsky.app/profile/bsky.app/feed/whats-hot or at://.../app.bsky.feed.generator/... - returns the posts of the feed, paging until the limit.",
            "items": {
              "type": "string"
            }
          },
          "threadDepth": {
            "title": "Thread reply depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Post links and \"Include replies of every post\": how many reply levels to follow (1 = direct replies only).",
            "default": 6
          },
          "scrapeComments": {
            "title": "Include replies of every post",
            "type": "boolean",
            "description": "For every post found by searches, handles and feeds, also return its replies (rows with kind = reply and the sourcePost... fields).",
            "default": false
          },
          "maxRepliesPerPost": {
            "title": "Max replies per post",
            "minimum": 1,
            "type": "integer",
            "description": "With \"Include replies of every post\": the most reply rows per post.",
            "default": 20
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only posts with at least this many likes."
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only posts with at least this many reposts."
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only posts with at least this many replies."
          },
          "minQuotes": {
            "title": "Minimum quotes",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only posts with at least this many quote posts."
          },
          "sentiment_analysis": {
            "title": "Add sentiment to posts",
            "type": "boolean",
            "description": "Adds sentiment_label (positive / negative / neutral) and sentiment_score (-100 to 100) to every post and reply, computed in the run at no extra cost.",
            "default": false
          },
          "content_analysis": {
            "title": "Classify posts into topics",
            "type": "boolean",
            "description": "Adds content_category_label, content_category_path, content_category_confidence and content_category_match_type (topic from words and hashtags).",
            "default": false
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "type": "integer",
            "description": "How many posts (or accounts) to return for each query, handle, post link and feed. Profiles and feeds page through until this number; a search stops after its first page (100).",
            "default": 20
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the whole run. Leave empty for no total cap."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many queries / handles / posts are worked on at the same time (1-20).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed for public Bluesky data. Turn a proxy on only if you see HTTP 429 errors.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}