{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Public Posts Scraper - Feeds & Threads",
    "description": "Extract public Bluesky author posts and supplied threads with links, reply relationships and engagement metrics. Optional saved-observation change tracking. No login or API key.",
    "version": "1.0",
    "x-build-id": "m5U2PtJWIGyrQY7pp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maydit~bluesky-public-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maydit-bluesky-public-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/maydit~bluesky-public-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maydit-bluesky-public-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/maydit~bluesky-public-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maydit-bluesky-public-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": {
          "authors": {
            "title": "Public authors",
            "type": "array",
            "description": "Up to 20 explicit public handles, DIDs or https://bsky.app/profile/<identity> URLs. Each entry can also be {\"value\":\"bsky.app\",\"externalId\":\"crm-123\"}. Empty with no postUrls uses bsky.app. No follower discovery or keyword search.",
            "default": []
          },
          "postUrls": {
            "title": "Public post URLs or AT-URIs",
            "type": "array",
            "description": "Up to 50 supplied https://bsky.app/profile/<identity>/post/<record> URLs or at://<identity>/app.bsky.feed.post/<record> references. Objects {value,externalId} are accepted. Authors are processed first, so leave authors empty for post-only runs.",
            "default": []
          },
          "maxPosts": {
            "title": "Maximum saved root posts",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Global unique root-post selection limit. Feed rows and supplied threads share this limit; author inputs are processed first. Context posts within a row do not add billable rows.",
            "default": 3
          },
          "includeReplies": {
            "title": "Include authors’ reply posts",
            "type": "boolean",
            "description": "Include reply posts as root observations in author feeds. Supplied post URLs are always eligible even if they are replies.",
            "default": false
          },
          "includeReposts": {
            "title": "Include reposted posts",
            "type": "boolean",
            "description": "Include third-party posts reposted by a supplied author. requestedBy marks repost provenance. A post selected more than once is saved once with source attribution.",
            "default": false
          },
          "maxPostsPerAuthor": {
            "title": "Posts per author",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum accepted observations per supplied author within maxPosts. This is a bounded recent feed, not all historical posts.",
            "default": 25
          },
          "maxPagesPerAuthor": {
            "title": "Feed pages per author",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Stop after this many API pages per author even when repost/reply filtering yields fewer posts. Pagination caps are recorded in SUMMARY.",
            "default": 3
          },
          "includeThread": {
            "title": "Include thread context",
            "type": "boolean",
            "description": "Fetch a bounded public view of parent and reply posts for each root. Hidden, deleted or blocked replies may be absent. An unavailable context fetch leaves a valid feed observation marked incomplete.",
            "default": true
          },
          "threadDepth": {
            "title": "Reply depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Requested public API reply depth. 0 excludes reply context. This does not guarantee that every reply at the chosen depth is visible.",
            "default": 1
          },
          "parentHeight": {
            "title": "Parent context levels",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Requested maximum number of ancestor levels. Context output also shares maxContextPosts.",
            "default": 1
          },
          "maxContextPosts": {
            "title": "Context posts per result",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum visible parent/reply posts retained inside each root row. Intentional truncation is reported. These are context entries, not separate paid results.",
            "default": 10
          },
          "comparePrevious": {
            "title": "Compare previous saved observations",
            "type": "boolean",
            "description": "Compare root content hashes and engagement metrics with a named baseline. First observations are labeled first_observation and have no deltas. Unchanged posts are still output and billed. Only saved, complete observations update history. Missing posts/replies never mean deletion.",
            "default": false
          },
          "baselineKey": {
            "title": "Baseline namespace",
            "type": "string",
            "description": "1–80 letters, digits, hyphens or underscores within maydit-bluesky-post-observations-v1. Use one writer per namespace. Snapshots retain URI, content hash, metrics and observation time, not post text.",
            "default": "default"
          },
          "maxRunSeconds": {
            "title": "Run time budget (seconds)",
            "minimum": 30,
            "maximum": 900,
            "type": "integer",
            "description": "Own deadline in seconds, additionally shortened to 25 seconds before the platform deadline. Partial runs identify failed/unfinished work in SUMMARY.",
            "default": 240
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}