{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts Scraper · Keywords, Hashtags, Only New Posts",
    "description": "Bluesky posts scraper for keyword and hashtag search, profiles and reply threads. Pages search results back in time instead of stopping at ~100, and an only-new-posts mode for scheduled monitoring so you never pay twice for the same post. Exact like, repost, reply and quote counts. No login.",
    "version": "0.1",
    "x-build-id": "b07TrTIVYH32Ykxr1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thequietstack~bluesky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thequietstack-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/thequietstack~bluesky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thequietstack-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/thequietstack~bluesky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thequietstack-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": {
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords or phrases. Bluesky search syntax works too (\"exact phrase\", from:, lang:). Each keyword is paged back in time until your date or post limit.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "With or without #. Each hashtag is its own search.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles (handle, DID or URL)",
            "type": "array",
            "description": "Get an account's posts: bsky.app, @jay.bsky.team, did:plc:..., or https://bsky.app/profile/<handle>.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (post + reply thread)",
            "type": "array",
            "description": "https://bsky.app/profile/<handle>/post/<id> or at:// URIs. Returns the post and every reply Bluesky's thread API returns, with reply depth.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest is required for more than ~100 posts per keyword: logged-out Bluesky search serves Top as a single page.",
            "default": "latest"
          },
          "sinceDate": {
            "title": "Posts from (date)",
            "type": "string",
            "description": "YYYY-MM-DD or ISO date-time. Applies to every source (also thread replies and quotes). Paging stops once posts are older."
          },
          "untilDate": {
            "title": "Posts before (date)",
            "type": "string",
            "description": "Optional upper bound, exclusive."
          },
          "language": {
            "title": "Language (search)",
            "type": "string",
            "description": "Two-letter code, e.g. en, de, ja."
          },
          "fromAuthor": {
            "title": "Only from this author (search)",
            "type": "string",
            "description": "Handle or DID."
          },
          "mentions": {
            "title": "Only posts mentioning (search)",
            "type": "string",
            "description": "Handle or DID. Useful for brand monitoring."
          },
          "domain": {
            "title": "Only posts linking to domain (search)",
            "type": "string",
            "description": "e.g. nytimes.com"
          },
          "profileFilter": {
            "title": "Which posts from profiles",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Bluesky's own author-feed filter.",
            "default": "posts_with_replies"
          },
          "includeReposts": {
            "title": "Include reposts on profiles",
            "type": "boolean",
            "description": "Reposted posts of other accounts, with a repostedBy field.",
            "default": false
          },
          "includeQuotes": {
            "title": "Also get quote posts (post URLs)",
            "type": "boolean",
            "description": "For every post URL, also return all posts that quote it.",
            "default": false
          },
          "excludeReplies": {
            "title": "Skip replies",
            "type": "boolean",
            "description": "Drop posts that are replies (search and profiles). Skipped posts are not charged.",
            "default": false
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes. Skipped posts are not charged."
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many reposts. Skipped posts are not charged."
          },
          "onlyNewPosts": {
            "title": "Only new posts since the last run",
            "type": "boolean",
            "description": "For scheduled monitoring: remembers the newest post per keyword/hashtag/profile/thread in a named key-value store and returns only posts newer than that on the next run. You are not charged again for posts you already have.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store for the only-new-posts memory. Use a different name per monitoring task to keep them separate.",
            "default": "bluesky-scraper-state"
          },
          "maxPostsPerSource": {
            "title": "Max posts per keyword / profile / post",
            "minimum": 1,
            "type": "integer",
            "description": "Stop each source after this many posts.",
            "default": 1000
          },
          "maxPosts": {
            "title": "Hard limit: total posts in this run",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops cleanly at this number. You are never charged for more posts than this.",
            "default": 5000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Required for keyword/hashtag search: Bluesky refuses logged-out search from bare cloud IPs. Every search page goes out on a fresh session. Profiles and threads do not use the proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}