{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Account Intent Finder",
    "description": "Find and rank companies whose employees are researching your B2B topics. Preview up to 25 companies, then $0.15 per matched account.",
    "version": "0.1",
    "x-build-id": "sxNnG5MziBOawEfso"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cag_ai-actors~b2b-account-intent-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cag_ai-actors-b2b-account-intent-finder",
        "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/cag_ai-actors~b2b-account-intent-finder/runs": {
      "post": {
        "operationId": "runs-sync-cag_ai-actors-b2b-account-intent-finder",
        "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/cag_ai-actors~b2b-account-intent-finder/run-sync": {
      "post": {
        "operationId": "run-sync-cag_ai-actors-b2b-account-intent-finder",
        "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": [
          "topicIds"
        ],
        "properties": {
          "topicIds": {
            "title": "Topics (name or ID)",
            "minItems": 1,
            "maxItems": 25,
            "uniqueItems": true,
            "type": "array",
            "description": "One to 25 Delivr B2B topics as names or IDs. Example: Marketing Automation or 4eyes_503588. Names resolve to exactly one active B2B taxonomy match (case-insensitive exact name, not the first search hit). Values starting with 4eyes_ are passed through as IDs. Results are merged to one row per company.",
            "items": {
              "type": "string"
            },
            "default": [
              "Marketing Automation"
            ]
          },
          "minScore": {
            "title": "Minimum intent strength",
            "enum": [
              "high",
              "medium"
            ],
            "type": "string",
            "description": "High returns companies with at least one high-intent person for each qualifying topic. Medium includes high and medium.",
            "default": "high"
          },
          "minTopics": {
            "title": "Minimum topics matched",
            "minimum": 1,
            "type": "integer",
            "description": "Use 1 for a union. Set this to the number of topic IDs for a strict intersection.",
            "default": 1
          },
          "minPeopleCount": {
            "title": "Minimum people showing intent",
            "minimum": 0,
            "type": "integer",
            "description": "Drop companies with fewer than this many distinct people showing intent within a topic.",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum account rows to return. Paid discovery is cursor-paginated until this limit or the end of results.",
            "default": 100
          },
          "perTopicLimit": {
            "title": "Per-topic scan depth",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How deep Delivr scans each topic before merging and ranking companies.",
            "default": 1000
          },
          "previewOnly": {
            "title": "Free preview",
            "type": "boolean",
            "description": "Return up to 25 real, top-ranked companies without Delivr billing. Preview runs do not trigger matched-account Actor events.",
            "default": true
          },
          "costPreviewOnly": {
            "title": "Exact cost count only",
            "type": "boolean",
            "description": "Return the exact billable record count without returning company rows or incurring Delivr data charges. Ignored when free preview is on.",
            "default": false
          },
          "demoMode": {
            "title": "Use clearly labeled demo data",
            "type": "boolean",
            "description": "Runs against deterministic example data. No Delivr credentials are needed and no paid result events are charged.",
            "default": false
          },
          "delivrApiKey": {
            "title": "Delivr API key (optional)",
            "type": "string",
            "description": "Optional bring-your-own key. Leave blank when this Actor is configured with a Delivr provider key."
          },
          "delivrApiSecret": {
            "title": "Delivr API secret (optional)",
            "type": "string",
            "description": "Optional bring-your-own secret. Leave blank when this Actor is configured with a Delivr provider secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}