{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts Scraper — Search, Feeds & Threads",
    "description": "Bluesky Posts Scraper searches public posts, exports author feeds and threads, and returns clean engagement data for research from $0.005 per result.",
    "version": "1.0",
    "x-build-id": "QUayv2svN37eVNXqV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~bluesky-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~bluesky-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~bluesky-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords, phrases, hashtags, URLs, or Bluesky search syntax to find in public posts. Add up to 50 queries. When all target fields are empty, the Actor runs a small 'AI' health-check search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "handles": {
            "title": "Authors or profile URLs",
            "type": "array",
            "description": "Public Bluesky handles, DIDs, or profile URLs whose feeds should be collected. Examples: 'bsky.app', '@bsky.app', or 'https://bsky.app/profile/bsky.app'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs or AT URIs",
            "type": "array",
            "description": "Public Bluesky post URLs or at:// post URIs. The root post is always returned when available; enable thread replies below to traverse public replies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum unique posts returned across the entire run, not per target. Each validated post costs $0.005; the run also has a $0.00005 start event and Apify platform usage is additional.",
            "default": 50
          },
          "sort": {
            "title": "Search sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Sort keyword-search results by newest posts or Bluesky relevance. Author feeds remain chronological.",
            "default": "latest"
          },
          "authorFeedFilter": {
            "title": "Author feed content",
            "enum": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video"
            ],
            "type": "string",
            "description": "Choose which public posts are included in author feeds. The default includes posts and replies. This setting does not change keyword-search or direct-thread results.",
            "default": "posts_with_replies"
          },
          "includeThreadReplies": {
            "title": "Include thread replies",
            "type": "boolean",
            "description": "For direct post URLs only, also return public replies below the root post. Replies count toward maxResults and the per-post event charge.",
            "default": false
          },
          "threadDepth": {
            "title": "Thread reply depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum reply levels to traverse for direct post URLs when thread replies are enabled. Zero returns only the root post.",
            "default": 2
          },
          "since": {
            "title": "Published since",
            "type": "string",
            "description": "Return search posts on or after this ISO date or datetime, for example '2026-07-01' or '2026-07-01T00:00:00Z'.",
            "default": ""
          },
          "until": {
            "title": "Published until",
            "type": "string",
            "description": "Return search posts before this ISO date or datetime. Leave empty for no upper time bound.",
            "default": ""
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code for search results, such as 'en', 'es', or 'de'. Detection depends on the language declared by each post.",
            "default": ""
          },
          "author": {
            "title": "Search by author",
            "type": "string",
            "description": "Restrict each keyword search to posts from this handle or DID. For a complete author feed, use the Authors field instead.",
            "default": ""
          },
          "mentions": {
            "title": "Mentioned account",
            "type": "string",
            "description": "Restrict search results to posts mentioning this public handle or DID.",
            "default": ""
          },
          "domain": {
            "title": "Linked domain",
            "type": "string",
            "description": "Restrict search results to posts linking to this domain, such as 'example.com'. Do not include a URL scheme.",
            "default": ""
          },
          "exactUrl": {
            "title": "Linked URL",
            "type": "string",
            "description": "Restrict search results to posts linking to this exact absolute URL.",
            "default": ""
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Restrict search results to one or more tags. Enter tags without the leading # character.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only write posts with at least this many public likes.",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Only write posts with at least this many public reposts.",
            "default": 0
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Only write posts with at least this many public replies.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}