{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Sales Triggers - Hiring Surge, Funding, Press, Exec Changes",
    "description": "B2B intent data aggregator. For a list of target companies, computes: hiring surge (LinkedIn delta), funding rounds, press mentions, executive changes, tech stack adoption, recent patent filings, customer mentions. Composite trigger score per company. For SDR teams.",
    "version": "0.1",
    "x-build-id": "KfuBidpsg9ibv6LEF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~b2b-sales-triggers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-b2b-sales-triggers",
        "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/seibs.co~b2b-sales-triggers/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-b2b-sales-triggers",
        "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/seibs.co~b2b-sales-triggers/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-b2b-sales-triggers",
        "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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Target companies",
            "type": "array",
            "description": "List of company names or root domains to evaluate. Mix freely (e.g. 'Stripe', 'openai.com', 'Anthropic'). Domains are auto-normalized; names are used for LinkedIn / news resolution.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enabled_signals": {
            "title": "Enabled signals",
            "uniqueItems": true,
            "type": "array",
            "description": "Which intent signals to compute per company. Each signal is independent and failure-tolerant. Default: all eight signals.",
            "items": {
              "type": "string",
              "enum": [
                "hiring_surge",
                "funding",
                "press_mentions",
                "exec_change",
                "tech_stack_change",
                "domain_changes",
                "patent_filings",
                "customer_mentions"
              ]
            },
            "default": [
              "hiring_surge",
              "funding",
              "press_mentions",
              "exec_change",
              "tech_stack_change",
              "domain_changes",
              "patent_filings",
              "customer_mentions"
            ]
          },
          "lookback_days": {
            "title": "Lookback window (days)",
            "minimum": 7,
            "maximum": 365,
            "type": "integer",
            "description": "Time window in days used by every signal that has a 'recent' concept (news, funding, patents, exec changes). 7 to 365. Default 90.",
            "default": 90
          },
          "min_trigger_score": {
            "title": "Minimum composite trigger score",
            "type": "string",
            "description": "Decimal 0-1 floor on composite_trigger_score. Records below this score are dropped (not emitted). Set to '0' to emit every company. Default '0.3'.",
            "default": "0.3"
          },
          "linkedin_company_url_overrides": {
            "title": "LinkedIn company URL overrides",
            "type": "array",
            "description": "Optional explicit LinkedIn company URLs (one per company, same order as 'companies') so we skip slug resolution. Example: 'https://www.linkedin.com/company/stripe/'. Leave empty to auto-resolve.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "news_keywords_must_include": {
            "title": "Press: must-include keywords",
            "type": "array",
            "description": "For the press_mentions signal: only count news articles whose title or snippet contains AT LEAST ONE of these terms. Leave empty for no inclusion filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "news_keywords_must_exclude": {
            "title": "Press: must-exclude keywords",
            "type": "array",
            "description": "For the press_mentions signal: drop news articles whose title or snippet contains ANY of these terms. Useful to filter out 'lawsuit', 'class action', etc.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Max concurrent companies",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of companies processed in parallel. Each company internally fans out to all enabled signals. 1 to 8. Default 4.",
            "default": 4
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route outbound HTTP through Apify Proxy. Strongly recommended: LinkedIn job-count fetches and Google News scrapes will be blocked from datacenter IPs.",
            "default": true
          },
          "apify_proxy_groups": {
            "title": "Apify Proxy groups",
            "type": "array",
            "description": "Apify proxy groups. RESIDENTIAL is required for LinkedIn / Google News. DATACENTER is acceptable for SEC / USPTO / RSS feeds but the actor uses one shared session, so keep RESIDENTIAL.",
            "default": [
              "RESIDENTIAL"
            ],
            "items": {
              "type": "string"
            }
          },
          "apify_proxy_country": {
            "title": "Apify Proxy country",
            "type": "string",
            "description": "Two-letter country code for the proxy session (e.g. 'US', 'GB'). Default 'US' for consistent Google News / LinkedIn behavior.",
            "default": "US"
          },
          "request_timeout_seconds": {
            "title": "Per-request HTTP timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Max seconds for any single outbound HTTP request. Signals that exceed this timeout fail gracefully and the record is still emitted with the other signals. Default 20.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}