{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Engagement Leads: Commenters, Reactors & Emails",
    "description": "Turn a topic, a list of LinkedIn profiles or a set of posts into one ranked lead list: everyone who commented or reacted, deduplicated, with the posts and searches that surfaced them and optional verified work emails. One run, one budget.",
    "version": "1.0",
    "x-build-id": "0i4yAKAQHJO6hzLbF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/capable_cauldron~linkedin-engagement-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-capable_cauldron-linkedin-engagement-leads",
        "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/capable_cauldron~linkedin-engagement-leads/runs": {
      "post": {
        "operationId": "runs-sync-capable_cauldron-linkedin-engagement-leads",
        "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/capable_cauldron~linkedin-engagement-leads/run-sync": {
      "post": {
        "operationId": "run-sync-capable_cauldron-linkedin-engagement-leads",
        "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": [
          "useCase"
        ],
        "properties": {
          "useCase": {
            "title": "Use case",
            "enum": [
              "topic",
              "profiles",
              "posts"
            ],
            "type": "string",
            "description": "Where the leads come from.\n- Topic: search LinkedIn posts for your phrases, then collect everyone who engaged.\n- Profiles: take recent original posts from the profiles you list (competitors, creators, your own team), then collect everyone who engaged.\n- Posts: collect everyone who engaged with the exact posts you paste.\n\nOnly the matching field below is used.",
            "default": "topic"
          },
          "searchQueries": {
            "title": "Search phrases (Topic)",
            "type": "array",
            "description": "Phrases to search LinkedIn posts for, like \"revenue operations\" or \"AI SDR\". Up to 10. Used when the use case is Topic.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profile URLs (Profiles)",
            "type": "array",
            "description": "LinkedIn person profiles (linkedin.com/in/username) or bare usernames. Up to 10. Company pages are not supported. Used when the use case is Profiles.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (Posts)",
            "type": "array",
            "description": "LinkedIn post links from the post's 'Copy link' menu, or feed/update URLs. Up to 10. Used when the use case is Posts.",
            "items": {
              "type": "string"
            }
          },
          "postedWithin": {
            "title": "Posts from the last",
            "enum": [
              "any",
              "24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Only mine posts published in this window. Applies to Topic and Profiles.",
            "default": "month"
          },
          "maxPosts": {
            "title": "Max posts to mine",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many posts to collect engagement from, across all phrases or profiles. Posts with no comments or reactions are skipped.",
            "default": 10
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most relevant comments first. Replies count toward this limit when included.",
            "default": 50
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Count people who replied inside comment threads.",
            "default": true
          },
          "includeReactions": {
            "title": "Include reactions",
            "type": "boolean",
            "description": "Count people who liked or reacted, not only commenters.",
            "default": true
          },
          "maxReactionsPerPost": {
            "title": "Max reactions per post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper bound on reactions read per post when reactions are included.",
            "default": 50
          },
          "excludePostAuthors": {
            "title": "Leave out post authors",
            "type": "boolean",
            "description": "Do not list the author of a post as a lead for engaging with their own post.",
            "default": true
          },
          "findEmails": {
            "title": "Find verified work emails",
            "type": "boolean",
            "description": "Look up a verified work email for the top-ranked people. Only valid emails are returned; misses cost nothing.",
            "default": true
          },
          "maxEmailLookups": {
            "title": "Max email lookups",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Look up emails for up to this many people, highest engagement first. People beyond this limit stay in the results with the email outcome NOT_LOOKED_UP_LIMIT.",
            "default": 25
          },
          "maxBudgetUsd": {
            "title": "Workflow budget",
            "minimum": 0.05,
            "maximum": 50,
            "type": "number",
            "description": "Most this workflow may spend across all of its stages. Each stage runs as its own Actor run with its own spending cap, sized so the total stays within this budget. Stages that no longer fit are skipped and reported.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}