{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper: Posts, Profiles, Threads, Trends",
    "description": "Search Bluesky posts by keyword, hashtag, author, language, date or link. Get an account's posts, profile stats, full reply threads and trending topics with likes, reposts and replies. Official public API, no login, no proxy.",
    "version": "1.0",
    "x-build-id": "2KcexCXeItYYNOVAk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/atesen-software~bluesky-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-atesen-software-bluesky-data-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/atesen-software~bluesky-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-atesen-software-bluesky-data-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/atesen-software~bluesky-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-atesen-software-bluesky-data-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": "What to collect",
            "enum": [
              "search",
              "profilePosts",
              "profiles",
              "thread",
              "trending"
            ],
            "type": "string",
            "description": "Search posts, read an account's posts, get profile stats, read the replies of a post, or list the current trending topics. Fill the fields that belong to the chosen mode.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries (mode: search)",
            "type": "array",
            "description": "Keywords, phrases or hashtags, one per line, for example web scraping, \"exact phrase\", #python. Each query is searched separately.",
            "default": [
              "web scraping"
            ],
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort (mode: search)",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Newest posts first, or the most engaged posts first.",
            "default": "latest"
          },
          "since": {
            "title": "Posted since",
            "type": "string",
            "description": "Only posts from this time on. ISO date or date-time, for example 2026-10-01 or 2026-10-01T08:00:00Z. Works in search and account-posts modes."
          },
          "until": {
            "title": "Posted until (mode: search)",
            "type": "string",
            "description": "Only posts before this time. ISO date or date-time."
          },
          "language": {
            "title": "Language (mode: search)",
            "type": "string",
            "description": "Two-letter language code of the post, for example en, de, tr, ja."
          },
          "author": {
            "title": "From account (mode: search)",
            "type": "string",
            "description": "Only posts written by this handle, for example bsky.app."
          },
          "mentions": {
            "title": "Mentioning account (mode: search)",
            "type": "string",
            "description": "Only posts that mention this handle."
          },
          "domain": {
            "title": "Links to domain (mode: search)",
            "type": "string",
            "description": "Only posts that link to this domain, for example github.com."
          },
          "linkUrl": {
            "title": "Links to URL (mode: search)",
            "type": "string",
            "description": "Only posts that link to this exact URL."
          },
          "tags": {
            "title": "Extra hashtags (mode: search)",
            "type": "array",
            "description": "Hashtags that every post must carry, without the # sign. Several tags must all match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Account handles (modes: posts of accounts, profiles)",
            "type": "array",
            "description": "Bluesky handles or profile URLs, for example bsky.app, jay.bsky.team or https://bsky.app/profile/bsky.app.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profileQueries": {
            "title": "Find profiles by name (mode: profiles)",
            "type": "array",
            "description": "Search accounts by name, handle or bio words, for example data engineer. Returns full profile stats.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "feedFilter": {
            "title": "Account feed filter (mode: posts of accounts)",
            "enum": [
              "posts_no_replies",
              "posts_with_replies",
              "posts_and_author_threads",
              "posts_with_media"
            ],
            "type": "string",
            "description": "Which of the account's posts to read.",
            "default": "posts_no_replies"
          },
          "includeReposts": {
            "title": "Include reposts (mode: posts of accounts)",
            "type": "boolean",
            "description": "Also return posts the account reposted. They are marked isRepost and repostedBy.",
            "default": false
          },
          "postUrls": {
            "title": "Post URLs (mode: thread)",
            "type": "array",
            "description": "Bluesky post links, for example https://bsky.app/profile/bsky.app/post/3k4duaz5vfs2b, or at:// URIs. The post and its replies are returned.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "threadDepth": {
            "title": "Reply depth (mode: thread)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many levels of replies to read below the post.",
            "default": 6
          },
          "includeParents": {
            "title": "Include parent posts (mode: thread)",
            "type": "boolean",
            "description": "Also return the posts the given post replies to, up to the root of the conversation.",
            "default": false
          },
          "maxItems": {
            "title": "Max results (total)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum rows for the whole run. You are charged per returned row, so this also caps your cost. Hard cap: the run never writes or charges more rows than this.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max results per query, account or thread",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound for each query, handle, search term or post URL. The total is still limited by Max results.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}