{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts & Profile Scraper",
    "description": "Export Bluesky posts by keyword search or from any profile, custom feed, list or post thread: text, likes, reposts, replies, quotes, hashtags, links, images and quoted posts, plus free profile rows with follower counts. No login. $0.90 per 1,000 posts, down to $0.48 on paid plans.",
    "version": "0.1",
    "x-build-id": "xzkBH765oROcZJpOr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidyharvest~bluesky-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidyharvest-bluesky-posts-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/tidyharvest~bluesky-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tidyharvest-bluesky-posts-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/tidyharvest~bluesky-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tidyharvest-bluesky-posts-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": {
          "targets": {
            "title": "Handles, profile, post, feed or list links",
            "type": "array",
            "description": "One per line. Accepted: a handle (`bsky.app`, `@jay.bsky.team`, or `name` for name.bsky.social), a DID, a profile link (`https://bsky.app/profile/bsky.app`), a post link (returns the post plus its reply thread), a custom feed link (`https://bsky.app/profile/bsky.app/feed/whats-hot`) or a list link (`https://bsky.app/profile/<handle>/lists/<id>`). at:// URIs work too. For keyword search use the field below.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search posts by keyword",
            "type": "array",
            "description": "Bluesky post search, one query per line: words, \"exact phrase\", #hashtag, or operators like from:nytimes.com, mentions:bsky.app, domain:github.com, lang:en. Returns the newest (or top) 100 posts per query.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Order for keyword searches.",
            "default": "latest"
          },
          "searchLanguage": {
            "title": "Search language",
            "type": "string",
            "description": "Optional two-letter language code for keyword searches, e.g. en, ja, de, pt."
          },
          "maxPostsPerTarget": {
            "title": "Max posts per target",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum posts returned for each handle, feed, list or thread.",
            "default": 30
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Skip posts created before this date. Use a date (`2026-10-01`) or a relative period (`7 days`, `12 hours`, `2 weeks`). Profile timelines stop paging once they pass this date, which keeps runs fast."
          },
          "includeReplies": {
            "title": "Include replies (profiles)",
            "type": "boolean",
            "description": "For handles/profiles: also return the account's replies to other posts. Off = only top-level posts and threads they started.",
            "default": false
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Also return posts the account reposted (marked `isRepost: true`, `repostedBy`).",
            "default": false
          },
          "includeProfiles": {
            "title": "Include profile rows (free)",
            "type": "boolean",
            "description": "Add one `type: profile` row per handle with followers, follows, post count, bio and avatar. Profile rows are not charged.",
            "default": true
          },
          "includeAuthorStats": {
            "title": "Add author follower counts to every post",
            "type": "boolean",
            "description": "Look up follower/follow/post counts for each post's author (useful for feeds, lists and threads with many authors). One extra request per 25 new authors.",
            "default": false
          },
          "threadDepth": {
            "title": "Reply depth for post links",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "For post links: how many levels of replies to include.",
            "default": 6
          },
          "keywords": {
            "title": "Keep posts containing (match any)",
            "type": "array",
            "description": "Optional filter on the fetched posts: keep a post only if its text or hashtags contain one of these words. You are charged only for posts that match. Empty = keep all.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on posts for the whole run (also caps your cost). 0 or empty = no limit beyond the per-target cap."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}