{
  "openapi": "3.0.1",
  "info": {
    "title": "Brand Mentions Monitor: Hacker News, Bluesky, GitHub, Lemmy",
    "description": "Find public mentions of your brand, product or keyword on Hacker News, Bluesky, Lemmy, Mastodon, GitHub issues and DEV in one run: text, link, author handle, time, likes and replies. Monitor mode returns only new mentions. No API keys. $0.40 per 1,000 mentions.",
    "version": "0.1",
    "x-build-id": "Yc3ml9HtjGM0vjpuY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor-forge~dev-community-mentions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor-forge-dev-community-mentions",
        "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/actor-forge~dev-community-mentions/runs": {
      "post": {
        "operationId": "runs-sync-actor-forge-dev-community-mentions",
        "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/actor-forge~dev-community-mentions/run-sync": {
      "post": {
        "operationId": "run-sync-actor-forge-dev-community-mentions",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Brand names, product names, libraries or phrases to find, e.g. \"supabase\", \"Next.js\" or \"vector database\". Hacker News, Bluesky, Lemmy and GitHub search full text; Mastodon and DEV have no keyless full-text search, so there the keyword is used as a hashtag/tag (\"Next.js\" → #nextjs).",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to look. Hacker News (stories and comments), Bluesky (posts), Lemmy (posts and comments on large instances), Mastodon (hashtag timelines), GitHub (issues and pull requests), DEV (articles by tag).",
            "items": {
              "type": "string",
              "enum": [
                "hackernews",
                "bluesky",
                "lemmy",
                "mastodon",
                "github",
                "devto"
              ],
              "enumTitles": [
                "Hacker News",
                "Bluesky",
                "Lemmy",
                "Mastodon",
                "GitHub issues & PRs",
                "DEV (dev.to)"
              ]
            },
            "default": [
              "hackernews",
              "bluesky",
              "lemmy",
              "mastodon",
              "github",
              "devto"
            ]
          },
          "maxResultsPerSource": {
            "title": "Max mentions per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many mentions from each source (shared fairly between keywords, newest first). Each mention is one charged row.",
            "default": 50
          },
          "sinceHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "Only mentions created in the last N hours: 24 = one day, 168 = one week, up to 8,760 (one year).",
            "default": 168
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop mentions whose title or text contains any of these words or phrases (whole words, case-insensitive), e.g. \"hiring\" or a homonym.",
            "items": {
              "type": "string"
            }
          },
          "includeComments": {
            "title": "Include comments and replies",
            "type": "boolean",
            "description": "Also return Hacker News comments, Lemmy comments and Bluesky/Mastodon replies. Off = top-level stories and posts only.",
            "default": true
          },
          "blueskySort": {
            "title": "Bluesky sort",
            "enum": [
              "latest",
              "top"
            ],
            "type": "string",
            "description": "Latest: newest posts first. Top: Bluesky's own ranking of popular posts in the time window.",
            "default": "latest"
          },
          "blueskyLanguage": {
            "title": "Bluesky language",
            "type": "string",
            "description": "Only Bluesky posts tagged with this language, as an ISO code like en, de, ja or pt. Empty = all languages."
          },
          "blueskyAuthor": {
            "title": "Bluesky author",
            "type": "string",
            "description": "Only Bluesky posts by this handle, e.g. bsky.app or yourbrand.com (useful to track your own account's posts)."
          },
          "lemmyInstances": {
            "title": "Lemmy instances",
            "type": "array",
            "description": "Lemmy servers to search (federated, so each sees most public communities; duplicates are merged). Each instance's robots.txt and Crawl-delay are respected: lemmy.world allows one request per minute, so many keywords make runs slower.",
            "default": [
              "lemmy.world",
              "lemmy.ml",
              "programming.dev",
              "sh.itjust.works"
            ],
            "items": {
              "type": "string"
            }
          },
          "mastodonInstances": {
            "title": "Mastodon instances",
            "type": "array",
            "description": "Mastodon servers whose public hashtag timelines are read (each also sees federated posts; duplicates are merged).",
            "default": [
              "mastodon.social",
              "fosstodon.org",
              "hachyderm.io"
            ],
            "items": {
              "type": "string"
            }
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "A free GitHub personal access token (no scopes needed) raises GitHub's search limit from 10 to 30 requests per minute. Without one, GitHub is searched keyless and skipped with a note if its shared limit is hit."
          },
          "newSinceLastRun": {
            "title": "Only new since last run (monitor mode)",
            "type": "boolean",
            "description": "For scheduled runs: skip mentions already delivered by an earlier run with the same keywords and sources, so you only get (and pay for) new ones. Only hashed IDs are kept, in a key-value store named dev-community-mentions-state in your account.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}