{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Scraper – All-in-One, No Login",
    "description": "Scrape LinkedIn profiles, posts, comments, company pages and company posts, and search people, companies, posts and jobs. Paste profile or company links, up to 200 results per run. Posts from $0.80 per 1,000, profiles from $1.50. No cookies or login. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "vObHAlE1wdLif3Xag"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialcrawler~linkedin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialcrawler-linkedin-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/socialcrawler~linkedin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-socialcrawler-linkedin-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/socialcrawler~linkedin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-socialcrawler-linkedin-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": [
          "endpoint",
          "targets"
        ],
        "properties": {
          "endpoint": {
            "title": "What to scrape",
            "enum": [
              "profile",
              "posts",
              "post",
              "comments",
              "company",
              "company_posts",
              "search",
              "full"
            ],
            "type": "string",
            "description": "Pick the kind of data. \"Full profile pull: profile + posts + comments\" gets a whole profile in one run (see the Deep mode settings). Discovery endpoints (search) are billed as Discovery results. Free Apify plan: demo of 5 runs per month, up to 10 results each. Paid plans have no run limit.",
            "default": "profile"
          },
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "One entry per line. What to enter depends on \"What to scrape\": Profile details: reidhoffman; Posts of a profile: reidhoffman; Single post: https://www.linkedin.com/feed/update/urn:li:activity:7521344259774660609/; Comments on a post: https://www.linkedin.com/feed/update/urn:li:activity:7521344259774660609/; Company details: microsoft; Posts of a company: microsoft; Search: product manager. Links, @handles, #hashtags, IDs and free search text are all accepted where they make sense. Up to 1,000 per run; duplicates and invalid entries are skipped and never charged. Put many targets in one run to keep the start fee tiny. LinkedIn Posts search: LinkedIn hides posts for phrases like \"open to work\"; use Search type People for those.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Max results per target",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows per target for list endpoints (minimum 10; ignored for single-item endpoints, which return one row). You pay per result delivered.",
            "default": 50
          },
          "maxTotalResults": {
            "title": "Max results in total (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results across all targets. Free Apify plan: demo of 5 runs per month, up to 10 results each. Paid plans have no run limit."
          },
          "type": {
            "title": "Search type",
            "enum": [
              "people",
              "companies",
              "posts",
              "jobs"
            ],
            "type": "string",
            "description": "Only for \"Search\". What to search for. Default: people. Posts search returns nothing for some job-seeking phrases (see the note at the top of Search filters); use People for those."
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "AR",
              "AU",
              "AT",
              "BD",
              "BE",
              "BR",
              "CA",
              "CL",
              "CN",
              "CO",
              "CZ",
              "DK",
              "EG",
              "FI",
              "FR",
              "DE",
              "GR",
              "HK",
              "HU",
              "IN",
              "ID",
              "IE",
              "IL",
              "IT",
              "JP",
              "KE",
              "KW",
              "MY",
              "MX",
              "MA",
              "NP",
              "NL",
              "NZ",
              "NG",
              "NO",
              "PK",
              "PE",
              "PH",
              "PL",
              "PT",
              "QA",
              "RO",
              "RU",
              "SA",
              "SG",
              "ZA",
              "KR",
              "ES",
              "LK",
              "SE",
              "CH",
              "TW",
              "TH",
              "TR",
              "UA",
              "AE",
              "GB",
              "VN"
            ],
            "type": "string",
            "description": "Only for \"Search\" (not posts). Where to search. Ignored when \"City, state or other places\" is filled.",
            "default": "US"
          },
          "location": {
            "title": "City, state or other places (optional)",
            "type": "string",
            "description": "Only for \"Search\" (not posts). Overrides Country when filled. A city, state or country, or up to three separated by semicolons (e.g. \"Berlin; Paris\"). A two-letter code is a country (CA is Canada)."
          },
          "current_company": {
            "title": "Current company (people)",
            "type": "string",
            "description": "People search only. Keep people who work at this company: its numeric LinkedIn ID or its slug (the part after /company/ in its link)."
          },
          "industry": {
            "title": "Industry ID (companies)",
            "type": "string",
            "description": "Companies search only. A LinkedIn industry ID, for example 4 for Software Development."
          },
          "company_size": {
            "title": "Company size (companies)",
            "enum": [
              "1-10",
              "11-50",
              "51-200",
              "201-500",
              "501-1000",
              "1001-5000",
              "5001-10000",
              "10001+"
            ],
            "type": "string",
            "description": "Companies search only."
          },
          "date_posted": {
            "title": "Date posted (posts, jobs)",
            "enum": [
              "past-24h",
              "past-week",
              "past-month"
            ],
            "type": "string",
            "description": "Posts and jobs search only."
          },
          "sort": {
            "title": "Sort (posts)",
            "enum": [
              "latest",
              "relevance"
            ],
            "type": "string",
            "description": "Posts search only."
          },
          "from_company": {
            "title": "From company (posts)",
            "type": "string",
            "description": "Posts search only. Only posts by this company: its numeric LinkedIn ID or its slug."
          },
          "postsPerProfile": {
            "title": "Posts per profile (deep mode)",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Deep mode only: how many latest items to fetch for each profile (minimum 10).",
            "default": 10
          },
          "commentsPerPost": {
            "title": "Comments per post (deep mode)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Deep mode only: comments to fetch under each post (0 = skip comments, otherwise minimum 10). Posts that have no comments are skipped.",
            "default": 20
          },
          "timeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 30,
            "maximum": 3500,
            "type": "integer",
            "description": "Give up on anything not finished after this long. Each target also has its own 10-minute limit. Maximum 3500.",
            "default": 3500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}