{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Scraper",
    "description": "Scrape LinkedIn without login or cookies: full profiles with experience, education and skills, optional work e-mail, company pages with industry, size and followers, and the latest posts of companies and people. Export data, run via API, schedule runs or plug into AI workflows.",
    "version": "0.1",
    "x-build-id": "2X2XC6huGEMgiEsQl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blueskyscraper~linkedin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blueskyscraper-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/blueskyscraper~linkedin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blueskyscraper-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/blueskyscraper~linkedin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blueskyscraper-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",
        "properties": {
          "mode": {
            "title": "🧭 What to get",
            "enum": [
              "profiles",
              "companies",
              "posts"
            ],
            "type": "string",
            "description": "<b>Profiles</b> — the public profile of each person: headline, current title and company, location, about, followers, experience, education, skills, certifications; switch on the work e-mail below. <b>Companies</b> — each company page: website, industry, size, employees on LinkedIn, followers, address, founded, specialties, latest posts. <b>Posts</b> — the latest posts LinkedIn shows logged-out visitors on each company or person page.",
            "default": "profiles"
          },
          "profileUrls": {
            "title": "👤 LinkedIn profiles",
            "type": "array",
            "description": "Profile URLs or slugs, one per line — <code>https://www.linkedin.com/in/satyanadella</code> or just <code>satyanadella</code>. Profiles that do not exist or that LinkedIn hides from logged-out visitors come back as free error rows.",
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "🏢 LinkedIn companies",
            "type": "array",
            "description": "Company page URLs or slugs, one per line — <code>https://www.linkedin.com/company/stripe</code> or just <code>stripe</code>. School and showcase pages work too.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "💬 Single post URLs",
            "type": "array",
            "description": "Posts: links to single posts — <code>https://www.linkedin.com/posts/…</code> or <code>…/feed/update/urn:li:activity:…</code> (they also work in the other URL fields). One row per post with all post fields plus <code>topComments</code>: the top ~8–10 comments LinkedIn shows a logged-out visitor, not all. Billed as one post; the comments are free.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "📄 URLs from a file or sheet",
            "type": "array",
            "description": "For long lists: upload a file or link a Google Sheet (or any text / CSV URL) that contains LinkedIn URLs. Each link is routed by its kind.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "findEmail": {
            "title": "📧 Find the work e-mail ($0.008 instead of $0.0032)",
            "type": "boolean",
            "description": "Profiles: find each person's work e-mail — the company's website, the address layout it uses, a mail-server (MX) check and a confidence level. A row WITH an e-mail is billed as <i>Profile with e-mail</i>; a row without one stays a plain <i>Profile</i>.",
            "default": false
          },
          "minConfidence": {
            "title": "Minimum e-mail confidence",
            "enum": [
              "low",
              "medium",
              "high",
              "confirmed"
            ],
            "type": "string",
            "description": "An address below this level is not put into <code>email</code> (it goes to <code>emailGuess</code> and <code>alternatives</code>) and the row is billed as a plain profile. <b>confirmed</b> = published on the company's site; <b>high / medium</b> = the layout is seen on the site (pattern-confirmed); <b>low</b> = the most common layout, nothing confirms it (unverified-guess). No mailbox (SMTP) check is made.",
            "default": "medium"
          },
          "companyOverride": {
            "title": "🏢 Company override",
            "type": "string",
            "description": "Use this company name or domain for everyone instead of what the profiles say — e.g. <code>hubspot.com</code> when the whole list works at one company."
          },
          "candidatesPerPerson": {
            "title": "Alternative addresses per person",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "The best address goes into <code>email</code>, the runners-up into <code>alternatives</code>.",
            "default": 3
          },
          "maxPagesPerCompany": {
            "title": "Company web pages to read",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Home page plus contact / team / about pages, read to learn how the company writes its addresses.",
            "default": 4
          },
          "pageTimeoutSecs": {
            "title": "Company web page timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for one company web page.",
            "default": 15
          },
          "includePosts": {
            "title": "📰 Add the person's latest posts (free)",
            "type": "boolean",
            "description": "Profiles: the person's recent posts and articles that LinkedIn shows logged-out visitors, inside the same row. No extra charge.",
            "default": false
          },
          "includeCompanyPosts": {
            "title": "📰 Add the company's latest posts (free)",
            "type": "boolean",
            "description": "Companies: the company's own recent posts (usually up to 10) with text, date, likes, comments, reactions, images, video, document, link card, mentions and link, inside the same row. No extra charge — they are on the page already read.",
            "default": true
          },
          "includeReposts": {
            "title": "🔁 Include reposts",
            "type": "boolean",
            "description": "Posts: what the company or person reposted from someone else, marked <code>isRepost: true</code> with <code>repostedAt</code> and <code>repostedBy</code> (the author fields are the original author). Turn off to keep only their own posts — skipped reposts are free.",
            "default": true
          },
          "includeComments": {
            "title": "💬 Add top comments to posts from pages",
            "type": "boolean",
            "description": "Posts: for posts found on company and profile pages, also open each post's own page and add its top ~8–10 visible comments in <code>topComments</code>. One extra page request per post, so the run is slower; no extra charge. Off: <code>topComments</code> is null. Single post URLs always include comments.",
            "default": false
          },
          "includeArticles": {
            "title": "📝 Include articles",
            "type": "boolean",
            "description": "Posts: people's long-form LinkedIn articles (headline, date, likes, link) next to their posts. Each article is billed as a post.",
            "default": true
          },
          "postedAfter": {
            "title": "📅 Only posts published after",
            "type": "string",
            "description": "Posts: skip older posts (free). Date like <code>2026-09-01</code>."
          },
          "minLikes": {
            "title": "👍 Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Posts: skip posts below this many likes (free).",
            "default": 0
          },
          "maxPostsPerSource": {
            "title": "Maximum posts per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Posts: cap per company or person page. Logged out, LinkedIn shows a company's ~7–10 newest posts and a person's ~5–10 newest posts and reposts plus up to 10 articles. A page with fewer posts than this adds one free <code>notice</code> row saying how many LinkedIn showed.",
            "default": 50
          },
          "onlyNewPosts": {
            "title": "🔔 Only posts not delivered before",
            "type": "boolean",
            "description": "Posts: skip every post this account already got from an earlier run (free) — put the run on a daily schedule and get only new posts.",
            "default": false
          },
          "maxItems": {
            "title": "💯 Maximum results per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "A hard ceiling on the rows one run bills — profiles, companies or posts.",
            "default": 10000
          },
          "concurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many LinkedIn pages to read at the same time. Keep it low — LinkedIn dislikes bursts.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}