{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Brand Monitor — Mentions, Keywords & Hashtags",
    "description": "Monitor Bluesky (bsky.app) for brand mentions, keywords, and hashtags. Deduped mention feed, delta mode for schedules, and engagement spike alerts. Handles/threads need no login; search needs a free app password. JSON for social listening and AI agents.",
    "version": "1.0",
    "x-build-id": "TJqQeRbH6TDzmi0g1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vamsi-krishna~bluesky-brand-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vamsi-krishna-bluesky-brand-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/vamsi-krishna~bluesky-brand-monitor/runs": {
      "post": {
        "operationId": "runs-sync-vamsi-krishna-bluesky-brand-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/vamsi-krishna~bluesky-brand-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-vamsi-krishna-bluesky-brand-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": {
          "handles": {
            "title": "Handles to monitor",
            "type": "array",
            "description": "Bluesky handles to fetch recent posts from (no login required). Example: ['bsky.app', 'jay.bsky.team']",
            "default": [
              "bsky.app"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword search queries",
            "type": "array",
            "description": "Search public Bluesky posts by keyword. Requires Bluesky app password below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Search posts by hashtag (requires Bluesky app password). Do not include the # symbol.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Bluesky post URLs to fetch with reply threads.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "authorFilter": {
            "title": "Author filter (search)",
            "type": "string",
            "description": "Limit keyword/hashtag search to posts from this handle.",
            "default": ""
          },
          "domainFilter": {
            "title": "Domain filter (search)",
            "type": "string",
            "description": "Limit search to posts linking to this domain (e.g. apify.com).",
            "default": ""
          },
          "mentionsFilter": {
            "title": "Mentions filter (search)",
            "type": "string",
            "description": "Limit search to posts mentioning this handle.",
            "default": ""
          },
          "since": {
            "title": "Since date",
            "type": "string",
            "description": "Only include posts on or after this date (ISO date YYYY-MM-DD or full datetime). Applies to search.",
            "default": ""
          },
          "until": {
            "title": "Until date",
            "type": "string",
            "description": "Only include posts before this date (ISO date YYYY-MM-DD or full datetime). Applies to search.",
            "default": ""
          },
          "sort": {
            "title": "Search sort order",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Sort order for keyword/hashtag search results.",
            "default": "latest"
          },
          "language": {
            "title": "Language filter",
            "type": "string",
            "description": "ISO 639-1 language code to filter search results (e.g. en, es).",
            "default": ""
          },
          "maxResults": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum posts to collect per search query, handle, or hashtag.",
            "default": 50
          },
          "maxTotalResults": {
            "title": "Max total results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Global cap on posts collected across all sources in one run.",
            "default": 5000
          },
          "profileEnrichmentConcurrency": {
            "title": "Profile enrichment concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of parallel profile fetches when enriching author stats.",
            "default": 8
          },
          "requestPacingMs": {
            "title": "Request pacing (ms)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Delay between API requests to reduce rate-limit errors.",
            "default": 75
          },
          "includeReplies": {
            "title": "Include replies in handle feeds",
            "type": "boolean",
            "description": "When monitoring handles, include reply posts (not just top-level posts).",
            "default": false
          },
          "includeThreadReplies": {
            "title": "Include thread replies",
            "type": "boolean",
            "description": "When fetching post URLs, include nested reply threads.",
            "default": true
          },
          "includeProfiles": {
            "title": "Save author profiles",
            "type": "boolean",
            "description": "Fetch and store full author profiles for monitored handles and unique post authors.",
            "default": true
          },
          "enrichAuthorProfiles": {
            "title": "Enrich author stats on posts",
            "type": "boolean",
            "description": "Attach follower counts and bio to each post by fetching author profiles.",
            "default": true
          },
          "onlyNewPosts": {
            "title": "Only new posts (delta mode)",
            "type": "boolean",
            "description": "For scheduled brand monitoring: only return posts not seen in previous runs. Stores seen post IDs in the key-value store.",
            "default": false
          },
          "topPostsLimit": {
            "title": "Top posts in alert summary",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many highest-engagement posts to include in the run summary for alerts.",
            "default": 5
          },
          "spikeThreshold": {
            "title": "Spike threshold",
            "minimum": 1,
            "maximum": 10,
            "type": "number",
            "description": "Flag isSpike when post count or average engagement is at least this multiple of the previous run (e.g. 1.5 = 50% increase).",
            "default": 1.5
          },
          "blueskyHandle": {
            "title": "Bluesky handle (for search)",
            "type": "string",
            "description": "Your Bluesky handle (e.g. yourname.bsky.social). Required for keyword/hashtag search.",
            "default": ""
          },
          "blueskyAppPassword": {
            "title": "Bluesky app password (for search)",
            "type": "string",
            "description": "App password from Bluesky Settings → App Passwords. Required for keyword/hashtag search."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}