{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Post, Search & Profile Scraper",
    "description": "Bluesky Post, Search & Profile Scraper returns post text, engagement counts, images, profile bios, followers, follows and thread replies from Bluesky's public API — one row per item, no login required.",
    "version": "0.2",
    "x-build-id": "cVnG5vTh1CgiLt6C1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webdatatools~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webdatatools-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/webdatatools~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-webdatatools-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/webdatatools~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-webdatatools-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "posts",
              "search",
              "profile",
              "followers",
              "follows",
              "thread",
              "quotes",
              "postsByUrl",
              "feed"
            ],
            "type": "string",
            "description": "Choose what to scrape. \"posts\": an account's own posts. \"search\": public posts matching your search texts (no login). \"profile\"/\"followers\"/\"follows\": account data. \"thread\": posts and their replies. \"quotes\": posts that quote a post. \"postsByUrl\": the posts behind a list of links. \"feed\": a custom feed or a list.",
            "default": "posts"
          },
          "handles": {
            "title": "Handles, DIDs or profile URLs",
            "type": "array",
            "description": "Enter one or more Bluesky handles, DIDs or bsky.app profile URLs, e.g. bsky.app, did:plc:z72i7hdynmk6r22z27h6tvur or https://bsky.app/profile/jay.bsky.team. Used by the \"posts\", \"profile\", \"followers\" and \"follows\" modes.",
            "default": [
              "bsky.app"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search texts",
            "type": "array",
            "description": "Enter one or more texts to search for across all public posts, one per line, e.g. web scraping. Bluesky search syntax works: \"exact phrase\", from:handle, #hashtag. Used by the \"search\" mode; each text returns up to \"Max items\" posts. No login needed.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "bsky.app post links or at:// URIs. Used by \"thread\" (replies of each post), \"quotes\" (posts quoting each post) and \"postsByUrl\" (just these posts, 25 per request). Example: https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Feed or list URLs",
            "type": "array",
            "description": "For \"feed\" mode: custom feed links (https://bsky.app/profile/<handle>/feed/<name>), list links (…/lists/<id>) or their at:// URIs.",
            "items": {
              "type": "string"
            }
          },
          "postUrl": {
            "title": "Post URL",
            "type": "string",
            "description": "Older single post field, used when Post URLs is empty (thread, quotes, postsByUrl).",
            "default": "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Enter the maximum number of rows to return per handle or per search query, e.g. 100. Raise this for bulk exports; lower it to keep runs quick.",
            "default": 100
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Choose how search results are ordered: \"latest\" (newest first) or \"top\" (most engagement first). Used by the \"search\" mode only.",
            "default": "latest"
          },
          "since": {
            "title": "Since (ISO date)",
            "type": "string",
            "description": "Enter an ISO 8601 date/time to only return posts created on or after it, e.g. 2026-01-01. Leave blank for no lower bound. Used by the \"search\" mode only.",
            "default": ""
          },
          "until": {
            "title": "Until (ISO date)",
            "type": "string",
            "description": "Enter an ISO 8601 date/time to only return posts created before it, e.g. 2026-06-01. Leave blank for no upper bound. Used by the \"search\" mode only.",
            "default": ""
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Enter how many handles or queries to process in parallel, e.g. 3. Raise this for long handle lists; lower it if you see errors.",
            "default": 3
          },
          "includeAuthorStats": {
            "title": "Add author follower counts",
            "type": "boolean",
            "description": "Adds authorFollowersCount, authorFollowsCount and authorPostsCount to every post row (one extra Bluesky request per 25 authors, no extra charge). Turn off for the fastest runs.",
            "default": true
          },
          "addSentiment": {
            "title": "Add sentiment to posts",
            "type": "boolean",
            "description": "Adds sentiment (positive, neutral, negative) and sentimentScore (−1…1) to every post from a built-in English word and emoji list. Free, no AI model; it reads tone, not sarcasm.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Give the run a name, e.g. brand-watch. The Actor keeps the posts and accounts it returned per handle, search text or thread in a key-value store with this name, and marks each row with isNewSinceLastRun on later runs with the same name. Letters, digits and hyphens. Works in posts, search, followers, follows and thread modes; in profile mode every row also gets the follower / follows / post change since the previous run (followersCountChange, followersChangePercent …)."
          },
          "onlyNewItems": {
            "title": "Return and charge only new rows",
            "type": "boolean",
            "description": "With a monitor store name: after the first run, return (and charge) only posts or accounts that were not returned by an earlier run with the same name. Schedule it hourly or daily for new mentions, new posts of an account, or new followers.",
            "default": false
          },
          "language": {
            "title": "Only posts in this language",
            "type": "string",
            "description": "Search mode: keep only posts Bluesky tags with this language, two-letter code, e.g. en, de, ja. Leave blank for all languages."
          },
          "fromAuthor": {
            "title": "Only posts by this account",
            "type": "string",
            "description": "Search mode: only posts written by this handle, e.g. jay.bsky.team."
          },
          "mentions": {
            "title": "Only posts mentioning this account",
            "type": "string",
            "description": "Search mode: only posts that mention this handle, e.g. bsky.app — brand monitoring in one field."
          },
          "domain": {
            "title": "Only posts linking to this domain",
            "type": "string",
            "description": "Search mode: only posts that link to a website, e.g. nytimes.com."
          },
          "linkUrl": {
            "title": "Only posts linking to this exact URL",
            "type": "string",
            "description": "Search mode: only posts that share this exact page, e.g. https://example.com/article."
          },
          "hashtags": {
            "title": "Must have these hashtags",
            "type": "array",
            "description": "Search mode: only posts carrying all of these hashtags, with or without #, e.g. bookstodon.",
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes. Dropped posts are not charged."
          },
          "minReposts": {
            "title": "Min reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many reposts."
          },
          "minReplies": {
            "title": "Min replies",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many replies."
          },
          "onlyKeywordMatches": {
            "title": "Only posts that show the search words",
            "type": "boolean",
            "description": "Search: Bluesky also matches word stems, link targets and image alt text. On = keep only posts whose text, link card, alt text, quote or tags contain every search word (see containsKeyword).",
            "default": false
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Off = keep only original posts, no replies.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Posts mode: off = keep only the account's own posts, no reposts.",
            "default": true
          },
          "searchQuery": {
            "title": "Search query (single, older field)",
            "type": "string",
            "description": "Older single-text field, used only when \"Search texts\" is empty. Prefer \"Search texts\".",
            "default": "web scraping"
          },
          "identifier": {
            "title": "Bluesky handle or e-mail (optional)",
            "type": "string",
            "description": "Optional. Search works without a login. Give a handle or e-mail plus an app password only if you want searches to run as your own account. Never your main account password.",
            "default": ""
          },
          "appPassword": {
            "title": "App password (optional)",
            "type": "string",
            "description": "Optional app password for the account above, e.g. xxxx-xxxx-xxxx-xxxx (bsky.app -> Settings -> App Passwords). If sign-in fails, the search still runs without it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}