{
  "openapi": "3.0.1",
  "info": {
    "title": "Slack Scraper",
    "description": "This Apify actor scrapes members from any Slack workspace and matches them to their LinkedIn profiles using image search and AI-based relevance classification.",
    "version": "0.0",
    "x-build-id": "xMuTEz8U49sxPwQGk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadspicker~slack-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadspicker-slack-scraper",
        "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/leadspicker~slack-scraper/runs": {
      "post": {
        "operationId": "runs-sync-leadspicker-slack-scraper",
        "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/leadspicker~slack-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-leadspicker-slack-scraper",
        "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": [
          "clientPath"
        ],
        "properties": {
          "xoxcToken": {
            "title": "xoxc Token",
            "type": "string",
            "description": "Slack xoxc form token used for directory search requests. You can also pass a JSON object mapping team IDs to tokens; the token is selected by clientPath team ID. Optional when Interactive Login is enabled."
          },
          "xoxdToken": {
            "title": "xoxd Cookie (d)",
            "type": "string",
            "description": "Value of the Slack cookie named d (xoxd token). Optional when Interactive Login is enabled."
          },
          "clientPath": {
            "title": "Slack Client Link",
            "type": "string",
            "description": "Slack client URL like https://app.slack.com/client/TXXXXXX."
          },
          "interactiveLogin": {
            "title": "Interactive Login (VNC)",
            "type": "boolean",
            "description": "When enabled, opens a browser via VNC so you can log in and the Actor will extract xoxc and xoxd tokens automatically.",
            "default": false
          },
          "interactiveLoginTimeoutSecs": {
            "title": "Interactive Login Timeout (seconds)",
            "minimum": 30,
            "type": "number",
            "description": "How long to wait for you to log in before timing out.",
            "default": 900
          },
          "resolveAvatarLinkedins": {
            "title": "Resolve LinkedIn",
            "type": "boolean",
            "description": "When enabled, resolves custom avatar images to LinkedIn URLs.",
            "default": false
          },
          "linkedinUrlsNewline": {
            "title": "LinkedIn URLs on New Lines",
            "type": "boolean",
            "description": "When enabled, outputs each LinkedIn URL on its own line instead of separating by semicolons.",
            "default": false
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Optional search query for filtering people.",
            "default": ""
          },
          "prompt": {
            "title": "Prompt",
            "type": "string",
            "description": "Prompt template used for classification.",
            "default": "You are a simple classifier.\n\nQuestion: Does this person have ANY connection to business, sales, marketing, or technology?\n\nSay YES if you see ANY of these (current or past):\nSales (any role)\nMarketing (any role)\nBusiness development\nGrowth\nRevOps, Sales Ops, Marketing Ops\nGTM, Go-to-Market\nOutreach, Lead generation\nCRM, Salesforce, HubSpot\nAutomation, integrations, Zapier\nAgency, consulting\nSaaS, B2B, tech startup\nFounder, CEO, entrepreneur\nAccount management\nCustomer success\nPartnerships\nProduct (PM, Product Manager)\nData, analytics for business\n\nSay NO only if none of the above seems to be a good match.\n\nWhen unsure, say YES.\n\nReturn ONLY: YES or NO\n\nProfile:\n{profile_json}"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of people to fetch.",
            "default": 50
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Optional proxy URL applied to HTTP and HTTPS requests."
          },
          "timeoutSecs": {
            "title": "Timeout (seconds)",
            "type": "number",
            "description": "Request timeout in seconds.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}