{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Markets Prospects — Qualified Finance Leads",
    "description": "Turn a LinkedIn search into qualified prospects — each with a fit score and a written reason to contact them — instead of a pile of raw profiles.",
    "version": "0.1",
    "x-build-id": "bdojLbiIVH4dTEFHF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alaudinburki~linkedin-markets-prospects/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alaudinburki-linkedin-markets-prospects",
        "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/alaudinburki~linkedin-markets-prospects/runs": {
      "post": {
        "operationId": "runs-sync-alaudinburki-linkedin-markets-prospects",
        "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/alaudinburki~linkedin-markets-prospects/run-sync": {
      "post": {
        "operationId": "run-sync-alaudinburki-linkedin-markets-prospects",
        "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": "How to get the profiles",
            "enum": [
              "search",
              "datasetId"
            ],
            "type": "string",
            "description": "Qualify a dataset you already have (free), or plan and run the searches yourself (paid).",
            "default": "search"
          },
          "dryRun": {
            "title": "Plan only, spend nothing",
            "type": "boolean",
            "description": "ON by default. Shows exactly which searches would run and the estimated cost, then stops. Turn this OFF when you are happy with the plan — that is the only thing standing between you and a paid scrape.",
            "default": true
          },
          "datasetId": {
            "title": "Dataset to qualify",
            "type": "string",
            "description": "Only used in 'Qualify an existing dataset' mode. Paste the dataset id from a LinkedIn search actor's run."
          },
          "jobTitles": {
            "title": "Job titles to search",
            "type": "array",
            "description": "One search runs per title for every city below. Titles decide who, so be specific — 'Portfolio Manager' finds buyers, 'Investment' finds everybody.",
            "default": [
              "Portfolio Manager",
              "Head of Trading",
              "Managing Partner"
            ],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities to search",
            "type": "array",
            "description": "Splitting by city is how you get past LinkedIn's hard limit of 2,500 results per search — it silently stops there, so one broad query quietly returns a fraction of what exists.",
            "default": [
              "London",
              "Zurich",
              "Dubai"
            ],
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "LinkedIn industry IDs",
            "type": "array",
            "description": "Filter to an industry. 43 is Financial Services, which is what most users want here. Leave as-is unless you know the code you need.",
            "default": [
              "43"
            ],
            "items": {
              "type": "string"
            }
          },
          "pagesPerQuery": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One page is up to 25 profiles. Cost scales directly with this number, so it is the main dial on what a run spends.",
            "default": 5
          },
          "minScore": {
            "title": "Minimum fit score to keep (0-5)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 keeps everybody including recruiters; 3 keeps only people with real market relevance; 5 keeps only near-perfect fits. Rows below this are dropped, not hidden.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum prospects returned",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard limit on prospects written. Enforced exactly — the best-scoring rows are kept when it bites, never whoever happened to be scraped first.",
            "default": 250
          },
          "icpPath": {
            "title": "Audience label (optional)",
            "enum": [
              "",
              "A",
              "B",
              "C"
            ],
            "type": "string",
            "description": "Carried onto every row so a list can be split later. A = traders and analysts, B = small funds and emerging managers, C = institutional.",
            "default": "B"
          },
          "readLimit": {
            "title": "Maximum profiles to read",
            "minimum": 1,
            "type": "integer",
            "description": "Safety valve on how much raw data is pulled before qualifying. Rarely needs changing.",
            "default": 100000
          },
          "timeoutSecs": {
            "title": "Timeout per search (seconds)",
            "minimum": 60,
            "type": "integer",
            "description": "How long a single search may run before it is abandoned. Abandoned searches do not fail the whole run.",
            "default": 3600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}