{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Posts Search Scraper - AT Protocol API, No Key",
    "description": "Search Bluesky posts and author feeds through the public AT Protocol endpoints: text, handle, timestamps, likes, reposts, replies, links and images. No login or key. dryRun prices a run before you pay; charged only for posts delivered.",
    "version": "0.1",
    "x-build-id": "hObk6otvUBYwU9Ero"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lost.fany~bluesky-posts-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lost.fany-bluesky-posts-search-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/lost.fany~bluesky-posts-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lost.fany-bluesky-posts-search-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/lost.fany~bluesky-posts-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lost.fany-bluesky-posts-search-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "author-feed"
            ],
            "type": "string",
            "description": "search: full-text search across all public Bluesky posts (app.bsky.feed.searchPosts) - needs 'queries'. author-feed: every public post of given accounts (app.bsky.feed.getAuthorFeed) - needs 'authors'. Leave empty and the Actor picks for you: 'author-feed' when you pass only authors, 'search' otherwise.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Required in 'search' mode. Words, phrases, hashtags (#apify) or domains. Each is searched separately; results are merged and deduplicated by post URI, and 'matchedQuery' tells you which one matched. Bluesky's search syntax works here too: \"exact phrase\", from:handle, domain:example.com.",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "title": "Authors",
            "type": "array",
            "description": "Required in 'author-feed' mode. Handles (bsky.app), profile URLs (https://bsky.app/profile/bsky.app) or DIDs (did:plc:...). Each account's public posts are pulled newest first.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort (search mode)",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "latest: newest posts first. top: Bluesky's own relevance/engagement ranking. Ignored in 'author-feed' mode, which is always newest first.",
            "default": "latest"
          },
          "sinceDate": {
            "title": "Since",
            "type": "string",
            "description": "Only posts created after this: 2026-10-01, today, yesterday, '24 hours', '7 days', '1 year', or a full ISO stamp. Empty = no lower bound."
          },
          "untilDate": {
            "title": "Until",
            "type": "string",
            "description": "Only posts created before this moment, same formats as 'Since'. Empty = now."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter language code the post declares, e.g. en, pt, ja, de. 'pt' also matches 'pt-BR'. Posts that declare no language are skipped when this is set. Empty = every language."
          },
          "searchAuthor": {
            "title": "Restrict search to one author",
            "type": "string",
            "description": "Search mode only: keep results from this handle or DID. Handy for \"what did this account say about X\". Leave empty to search all of Bluesky."
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Keep posts that reply to another post ('isReply' and 'parentUri' are filled in). Turn off for original posts only.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Author-feed mode only: also return posts the account reposted ('isRepost' and 'repostedBy' are filled in). Search never returns reposts.",
            "default": false
          },
          "maxItemsPerQuery": {
            "title": "Max posts per query or author",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many posts for each entry in 'queries' / 'authors'. Keeps one busy keyword from eating the whole run.",
            "default": 1000
          },
          "maxItems": {
            "title": "Max posts",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many posts in total, across all queries or authors.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The public AT Protocol hosts refuse some networks and datacenter IP ranges with HTTP 403. If a run fails with \"No public AT Protocol host accepted the request\", switch on Apify Proxy (the residential group works best) and run again.",
            "default": {
              "useApifyProxy": false
            }
          },
          "dryRun": {
            "title": "Estimate only (no charge)",
            "type": "boolean",
            "description": "Count every result and show what a full run would cost, without charging for it. Only a few sample rows are stored. Use it to check the price before you pay.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}