{
  "openapi": "3.0.1",
  "info": {
    "title": "🎯 LinkedIn Post Commenters ➔ B2B Lead & Email Finder",
    "description": "Extract commenters from any viral LinkedIn post or lead magnet, filter high-intent trigger words, parse job titles & company names, and verify direct corporate B2B work emails.",
    "version": "0.0",
    "x-build-id": "pjnUHciodzRPVbuhO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_studio~linkedin-post-commenters-lead-enricher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_studio-linkedin-post-commenters-lead-enricher",
        "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/automation_studio~linkedin-post-commenters-lead-enricher/runs": {
      "post": {
        "operationId": "runs-sync-automation_studio-linkedin-post-commenters-lead-enricher",
        "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/automation_studio~linkedin-post-commenters-lead-enricher/run-sync": {
      "post": {
        "operationId": "run-sync-automation_studio-linkedin-post-commenters-lead-enricher",
        "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": {
          "mode": {
            "title": "🎯 Prospecting Mode",
            "enum": [
              "BY_KEYWORD",
              "BY_POST_URL"
            ],
            "type": "string",
            "description": "Choose how you want to find leads: Auto-discover active decision-makers by Keyword/Niche (easiest, no URLs required) OR Extract commenters from specific LinkedIn post URLs.",
            "default": "BY_KEYWORD"
          },
          "searchKeyword": {
            "title": "🔍 Target Keyword / Industry / Niche",
            "type": "string",
            "description": "Active in 'Search by Keyword' mode. Enter any industry, topic, or niche (e.g. 'apparel', 'b2b saas', 'e-commerce', 'outbound sales', 'fintech', 'recruiting').",
            "default": "B2B SaaS Growth"
          },
          "postUrls": {
            "title": "🔗 Target LinkedIn Post URLs",
            "type": "array",
            "description": "Active in 'Direct LinkedIn Post URLs' mode. Paste one or more public LinkedIn post or feed update URLs (e.g. `https://www.linkedin.com/feed/update/urn:li:activity:7235000000000000000`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordFilter": {
            "title": "🎯 Comment Trigger Keyword Filter (Optional)",
            "type": "array",
            "description": "Optional (in Post URL mode): Only enrich commenters whose comment text contains any of these trigger words (e.g. 'scale', 'playbook', 'send', 'guide', 'interested'). Leave empty to enrich ALL commenters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "linkedinCookie": {
            "title": "🍪 Optional LinkedIn Session Cookie (li_at)",
            "type": "string",
            "description": "100% Optional: Provide your LinkedIn 'li_at' session cookie to extract comments from posts protected behind LinkedIn's sign-in barrier. Leave empty to run in 100% cookieless public mode."
          },
          "maxResults": {
            "title": "📊 Max Leads to Enrich",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of leads/commenters to extract and enrich. Default is 5 for fast <15s trial results.",
            "default": 5
          },
          "findVerifiedEmail": {
            "title": "📧 Discover & Verify Corporate Work Email",
            "type": "boolean",
            "description": "Resolve corporate domain, check DNS MX records, generate permutations, and verify work email deliverability with zero-send SMTP handshakes. Protected by our 'No Email, No Pay' guarantee.",
            "default": true
          },
          "generateOutreachHooks": {
            "title": "✍️ Generate Tailored Cold Outreach Hooks",
            "type": "boolean",
            "description": "Automatically write personalized, high-converting cold email subject lines and conversational opening hooks referencing the specific post, company, and industry activity.",
            "default": true
          },
          "maxConcurrency": {
            "title": "⚡ Processing Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of leads or posts processed concurrently. Keep at 3–5 for optimal speed and reliability.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🛡️ Apify Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy ensures smooth, high-speed public page resolution without rate limiting.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}