{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Public Posts: Search, Feeds & Threads",
    "description": "Export bulk recent Bluesky keyword mentions, public account watchlists and direct post reply context: redacted text, timestamps, links and engagement. Cursor-paged feeds, bounded date-window search, no login. $0.40/1k posts. Unofficial.",
    "version": "0.1",
    "x-build-id": "AsmfB8p2RCa57O4uo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~bluesky-public-posts-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-bluesky-public-posts-search",
        "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/jpmarketdata~bluesky-public-posts-search/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-bluesky-public-posts-search",
        "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/jpmarketdata~bluesky-public-posts-search/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-bluesky-public-posts-search",
        "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": {
          "queries": {
            "title": "Keyword queries",
            "maxItems": 5,
            "type": "array",
            "description": "One to five ordinary keyword or hashtag queries. Search is a bounded sample of the Bluesky search index, not an exhaustive archive. Combined queries, handles and direct post URLs may contain at most five sources.",
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Public account watchlist",
            "maxItems": 5,
            "type": "array",
            "description": "Optional public handles for cursor-paged authored feeds; excludes profile, follower and member data.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Direct public post URLs",
            "maxItems": 5,
            "type": "array",
            "description": "Optional bsky.app/profile/HANDLE/post/RECORD URLs. Direct post roots are returned with optional source-visible reply context.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerSource": {
            "title": "Posts per source",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum unique posts per query or handle, 1–200; direct roots are always included within the global cap. Date paging retrieves older latest search windows because anonymous cursor search was blocked in current probes.",
            "default": 100
          },
          "maxItems": {
            "title": "Total posts",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Global cap on distinct charged post rows, including replies. Duplicate source matches are emitted once.",
            "default": 500
          },
          "sort": {
            "title": "Search order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "latest walks older source sortAt date windows and preserves rank within each window; source order is not promised monotonic. Unseen posts sharing an oldest timestamp boundary may be omitted. top is one ranked snapshot, maximum 100 roots/query. Handle feeds retain source order.",
            "default": "latest"
          },
          "lang": {
            "title": "Search language",
            "type": "string",
            "description": "Optional source language code, for example en. Not a nationality or residence filter."
          },
          "since": {
            "title": "Since UTC",
            "type": "string",
            "description": "Optional ISO8601 UTC inclusive lower bound on derived sortAt: the earlier of createdAt and indexedAt after UTC millisecond normalization. The same date basis applies to search, authored feeds and direct context; createdAt output is retained separately."
          },
          "until": {
            "title": "Until UTC",
            "type": "string",
            "description": "Optional ISO8601 UTC exclusive upper bound on the same derived sortAt basis as since; must follow since. This is not a separate createdAt filter. Search timestamp ties and source index limits prevent exhaustive date-window coverage."
          },
          "includeReplies": {
            "title": "Reply context for direct posts",
            "type": "boolean",
            "description": "If true, direct post inputs return the source-visible reply tree to threadDepth. This is bounded context, not all historical comments. Search and handle matches do not each trigger a thread request.",
            "default": false
          },
          "threadDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Depth for source-visible direct-post reply context, 1–3. Blocks, deleted posts and hidden replies may be absent.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}