{
  "openapi": "3.0.1",
  "info": {
    "title": "🔍 LinkedIn Profile Search by Services",
    "description": "🔍 LinkedIn Profile Search by Services finds the right professionals by their listed services/keywords. Get targeted leads for sales, recruitment & partnerships—faster, with cleaner results. 🚀 Ideal for B2B growth.",
    "version": "0.1",
    "x-build-id": "EtVbgB2J1Dbm5XSQv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~linkedin-profile-search-by-services/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-linkedin-profile-search-by-services",
        "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/api-empire~linkedin-profile-search-by-services/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-linkedin-profile-search-by-services",
        "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/api-empire~linkedin-profile-search-by-services/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-linkedin-profile-search-by-services",
        "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": [
          "search",
          "cookie"
        ],
        "properties": {
          "search": {
            "title": "🔎 Search query",
            "type": "string",
            "description": "What to search for on LinkedIn. Use a role, skill or service (e.g. `Machine learning engineer`, `Web Development`, `Marketing Manager`). Supports LinkedIn search operators (AND, OR, quotes)."
          },
          "profileScraperMode": {
            "title": "🧭 Profile Scraper Mode",
            "enum": [
              "Short",
              "Full",
              "Full + email search"
            ],
            "type": "string",
            "description": "How much detail to collect. **Short** = fast, core fields from search results. **Full** = opens each profile for complete data (experience, education, skills, certifications…). **Full + email search** behaves like Full (email enrichment is out of scope).",
            "default": "Short"
          },
          "cookie": {
            "title": "🍪 LinkedIn Cookie (li_at)",
            "type": "string",
            "description": "Your LinkedIn `li_at` session cookie. In your browser: DevTools → Application → Cookies → www.linkedin.com → copy the `li_at` value. You can paste the bare value or a full `li_at=...` cookie string. Use a dedicated account — sessions are tied to LinkedIn's anti-abuse system."
          },
          "maxItems": {
            "title": "🎯 Maximum profiles",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after collecting this many profiles.",
            "default": 10
          },
          "locations": {
            "title": "📍 Locations filter",
            "type": "array",
            "description": "Optional. Restrict results to one or more LinkedIn locations (e.g. `United Kingdom`, `San Francisco`). Use the full country name — LinkedIn may misread abbreviations (e.g. \"UK\" → \"Ukraine\"). You can also paste raw numeric geo IDs.",
            "items": {
              "type": "string"
            }
          },
          "startPage": {
            "title": "📑 Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The results page to start from (1-based).",
            "default": 1
          },
          "takePages": {
            "title": "📄 Pages to scrape",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many results pages to scan. The actor auto-stops early once it reaches your maximum profiles or runs out of results.",
            "default": 10
          },
          "proxyCountry": {
            "title": "🌐 Residential proxy country",
            "type": "string",
            "description": "Country for residential exit nodes if/when the actor escalates to residential proxies. Tip: match the country where your LinkedIn account normally signs in to avoid security checkpoints.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Optional. Leave off to start direct; the actor falls back to Apify proxies automatically when needed. Set a residential group here to start on residential immediately.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}