{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Scraper & Keyword Monitor: Posts, Mentions & Stream",
    "description": "Track mentions of your brand, product, competitors, hashtags or any keyword on Bluesky: posts with likes, reposts, replies, links, hashtags and author handle. Search with your own app password or listen to the live stream with no login. Only new posts per run, webhook alerts.",
    "version": "0.1",
    "x-build-id": "st93Nx9HfdfiGQ2sq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latamdatatools~bluesky-keyword-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latamdatatools-bluesky-keyword-monitor",
        "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/latamdatatools~bluesky-keyword-monitor/runs": {
      "post": {
        "operationId": "runs-sync-latamdatatools-bluesky-keyword-monitor",
        "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/latamdatatools~bluesky-keyword-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-latamdatatools-bluesky-keyword-monitor",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Brands, products, competitors, hashtags (#tag), domains... One per line. Phrases with spaces are matched as exact phrases.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "live"
            ],
            "type": "string",
            "description": "Search = Bluesky's search over the last days (needs YOUR handle + app password, Bluesky requires login for search). Live = listen to all new posts for a few minutes, no login needed; with \"only new\" each run also catches up on the posts published since the previous run. Auto = search if you add a login, otherwise live.",
            "default": "auto"
          },
          "identifier": {
            "title": "Your Bluesky handle (search mode)",
            "type": "string",
            "description": "e.g. yourname.bsky.social. Used only to log in to Bluesky's search API."
          },
          "appPassword": {
            "title": "Your app password",
            "type": "string",
            "description": "Create one in Bluesky: Settings > Privacy and security > App passwords. Never use your main password. Stored encrypted by Apify, never logged or saved in the results."
          },
          "pdsUrl": {
            "title": "PDS URL",
            "type": "string",
            "description": "Only change it if your account is on a self-hosted PDS.",
            "default": "https://bsky.social"
          },
          "daysBack": {
            "title": "Days back (search mode)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Search window. With \"only new\", later runs start from the last post seen (never before this window).",
            "default": 3
          },
          "listenSeconds": {
            "title": "Listen time (live mode, seconds)",
            "minimum": 10,
            "maximum": 900,
            "type": "integer",
            "description": "How long to listen to new posts after catching up.",
            "default": 60
          },
          "maxCatchUpMinutes": {
            "title": "Max catch-up (live mode, minutes)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "With \"only new\", a scheduled run first replays the posts published since the previous run, up to this many minutes back (0 = no catch-up). Schedule the Actor at least this often to miss nothing.",
            "default": 30
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Optional ISO codes (en, es, pt, de, ja...). Empty = all languages.",
            "items": {
              "type": "string"
            }
          },
          "strictMatch": {
            "title": "Exact word match",
            "type": "boolean",
            "description": "Keep only posts where the keyword appears as a whole word or phrase (text, links, link card title or image alt text).",
            "default": true
          },
          "excludeReplies": {
            "title": "Exclude replies",
            "type": "boolean",
            "description": "Only top-level posts.",
            "default": false
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Search mode mostly: in live mode posts are brand new and have few likes.",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore posts with fewer reposts.",
            "default": 0
          },
          "excludeAuthors": {
            "title": "Exclude authors",
            "type": "array",
            "description": "Handles (or DIDs) to ignore, e.g. your own team.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Remember the posts already delivered (per alert name) and return only new ones. Perfect for scheduled alerts.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory per name, so different schedules do not mix.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "POST the new posts as JSON to this URL at the end of the run (Slack/Zapier/Make/n8n catch hooks). Only called when there is at least one post."
          },
          "maxPostsPerKeyword": {
            "title": "Max posts per keyword (search mode)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of matching posts read per keyword.",
            "default": 500
          },
          "maxPosts": {
            "title": "Max posts per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Your max charge per run is respected too.",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}