{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Trends Breakout Radar: GitHub, npm & HN Signals",
    "description": "Brand or package names in; one breakout score out from Google Trends, autocomplete, GitHub, npm, PyPI, HN and Reddit, with momentum. From $0.02 per entity.",
    "version": "1.0",
    "x-build-id": "Mr2lirndCgxl2rBjX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apricot_blackberry~launch-signal-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apricot_blackberry-launch-signal-radar",
        "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/apricot_blackberry~launch-signal-radar/runs": {
      "post": {
        "operationId": "runs-sync-apricot_blackberry-launch-signal-radar",
        "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/apricot_blackberry~launch-signal-radar/run-sync": {
      "post": {
        "operationId": "run-sync-apricot_blackberry-launch-signal-radar",
        "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": {
          "names": {
            "title": "Names",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Brand, tool or package names to score, one per line (1 to 100). This is the only field you need. Names without hints run the name-based signals only (Google Trends, Google autocomplete, Hacker News, Reddit) and confidence is reduced by 20%. Example: Cursor.",
            "items": {
              "type": "string"
            }
          },
          "entities": {
            "title": "Entities with hints",
            "maxItems": 100,
            "type": "array",
            "description": "Optional richer form of names, as a JSON array (up to 100). Each object has a required \"name\" plus optional hints: \"githubRepo\" (GitHub owner/repo), \"npm\" (npm package name, scoped @scope/pkg is fine), \"pypi\" (PyPI project name) and \"keywords\" (up to 5 search terms; the first is used for Google Trends). Hints switch on the GitHub, npm and PyPI signals. Example: [{\"name\": \"Bun\", \"githubRepo\": \"oven-sh/bun\", \"npm\": \"bun\"}].",
            "default": []
          },
          "geo": {
            "title": "Google Trends region",
            "type": "string",
            "description": "Two-letter country code for the Google Trends region, such as US, GB or DE. Use an empty string for worldwide. Example: US.",
            "default": "US"
          },
          "signals": {
            "title": "Signals to use",
            "type": "array",
            "description": "Which signal families to run; leave as is for all seven. Allowed: trends (Google Trends), autocomplete, github, npm, pypi, hn (Hacker News), reddit. GitHub, npm and PyPI also need the matching hint in entities. Example: [\"autocomplete\", \"github\", \"npm\", \"hn\"].",
            "items": {
              "type": "string",
              "enum": [
                "trends",
                "autocomplete",
                "github",
                "npm",
                "pypi",
                "hn",
                "reddit"
              ],
              "enumTitles": [
                "Google Trends (best-effort)",
                "Google autocomplete modifiers",
                "GitHub stars",
                "npm downloads",
                "PyPI downloads",
                "Hacker News",
                "Reddit"
              ]
            },
            "default": [
              "trends",
              "autocomplete",
              "github",
              "npm",
              "pypi",
              "hn",
              "reddit"
            ]
          },
          "breakoutThreshold": {
            "title": "Breakout threshold",
            "minimum": 50,
            "maximum": 100,
            "type": "integer",
            "description": "Score from 50 to 100 at which an entity counts as a breakout. A breakout also needs at least two signal families at least 2 standard deviations above their own baseline. Example: 75.",
            "default": 75
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "snapshot",
              "monitor"
            ],
            "type": "string",
            "description": "snapshot scores once and stores nothing. monitor saves each entity's score and GitHub star count between runs, uses them for star velocity, and charges a breakout-alert event when an entity flips from not-breakout to breakout. The first monitor run only stores a baseline. Example: monitor.",
            "default": "snapshot"
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Name of the key-value store that keeps monitor-mode baselines. Letters, digits and dashes only. Ignored in snapshot mode. Example: launch-signal-radar-state.",
            "default": "launch-signal-radar-state"
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional GitHub personal access token (plain text, starts with ghp_ or github_pat_). Raises the GitHub limit from 60 to 5,000 requests per hour. It is sent only to api.github.com and is never logged or saved to the output. Example: ghp_xxxxxxxxxxxxxxxxxxxx."
          },
          "trendsProxyGroup": {
            "title": "Google Trends proxy",
            "enum": [
              "RESIDENTIAL",
              "DATACENTER"
            ],
            "type": "string",
            "description": "Apify Proxy group used only for Google Trends: RESIDENTIAL or DATACENTER. RESIDENTIAL sticky sessions are far more reliable; DATACENTER is cheaper but is usually rate-limited by Google. If Trends fails, the score is still computed from the other signals. Example: RESIDENTIAL.",
            "default": "RESIDENTIAL"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}