{
  "openapi": "3.0.1",
  "info": {
    "title": "Bluesky Brand Monitor: Mentions, Sentiment & Share of Voice",
    "description": "Every public Bluesky post mentioning your brand, competitors, hashtags or domain in the last 1 to 24 hours, each with its sentiment, and a free share-of-voice summary; only new ones on a schedule, or negative ones for alerts. Also profiles, threads with replies and quotes, feeds, people.",
    "version": "0.1",
    "x-build-id": "gqRHXhY3JBfHSCz6g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~bluesky/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-bluesky",
        "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/pikoulas~bluesky/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-bluesky",
        "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/pikoulas~bluesky/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-bluesky",
        "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 to monitor",
            "type": "array",
            "description": "Words or phrases to find in every public Bluesky post of the hours below: a brand, a product, a name or a topic. A whole-word match, any case; #tag matches that hashtag, and a domain (example.com) links to it as well. Each matching post comes with the keywords it matched.",
            "items": {
              "type": "string"
            }
          },
          "hoursBack": {
            "title": "Hours back",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How many hours of Bluesky's posts to search, up to now: 1 to 24. Each started hour searched is charged once, whatever it finds.",
            "default": 1
          },
          "onlyNewPosts": {
            "title": "Only new posts (for a schedule)",
            "type": "boolean",
            "description": "Each run searches from where the last run with the same keywords stopped (up to 24 hours back), so a scheduled run gives every new mention once. The first run searches the hours above.",
            "default": false
          },
          "postLanguages": {
            "title": "Post languages",
            "type": "array",
            "description": "Only keyword matches in these languages, as the poster's app tagged them: en, de, ja... Empty: any.",
            "items": {
              "type": "string"
            }
          },
          "sentiment": {
            "title": "Sentiment",
            "enum": [
              "any",
              "negative",
              "positive",
              "neutral"
            ],
            "type": "string",
            "description": "Only posts of this sentiment, from every source. Sentiment is read from English posts and posts without a language tag; others are unrated, so they're left out when one is chosen.",
            "default": "any"
          },
          "summary": {
            "title": "Share of voice summary",
            "type": "boolean",
            "description": "A free row after the keyword matches: each keyword's posts, share of all matches, positive, neutral and negative counts, likes, reposts, languages and top posts. Give competitors as keywords to compare.",
            "default": true
          },
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "Handles or profile URLs: bsky.app, @nytimes.com, https://bsky.app/profile/nasa.gov. Gives each profile and its posts.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Posts, as https://bsky.app/profile/<handle>/post/<id>. Gives each post, its replies and the posts that quote it.",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Custom feed URLs",
            "type": "array",
            "description": "Custom feeds, as https://bsky.app/profile/<handle>/feed/<name>. Gives the posts each one shows.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "People search",
            "type": "array",
            "description": "Finds accounts by name, handle or bio, one search each, and gives their profiles.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerSource": {
            "title": "Max posts per source",
            "minimum": 1,
            "type": "integer",
            "description": "Posts from each keyword, profile, post or feed. Empty: all of them.",
            "default": 100
          },
          "maxProfilesPerSearch": {
            "title": "Max profiles per search",
            "minimum": 1,
            "type": "integer",
            "description": "Profiles from each people search. Empty: all of them.",
            "default": 50
          },
          "includeReplies": {
            "title": "Include a profile's replies",
            "type": "boolean",
            "description": "A profile's replies to others as well as its own posts and reposts.",
            "default": false
          },
          "includeQuotes": {
            "title": "Include a post's quotes",
            "type": "boolean",
            "description": "With post URLs, the posts that quote each one as well as its replies.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}