{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper: Posts, Search, Profiles, Followers",
    "description": "Scrape Bluesky with its official public API, no login: search posts by keyword, hashtag, author or date, get any profile's posts, profiles, followers and follows, replies to a post, likers and reposters. Clean rows with links, hashtags, images and counts.",
    "version": "0.0",
    "x-build-id": "gjFoATAoD9rgzHcvL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/charlesmarkette~bluesky-scraper-posts-search-profiles-followers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-charlesmarkette-bluesky-scraper-posts-search-profiles-followers",
        "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/charlesmarkette~bluesky-scraper-posts-search-profiles-followers/runs": {
      "post": {
        "operationId": "runs-sync-charlesmarkette-bluesky-scraper-posts-search-profiles-followers",
        "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/charlesmarkette~bluesky-scraper-posts-search-profiles-followers/run-sync": {
      "post": {
        "operationId": "run-sync-charlesmarkette-bluesky-scraper-posts-search-profiles-followers",
        "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": "What to scrape",
            "enum": [
              "search",
              "profilePosts",
              "profiles",
              "followers",
              "follows",
              "postReplies",
              "postLikers",
              "postReposters"
            ],
            "type": "string",
            "description": "Search posts: posts matching your search terms. Posts from profiles: the posts (and reposts) of each profile. Profiles: profile details with follower, following and post counts. Followers / Following: the accounts that follow each profile, or that it follows. Replies to posts: the reply thread under each post. Who liked / Who reposted: the accounts that liked or reposted each post.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "For Search posts. One search per line. Bluesky's search syntax works: \"exact phrase\", #hashtag, from:handle, mentions:handle, domain:example.com, lang:en, since:2026-10-01.",
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Profiles",
            "type": "array",
            "description": "For Posts from profiles, Profiles, Followers and Following. One per line: a handle (alice.bsky.social or @alice.bsky.social), a DID (did:plc:...) or a profile link (https://bsky.app/profile/alice.bsky.social). A name without a dot, like alice, is read as alice.bsky.social.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post links",
            "type": "array",
            "description": "For Replies to posts, Who liked and Who reposted. One per line: a post link (https://bsky.app/profile/alice.bsky.social/post/3l6abcxyz2k2a) or an at:// post URI.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerQuery": {
            "title": "Max items per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows to output for each search term, profile or post (posts, followers, replies...). Not used in Profiles mode, which gives one row per profile.",
            "default": 100
          },
          "maxResults": {
            "title": "Max output rows",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the total number of output rows in this run."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Search posts only. Latest: newest first. Top: Bluesky's ranking of popular posts.",
            "default": "latest"
          },
          "since": {
            "title": "Posted after",
            "type": "string",
            "description": "Optional, for Search posts and Posts from profiles. Only posts from this time on: a date like 2026-10-01 (UTC midnight), a time like 2026-10-01T08:00:00Z, or a period back from now like '24 hours', '7 days' or '2 weeks'. For profiles, reposts count from the time they were reposted."
          },
          "until": {
            "title": "Posted before",
            "type": "string",
            "description": "Optional, same formats as 'Posted after'. Only posts from before this time."
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Search posts only, optional. A language code such as en, ja, de or pt. Bluesky matches the language the author's app tagged the post with."
          },
          "searchAuthor": {
            "title": "From author",
            "type": "string",
            "description": "Search posts only, optional. Only posts by this account (handle, DID or profile link)."
          },
          "searchMentions": {
            "title": "Mentioning",
            "type": "string",
            "description": "Search posts only, optional. Only posts that mention this account."
          },
          "searchDomain": {
            "title": "Linking to domain",
            "type": "string",
            "description": "Search posts only, optional. Only posts that link to this domain, for example nytimes.com."
          },
          "searchTags": {
            "title": "With hashtags",
            "type": "array",
            "description": "Search posts only, optional. Only posts with all of these hashtags (without the #).",
            "items": {
              "type": "string"
            }
          },
          "authorFeedFilter": {
            "title": "Which posts",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Posts from profiles only. Which of the profile's posts to list.",
            "default": "posts_with_replies"
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Posts from profiles only. On: reposts appear too (isRepost: true, with the original author). Off: only the profile's own posts.",
            "default": true
          },
          "replyDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Replies to posts only. How many levels of replies to follow: 1 = direct replies only, 6 = replies to replies, and so on (up to 1000).",
            "default": 6
          },
          "includeRootPost": {
            "title": "Include the post itself",
            "type": "boolean",
            "description": "Replies to posts only. Also output the post the replies are under (threadDepth 0).",
            "default": false
          },
          "fullProfiles": {
            "title": "Add follower and post counts",
            "type": "boolean",
            "description": "Followers, Following, Who liked and Who reposted only. Bluesky lists these accounts without their counts and banner; this looks each one up to fill followersCount, followsCount, postsCount and banner. Uses more requests (one per 25 accounts), so it is a little slower; the price per row is the same.",
            "default": false
          },
          "datasetId": {
            "title": "Dataset to read inputs from",
            "type": "string",
            "description": "Optional. A dataset from another run (for example a list of handles, or posts from this Actor). For each item, the first field below that has a value is used as the search term, profile or post link for the chosen mode. Use {{resource.defaultDatasetId}} in an integration."
          },
          "datasetFields": {
            "title": "Dataset fields",
            "type": "array",
            "description": "Item fields to read, in order of preference; dotted paths work (author.handle). Defaults: for profiles handle, authorHandle, did, authorDid, profileUrl, url; for posts url, postUrl, uri; for searches query, searchQuery, keyword, term.",
            "items": {
              "type": "string"
            }
          },
          "keepItemFields": {
            "title": "Keep the item's original fields",
            "type": "boolean",
            "description": "Profiles mode only: each output row is the dataset item plus the profile columns. Off: only the profile columns.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}