{
  "data": {
    "id": "IFgAFcb93IDvJZbK7",
    "actId": "Pfwv35zmMyPTTZnEA",
    "userId": "TrDSeMYsd4nFC5UHD",
    "startedAt": "2026-05-17T23:05:07.542Z",
    "finishedAt": "2026-05-17T23:06:53.435Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "WEB"
    },
    "inputSchema": "{\n  \"title\": \"LinkedIn Profile Scraper\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"productUrls\": {\n      \"title\": \"Single/Multiple Profile URL's\",\n      \"type\": \"array\",\n      \"description\": \"LinkedIn profile URLs (e.g. https://linkedin.com/in/username). Same as Amazon/eBay/Reddit.\",\n      \"editor\": \"stringList\",\n      \"prefill\": [\n        \"https://www.linkedin.com/in/satyanadella\"\n      ]\n    },\n    \"startUrls\": {\n      \"title\": \"Start URLs (alternate)\",\n      \"type\": \"array\",\n      \"description\": \"Same as Profile URL's; request list format.\",\n      \"editor\": \"requestListSources\",\n      \"sectionCaption\": \"URLs (alternate)\"\n    },\n    \"url\": {\n      \"title\": \"Single URL (legacy)\",\n      \"type\": \"string\",\n      \"description\": \"One LinkedIn profile URL\",\n      \"editor\": \"textfield\"\n    },\n    \"cookies\": {\n      \"title\": \"LinkedIn cookies (recommended)\",\n      \"type\": \"string\",\n      \"description\": \"Sensitive: stored encrypted, hidden from logs. Export cookies from your logged-in LinkedIn session for best results. Steps: 1) Install Cookie-Editor Chrome extension. 2) Log in to LinkedIn in the same browser. 3) Open Cookie-Editor → Export → paste the JSON array here. Use proxy from the same country you logged in from.\",\n      \"editor\": \"textfield\",\n      \"isSecret\": true,\n      \"sectionCaption\": \"Authentication (recommended)\"\n    },\n    \"userAgent\": {\n      \"title\": \"User-Agent\",\n      \"type\": \"string\",\n      \"description\": \"Optional. Use your browser's User-Agent (from the same session as cookies) to match the session. Leave empty to use default.\",\n      \"editor\": \"textfield\"\n    },\n    \"minDelay\": {\n      \"title\": \"Minimum delay (seconds)\",\n      \"type\": \"integer\",\n      \"description\": \"Minimum wait between profile requests (avoid rate limits).\",\n      \"default\": 15,\n      \"minimum\": 5,\n      \"maximum\": 120,\n      \"editor\": \"number\",\n      \"sectionCaption\": \"Delays\"\n    },\n    \"maxDelay\": {\n      \"title\": \"Maximum delay (seconds)\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum wait between profile requests.\",\n      \"default\": 60,\n      \"minimum\": 15,\n      \"maximum\": 300,\n      \"editor\": \"number\"\n    },\n    \"language\": {\n      \"title\": \"Language\",\n      \"type\": \"string\",\n      \"description\": \"Locale for the browser (e.g. en-US)\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"en\",\n        \"de\",\n        \"es\",\n        \"fr\",\n        \"it\",\n        \"ja\",\n        \"pt\",\n        \"nl\",\n        \"pl\",\n        \"ko\",\n        \"ru\"\n      ],\n      \"enumTitles\": [\n        \"English\",\n        \"German\",\n        \"Spanish\",\n        \"French\",\n        \"Italian\",\n        \"Japanese\",\n        \"Portuguese\",\n        \"Dutch\",\n        \"Polish\",\n        \"Korean\",\n        \"Russian\"\n      ],\n      \"default\": \"en\"\n    },\n    \"proxyCountry\": {\n      \"title\": \"Proxy Country\",\n      \"type\": \"string\",\n      \"description\": \"Use proxy from the country where you are logged into LinkedIn. If Pakistan (PK) isn't available, try US or another country.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"AUTO_SELECT_PROXY_COUNTRY\",\n        \"US\",\n        \"GB\",\n        \"DE\",\n        \"FR\",\n        \"JP\",\n        \"CA\",\n        \"IT\",\n        \"PK\"\n      ],\n      \"enumTitles\": [\n        \"Auto-select\",\n        \"United States\",\n        \"United Kingdom\",\n        \"Germany\",\n        \"France\",\n        \"Japan\",\n        \"Canada\",\n        \"Italy\",\n        \"Pakistan\"\n      ],\n      \"default\": \"AUTO_SELECT_PROXY_COUNTRY\"\n    },\n    \"proxyUrl\": {\n      \"title\": \"Custom proxy URL (Webshare etc.)\",\n      \"type\": \"string\",\n      \"description\": \"Sensitive: stored encrypted, hidden from logs. Optional. Overrides Apify proxy when set (e.g. http://user:pass@host:port). Use same country as your LinkedIn login.\",\n      \"editor\": \"textfield\",\n      \"isSecret\": true\n    },\n    \"saveDebugOnFailure\": {\n      \"title\": \"Save debug HTML on no data\",\n      \"type\": \"boolean\",\n      \"description\": \"When extraction returns no data, save the page HTML to the run's key-value store (DEBUG_linkedin_page.html) so you can inspect what LinkedIn served.\",\n      \"editor\": \"checkbox\",\n      \"default\": false\n    }\n  },\n  \"required\": []\n}",
    "readme": "## LinkedIn Profile Scraper – Extract Profiles & Professional Data at Scale\n\nScrape LinkedIn profiles to extract professional data, job roles, and company insights. Perfect for lead generation, outreach, and CRM enrichment workflows.\n\n## What is LinkedIn Profile Scraper and How Does It Work?\n\nLinkedIn Profile Scraper is a powerful LinkedIn data extraction tool built on Apify that extracts **publicly visible** profile information from LinkedIn profile URLs (`linkedin.com/in/...`) using a headless browser (Playwright). It is designed for:\n\n- B2B marketers  \n- Lead generation specialists  \n- Recruiters  \n- Sales teams  \n- Data analysts  \n\nThis tool helps you collect, structure, and analyze LinkedIn profile data for outreach, hiring, and market intelligence — reducing manual browsing. **For reliable results, use session cookies** from a logged-in LinkedIn session (see below) plus appropriate proxy settings.\n\n## Why This LinkedIn Scraper is Different\n\nThis actor is built for **B2B intelligence and lead generation** workflows, not one-off copy-paste.\n\n**Core advantages:**\n\n- Extract structured professional profile data  \n- Build targeted lead lists from profile URLs  \n- Enrich datasets for outreach campaigns  \n- Analyze roles, companies, and skills at scale (from what LinkedIn renders on the page)  \n- Automate LinkedIn research workflows via Apify API and scheduling  \n\n➡️ Designed for real business use (sales, hiring, growth) — always subject to LinkedIn’s terms and applicable laws.\n\n## What Data Does LinkedIn Profile Scraper Extract?\n\nThis actor outputs structured profile data per URL, including (when available on the page):\n\n**Profile information**\n\n- Full name  \n- Headline (job title)  \n- Profile URL  \n- Location  \n- About / summary  \n- Profile picture URL  \n- Connections (when shown)  \n\n**Professional data**\n\n- **Experience** — array of entries (e.g. title, company, date range)  \n- **Education** — array of entries (e.g. school, degree, dates)  \n- **Skills** — array of strings  \n\n**Run metadata**\n\n- `status` — `success` | `login_required` | `no_data` | `blocked`  \n- `scraped_at` — timestamp  \n\n➡️ Output is structured and exportable in JSON, CSV, or Excel via Apify dataset export.\n\n## Advanced Features\n\n- **Profile-level extraction** — one or more `linkedin.com/in/username` URLs per run  \n- **Bulk processing** — many profile URLs in a single actor run (respect delays and LinkedIn limits)  \n- **Session support** — optional **cookies** from a logged-in browser (Cookie-Editor JSON) for fewer login walls  \n- **Rate limiting** — configurable **min/max delay** between profile requests  \n- **Proxy** — Apify Proxy country and optional **custom proxy URL** (match login geography when possible)  \n- **Automation** — Apify API, schedules, webhooks  \n- **Debug** — optional save of debug HTML on failed extraction (`saveDebugOnFailure`)  \n\n## How to Use LinkedIn Profile Scraper on Apify\n\n### Using the Actor\n\n1. **Go to the LinkedIn Profile Scraper** on the Apify platform.  \n\n2. **Input Configuration**:\n   - Add LinkedIn **profile URLs** (`https://www.linkedin.com/in/...`).  \n   - **Recommended:** paste **cookies** from a logged-in session and align **proxy country** (and optional **User-Agent**) with that session.  \n   - Set **min/max delay** between requests to reduce rate limits.  \n\n### Input Configuration\n\nThe actor accepts (among others) the following parameters:\n\n```json\n{\n  \"productUrls\": [\n    \"https://www.linkedin.com/in/satyanadella\"\n  ],\n  \"cookies\": \"[{\\\"name\\\":\\\"li_at\\\",\\\"value\\\":\\\"...\\\",\\\"domain\\\":\\\".linkedin.com\\\"}]\",\n  \"userAgent\": \"\",\n  \"minDelay\": 15,\n  \"maxDelay\": 60,\n  \"language\": \"en\",\n  \"proxyCountry\": \"AUTO_SELECT_PROXY_COUNTRY\",\n  \"proxyUrl\": \"\",\n  \"saveDebugOnFailure\": false\n}\n```\n\n| Field | Description |\n|--------|-------------|\n| `productUrls` | One or more LinkedIn profile URLs (string list). Primary input. |\n| `startUrls` | Alternate: same URLs in Apify request-list format. |\n| `url` | Legacy: single profile URL. |\n| `cookies` | **Recommended.** JSON array string from Cookie-Editor (or similar) for a logged-in session. |\n| `userAgent` | Optional. Browser User-Agent matching the session used for cookies. |\n| `minDelay` / `maxDelay` | Seconds between profile requests (defaults 15–60; helps avoid rate limits). |\n| `language` | Browser locale (`en`, `de`, `es`, …). |\n| `proxyCountry` | `AUTO_SELECT_PROXY_COUNTRY`, `US`, `GB`, `DE`, `FR`, `JP`, `CA`, `IT`, `PK`, etc. |\n| `proxyUrl` | Optional custom proxy (e.g. Webshare); overrides Apify proxy when set. |\n| `saveDebugOnFailure` | If true, may save debug HTML to the key-value store when extraction fails. |\n\n3. **Run the Actor** — Enable **Apify Proxy** (often **residential**) in the run when scraping from the cloud.  \n\n4. **Access Your Results** — Dataset tab; export JSON/CSV/Excel or use the API.  \n\n5. **Schedule** — Recurring runs for refreshed lists (combine with your own URL sourcing).  \n\n## Output\n\nEach profile URL produces **one dataset item**. Typical fields:\n\n| Field | Description |\n|--------|-------------|\n| `url` | Canonical profile URL |\n| `status` | `success` \\| `login_required` \\| `no_data` \\| `blocked` |\n| `fullName` | Full name |\n| `headline` | Headline |\n| `location` | Location |\n| `about` | About / summary |\n| `profilePictureUrl` | Image URL |\n| `experience` | Array of experience objects |\n| `education` | Array of education objects |\n| `skills` | Array of skill strings |\n| `connections` | Connections line if visible |\n| `scraped_at` | ISO timestamp |\n\nWhen `status !== \"success\"`, an **`error`** message may be present (e.g. login wall, no data, blocked).\n\nExample (illustrative):\n\n```json\n{\n  \"url\": \"https://www.linkedin.com/in/example\",\n  \"status\": \"success\",\n  \"fullName\": \"Jane Doe\",\n  \"headline\": \"VP Sales at Example Co\",\n  \"location\": \"San Francisco Bay Area\",\n  \"about\": \"…\",\n  \"experience\": [{ \"title\": \"VP Sales\", \"company\": \"Example Co\", \"dateRange\": \"2020 – Present\" }],\n  \"education\": [],\n  \"skills\": [\"Sales\", \"B2B\"],\n  \"connections\": \"500+\",\n  \"scraped_at\": \"2026-03-30T12:00:00.000Z\"\n}\n```\n\n## How to get LinkedIn cookies (recommended)\n\n1. Install [Cookie-Editor](https://cookie-editor.cgagnier.ca/) (or similar) in the browser where you log in to LinkedIn.  \n2. Log in to [linkedin.com](https://www.linkedin.com).  \n3. Export cookies as **JSON** and paste into the Actor **cookies** field.  \n4. Use a **proxy country** (or `proxyUrl`) consistent with where you logged in.  \n5. Optionally paste your browser **User-Agent** into `userAgent` to match the session.  \n\nWithout cookies, LinkedIn often shows sign-in or limited HTML. Keep volume reasonable per account to reduce restriction risk.\n\n## How the Scraper Works\n\n- **Playwright** loads each profile URL.  \n- **BeautifulSoup** and **JSON-LD** (`application/ld+json`) when available, plus DOM fallbacks, populate `fullName`, `headline`, experience, education, skills, etc.  \n- Randomized delays between `minDelay` and `maxDelay` reduce burst traffic.  \n\n## Anti-blocking & Reliability\n\n- Residential or session-aligned proxies strongly recommended on Apify.  \n- Cookies + matching User-Agent improve success rates.  \n- Retries on transient failures (`MAX_RETRIES` in code).  \n- LinkedIn may block datacenter IPs; use `proxyUrl` or different `proxyCountry` if you see `blocked` or empty pages.  \n\n## Performance\n\n- Batch many URLs in one run but **respect delays** and account safety.  \n- Lower concurrency implied by sequential profile handling + delays.  \n\n## High-Value Use Cases\n\n- B2B lead generation  \n- Recruitment and hiring research  \n- Sales prospecting  \n- Market research  \n- CRM enrichment and AI / lead scoring pipelines (with your own compliance review)  \n\n## Integrations & API\n\n- Full API via Apify  \n- Python / Node.js  \n- Zapier / Make  \n- Google Sheets and CRMs via export or automation  \n\n## FAQ\n\n### How can this LinkedIn scraper improve my lead generation process?\n\nIt automates collection of profile fields from URLs you provide, so you can build lists and segments faster than manual copy-paste — then layer your own outreach rules and compliance checks.\n\n### Can I build targeted prospect lists using this tool?\n\nYes. You choose which profile URLs to scrape (e.g. from your own research). Output is structured for filtering and enrichment.\n\n### How accurate is the extracted LinkedIn data?\n\nData reflects what LinkedIn serves at scrape time for that session. Verify critical fields before high-stakes decisions.\n\n### Can recruiters use this scraper for candidate sourcing?\n\nYes, for **public profile information** you are permitted to process — always follow employment and data-protection rules in your jurisdiction.\n\n### Can I integrate this scraper with my CRM or outreach tools?\n\nYes. Export JSON/CSV or connect Apify to Zapier/Make and push into HubSpot, Salesforce, or custom systems.\n\n### Can I automate LinkedIn data extraction on a schedule?\n\nYes, with Apify schedules and webhooks. You still need to supply or generate profile URLs each run unless you add separate discovery logic.\n\n### Is this scraper suitable for building AI or analytics models?\n\nStructured fields can feed scoring or ML pipelines; ensure lawful basis and purpose limitation for personal data.\n\n### How much data can I extract in one run?\n\nDepends on Apify plan, delays, and LinkedIn’s response. Prefer conservative daily volumes per account.\n\n### Is scraping LinkedIn legal and safe to use?\n\nThis tool is intended for **publicly visible** profile content you may lawfully process. You must comply with **LinkedIn’s User Agreement**, **robots.txt**, and laws such as **GDPR** / **CCPA** where they apply. Do not use for unauthorized automation against LinkedIn’s terms. Use data responsibly for outreach and commercial use.\n\n## SEO Keywords (high-intent)\n\nlinkedin scraper  \nlinkedin profile scraper  \nlinkedin data scraper  \nlinkedin lead generation tool  \nlinkedin scraping api  \nlinkedin profile data extractor  \nlinkedin automation tool  \nlinkedin prospecting tool  \nlinkedin lead scraper  \nb2b lead generation scraper  \nlinkedin scraper apify  \n\n## Why Choose This Actor?\n\n- Built for B2B and lead workflows  \n- Structured experience, education, skills, and headline data  \n- Cookie + proxy + delay controls for real-world scraping  \n- Automation-ready on Apify  \n- Clear `status` field for success vs. login/blocking issues  \n\n## Actor permissions\n\nThis Actor is designed to work with **limited permissions**. It only reads input and writes to its default dataset; it does not access other user data or require full account access.\n\n**To set limited permissions in Apify Console:**\n\n1. Open your Actor on the Apify platform.  \n2. Go to the **Source** tab (or **Settings**).  \n3. Click **Review permissions** (or **Settings** → **Permissions**).  \n4. Select **Limited permissions** and save.  \n\n## Limitations\n\n- **Profile URLs only** — paths must include `/in/` (see `main.py` normalization).  \n- LinkedIn HTML changes may require actor updates.  \n- Blank or blocked pages often indicate proxy or session issues.  \n- Not a substitute for LinkedIn’s official APIs where those are required.  \n\n## License\n\nSee the repository root or this package’s `LICENSE` file for license terms, if present.\n\n## Running locally\n\n1. `pip install -r requirements.txt`  \n2. `playwright install chromium`  \n3. Create `INPUT.json`, e.g.:\n\n```json\n{\n  \"productUrls\": [\"https://www.linkedin.com/in/satyanadella\"],\n  \"minDelay\": 15,\n  \"maxDelay\": 60\n}\n```\n\n4. Add **cookies** and **proxyUrl** for best results.  \n5. Run with Apify CLI or `python main.py` per your local setup.  \n\n## Deploy to Apify\n\nUse `INPUT_SCHEMA.json` and the provided `Dockerfile`. Enable **Proxy** (residential when possible) on runs.\n\n## Get Started\n\nStart extracting LinkedIn profile data and power your outreach and enrichment workflows at scale — responsibly and in compliance with LinkedIn and the law. 🚀\n",
    "actorDefinition": {
      "$schema": "https://apify.com/schemas/v1/actor.ide.json",
      "actorSpecification": 1,
      "name": "linkedin-profile-scraper",
      "title": "LinkedIn Profile Scraper",
      "description": "Scrape LinkedIn profile pages: name, headline, about, location, experience, education, skills. Same input structure as Amazon/eBay/Reddit: productUrls, language, proxyCountry. Uses Playwright; enable Apify Proxy (residential) for reliable results.",
      "version": "0.1",
      "buildTag": "latest",
      "meta": {
        "templateId": "python-playwright"
      },
      "dockerfile": "../Dockerfile",
      "readme": "## LinkedIn Profile Scraper – Extract Profiles & Professional Data at Scale\n\nScrape LinkedIn profiles to extract professional data, job roles, and company insights. Perfect for lead generation, outreach, and CRM enrichment workflows.\n\n## What is LinkedIn Profile Scraper and How Does It Work?\n\nLinkedIn Profile Scraper is a powerful LinkedIn data extraction tool built on Apify that extracts **publicly visible** profile information from LinkedIn profile URLs (`linkedin.com/in/...`) using a headless browser (Playwright). It is designed for:\n\n- B2B marketers  \n- Lead generation specialists  \n- Recruiters  \n- Sales teams  \n- Data analysts  \n\nThis tool helps you collect, structure, and analyze LinkedIn profile data for outreach, hiring, and market intelligence — reducing manual browsing. **For reliable results, use session cookies** from a logged-in LinkedIn session (see below) plus appropriate proxy settings.\n\n## Why This LinkedIn Scraper is Different\n\nThis actor is built for **B2B intelligence and lead generation** workflows, not one-off copy-paste.\n\n**Core advantages:**\n\n- Extract structured professional profile data  \n- Build targeted lead lists from profile URLs  \n- Enrich datasets for outreach campaigns  \n- Analyze roles, companies, and skills at scale (from what LinkedIn renders on the page)  \n- Automate LinkedIn research workflows via Apify API and scheduling  \n\n➡️ Designed for real business use (sales, hiring, growth) — always subject to LinkedIn’s terms and applicable laws.\n\n## What Data Does LinkedIn Profile Scraper Extract?\n\nThis actor outputs structured profile data per URL, including (when available on the page):\n\n**Profile information**\n\n- Full name  \n- Headline (job title)  \n- Profile URL  \n- Location  \n- About / summary  \n- Profile picture URL  \n- Connections (when shown)  \n\n**Professional data**\n\n- **Experience** — array of entries (e.g. title, company, date range)  \n- **Education** — array of entries (e.g. school, degree, dates)  \n- **Skills** — array of strings  \n\n**Run metadata**\n\n- `status` — `success` | `login_required` | `no_data` | `blocked`  \n- `scraped_at` — timestamp  \n\n➡️ Output is structured and exportable in JSON, CSV, or Excel via Apify dataset export.\n\n## Advanced Features\n\n- **Profile-level extraction** — one or more `linkedin.com/in/username` URLs per run  \n- **Bulk processing** — many profile URLs in a single actor run (respect delays and LinkedIn limits)  \n- **Session support** — optional **cookies** from a logged-in browser (Cookie-Editor JSON) for fewer login walls  \n- **Rate limiting** — configurable **min/max delay** between profile requests  \n- **Proxy** — Apify Proxy country and optional **custom proxy URL** (match login geography when possible)  \n- **Automation** — Apify API, schedules, webhooks  \n- **Debug** — optional save of debug HTML on failed extraction (`saveDebugOnFailure`)  \n\n## How to Use LinkedIn Profile Scraper on Apify\n\n### Using the Actor\n\n1. **Go to the LinkedIn Profile Scraper** on the Apify platform.  \n\n2. **Input Configuration**:\n   - Add LinkedIn **profile URLs** (`https://www.linkedin.com/in/...`).  \n   - **Recommended:** paste **cookies** from a logged-in session and align **proxy country** (and optional **User-Agent**) with that session.  \n   - Set **min/max delay** between requests to reduce rate limits.  \n\n### Input Configuration\n\nThe actor accepts (among others) the following parameters:\n\n```json\n{\n  \"productUrls\": [\n    \"https://www.linkedin.com/in/satyanadella\"\n  ],\n  \"cookies\": \"[{\\\"name\\\":\\\"li_at\\\",\\\"value\\\":\\\"...\\\",\\\"domain\\\":\\\".linkedin.com\\\"}]\",\n  \"userAgent\": \"\",\n  \"minDelay\": 15,\n  \"maxDelay\": 60,\n  \"language\": \"en\",\n  \"proxyCountry\": \"AUTO_SELECT_PROXY_COUNTRY\",\n  \"proxyUrl\": \"\",\n  \"saveDebugOnFailure\": false\n}\n```\n\n| Field | Description |\n|--------|-------------|\n| `productUrls` | One or more LinkedIn profile URLs (string list). Primary input. |\n| `startUrls` | Alternate: same URLs in Apify request-list format. |\n| `url` | Legacy: single profile URL. |\n| `cookies` | **Recommended.** JSON array string from Cookie-Editor (or similar) for a logged-in session. |\n| `userAgent` | Optional. Browser User-Agent matching the session used for cookies. |\n| `minDelay` / `maxDelay` | Seconds between profile requests (defaults 15–60; helps avoid rate limits). |\n| `language` | Browser locale (`en`, `de`, `es`, …). |\n| `proxyCountry` | `AUTO_SELECT_PROXY_COUNTRY`, `US`, `GB`, `DE`, `FR`, `JP`, `CA`, `IT`, `PK`, etc. |\n| `proxyUrl` | Optional custom proxy (e.g. Webshare); overrides Apify proxy when set. |\n| `saveDebugOnFailure` | If true, may save debug HTML to the key-value store when extraction fails. |\n\n3. **Run the Actor** — Enable **Apify Proxy** (often **residential**) in the run when scraping from the cloud.  \n\n4. **Access Your Results** — Dataset tab; export JSON/CSV/Excel or use the API.  \n\n5. **Schedule** — Recurring runs for refreshed lists (combine with your own URL sourcing).  \n\n## Output\n\nEach profile URL produces **one dataset item**. Typical fields:\n\n| Field | Description |\n|--------|-------------|\n| `url` | Canonical profile URL |\n| `status` | `success` \\| `login_required` \\| `no_data` \\| `blocked` |\n| `fullName` | Full name |\n| `headline` | Headline |\n| `location` | Location |\n| `about` | About / summary |\n| `profilePictureUrl` | Image URL |\n| `experience` | Array of experience objects |\n| `education` | Array of education objects |\n| `skills` | Array of skill strings |\n| `connections` | Connections line if visible |\n| `scraped_at` | ISO timestamp |\n\nWhen `status !== \"success\"`, an **`error`** message may be present (e.g. login wall, no data, blocked).\n\nExample (illustrative):\n\n```json\n{\n  \"url\": \"https://www.linkedin.com/in/example\",\n  \"status\": \"success\",\n  \"fullName\": \"Jane Doe\",\n  \"headline\": \"VP Sales at Example Co\",\n  \"location\": \"San Francisco Bay Area\",\n  \"about\": \"…\",\n  \"experience\": [{ \"title\": \"VP Sales\", \"company\": \"Example Co\", \"dateRange\": \"2020 – Present\" }],\n  \"education\": [],\n  \"skills\": [\"Sales\", \"B2B\"],\n  \"connections\": \"500+\",\n  \"scraped_at\": \"2026-03-30T12:00:00.000Z\"\n}\n```\n\n## How to get LinkedIn cookies (recommended)\n\n1. Install [Cookie-Editor](https://cookie-editor.cgagnier.ca/) (or similar) in the browser where you log in to LinkedIn.  \n2. Log in to [linkedin.com](https://www.linkedin.com).  \n3. Export cookies as **JSON** and paste into the Actor **cookies** field.  \n4. Use a **proxy country** (or `proxyUrl`) consistent with where you logged in.  \n5. Optionally paste your browser **User-Agent** into `userAgent` to match the session.  \n\nWithout cookies, LinkedIn often shows sign-in or limited HTML. Keep volume reasonable per account to reduce restriction risk.\n\n## How the Scraper Works\n\n- **Playwright** loads each profile URL.  \n- **BeautifulSoup** and **JSON-LD** (`application/ld+json`) when available, plus DOM fallbacks, populate `fullName`, `headline`, experience, education, skills, etc.  \n- Randomized delays between `minDelay` and `maxDelay` reduce burst traffic.  \n\n## Anti-blocking & Reliability\n\n- Residential or session-aligned proxies strongly recommended on Apify.  \n- Cookies + matching User-Agent improve success rates.  \n- Retries on transient failures (`MAX_RETRIES` in code).  \n- LinkedIn may block datacenter IPs; use `proxyUrl` or different `proxyCountry` if you see `blocked` or empty pages.  \n\n## Performance\n\n- Batch many URLs in one run but **respect delays** and account safety.  \n- Lower concurrency implied by sequential profile handling + delays.  \n\n## High-Value Use Cases\n\n- B2B lead generation  \n- Recruitment and hiring research  \n- Sales prospecting  \n- Market research  \n- CRM enrichment and AI / lead scoring pipelines (with your own compliance review)  \n\n## Integrations & API\n\n- Full API via Apify  \n- Python / Node.js  \n- Zapier / Make  \n- Google Sheets and CRMs via export or automation  \n\n## FAQ\n\n### How can this LinkedIn scraper improve my lead generation process?\n\nIt automates collection of profile fields from URLs you provide, so you can build lists and segments faster than manual copy-paste — then layer your own outreach rules and compliance checks.\n\n### Can I build targeted prospect lists using this tool?\n\nYes. You choose which profile URLs to scrape (e.g. from your own research). Output is structured for filtering and enrichment.\n\n### How accurate is the extracted LinkedIn data?\n\nData reflects what LinkedIn serves at scrape time for that session. Verify critical fields before high-stakes decisions.\n\n### Can recruiters use this scraper for candidate sourcing?\n\nYes, for **public profile information** you are permitted to process — always follow employment and data-protection rules in your jurisdiction.\n\n### Can I integrate this scraper with my CRM or outreach tools?\n\nYes. Export JSON/CSV or connect Apify to Zapier/Make and push into HubSpot, Salesforce, or custom systems.\n\n### Can I automate LinkedIn data extraction on a schedule?\n\nYes, with Apify schedules and webhooks. You still need to supply or generate profile URLs each run unless you add separate discovery logic.\n\n### Is this scraper suitable for building AI or analytics models?\n\nStructured fields can feed scoring or ML pipelines; ensure lawful basis and purpose limitation for personal data.\n\n### How much data can I extract in one run?\n\nDepends on Apify plan, delays, and LinkedIn’s response. Prefer conservative daily volumes per account.\n\n### Is scraping LinkedIn legal and safe to use?\n\nThis tool is intended for **publicly visible** profile content you may lawfully process. You must comply with **LinkedIn’s User Agreement**, **robots.txt**, and laws such as **GDPR** / **CCPA** where they apply. Do not use for unauthorized automation against LinkedIn’s terms. Use data responsibly for outreach and commercial use.\n\n## SEO Keywords (high-intent)\n\nlinkedin scraper  \nlinkedin profile scraper  \nlinkedin data scraper  \nlinkedin lead generation tool  \nlinkedin scraping api  \nlinkedin profile data extractor  \nlinkedin automation tool  \nlinkedin prospecting tool  \nlinkedin lead scraper  \nb2b lead generation scraper  \nlinkedin scraper apify  \n\n## Why Choose This Actor?\n\n- Built for B2B and lead workflows  \n- Structured experience, education, skills, and headline data  \n- Cookie + proxy + delay controls for real-world scraping  \n- Automation-ready on Apify  \n- Clear `status` field for success vs. login/blocking issues  \n\n## Actor permissions\n\nThis Actor is designed to work with **limited permissions**. It only reads input and writes to its default dataset; it does not access other user data or require full account access.\n\n**To set limited permissions in Apify Console:**\n\n1. Open your Actor on the Apify platform.  \n2. Go to the **Source** tab (or **Settings**).  \n3. Click **Review permissions** (or **Settings** → **Permissions**).  \n4. Select **Limited permissions** and save.  \n\n## Limitations\n\n- **Profile URLs only** — paths must include `/in/` (see `main.py` normalization).  \n- LinkedIn HTML changes may require actor updates.  \n- Blank or blocked pages often indicate proxy or session issues.  \n- Not a substitute for LinkedIn’s official APIs where those are required.  \n\n## License\n\nSee the repository root or this package’s `LICENSE` file for license terms, if present.\n\n## Running locally\n\n1. `pip install -r requirements.txt`  \n2. `playwright install chromium`  \n3. Create `INPUT.json`, e.g.:\n\n```json\n{\n  \"productUrls\": [\"https://www.linkedin.com/in/satyanadella\"],\n  \"minDelay\": 15,\n  \"maxDelay\": 60\n}\n```\n\n4. Add **cookies** and **proxyUrl** for best results.  \n5. Run with Apify CLI or `python main.py` per your local setup.  \n\n## Deploy to Apify\n\nUse `INPUT_SCHEMA.json` and the provided `Dockerfile`. Enable **Proxy** (residential when possible) on runs.\n\n## Get Started\n\nStart extracting LinkedIn profile data and power your outreach and enrichment workflows at scale — responsibly and in compliance with LinkedIn and the law. 🚀\n",
      "input": {
        "title": "LinkedIn Profile Scraper",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "productUrls": {
            "title": "Single/Multiple Profile URL's",
            "type": "array",
            "description": "LinkedIn profile URLs (e.g. https://linkedin.com/in/username). Same as Amazon/eBay/Reddit.",
            "editor": "stringList",
            "prefill": [
              "https://www.linkedin.com/in/satyanadella"
            ]
          },
          "startUrls": {
            "title": "Start URLs (alternate)",
            "type": "array",
            "description": "Same as Profile URL's; request list format.",
            "editor": "requestListSources",
            "sectionCaption": "URLs (alternate)"
          },
          "url": {
            "title": "Single URL (legacy)",
            "type": "string",
            "description": "One LinkedIn profile URL",
            "editor": "textfield"
          },
          "cookies": {
            "title": "LinkedIn cookies (recommended)",
            "type": "string",
            "description": "Sensitive: stored encrypted, hidden from logs. Export cookies from your logged-in LinkedIn session for best results. Steps: 1) Install Cookie-Editor Chrome extension. 2) Log in to LinkedIn in the same browser. 3) Open Cookie-Editor → Export → paste the JSON array here. Use proxy from the same country you logged in from.",
            "editor": "textfield",
            "isSecret": true,
            "sectionCaption": "Authentication (recommended)"
          },
          "userAgent": {
            "title": "User-Agent",
            "type": "string",
            "description": "Optional. Use your browser's User-Agent (from the same session as cookies) to match the session. Leave empty to use default.",
            "editor": "textfield"
          },
          "minDelay": {
            "title": "Minimum delay (seconds)",
            "type": "integer",
            "description": "Minimum wait between profile requests (avoid rate limits).",
            "default": 15,
            "minimum": 5,
            "maximum": 120,
            "editor": "number",
            "sectionCaption": "Delays"
          },
          "maxDelay": {
            "title": "Maximum delay (seconds)",
            "type": "integer",
            "description": "Maximum wait between profile requests.",
            "default": 60,
            "minimum": 15,
            "maximum": 300,
            "editor": "number"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Locale for the browser (e.g. en-US)",
            "editor": "select",
            "enum": [
              "en",
              "de",
              "es",
              "fr",
              "it",
              "ja",
              "pt",
              "nl",
              "pl",
              "ko",
              "ru"
            ],
            "enumTitles": [
              "English",
              "German",
              "Spanish",
              "French",
              "Italian",
              "Japanese",
              "Portuguese",
              "Dutch",
              "Polish",
              "Korean",
              "Russian"
            ],
            "default": "en"
          },
          "proxyCountry": {
            "title": "Proxy Country",
            "type": "string",
            "description": "Use proxy from the country where you are logged into LinkedIn. If Pakistan (PK) isn't available, try US or another country.",
            "editor": "select",
            "enum": [
              "AUTO_SELECT_PROXY_COUNTRY",
              "US",
              "GB",
              "DE",
              "FR",
              "JP",
              "CA",
              "IT",
              "PK"
            ],
            "enumTitles": [
              "Auto-select",
              "United States",
              "United Kingdom",
              "Germany",
              "France",
              "Japan",
              "Canada",
              "Italy",
              "Pakistan"
            ],
            "default": "AUTO_SELECT_PROXY_COUNTRY"
          },
          "proxyUrl": {
            "title": "Custom proxy URL (Webshare etc.)",
            "type": "string",
            "description": "Sensitive: stored encrypted, hidden from logs. Optional. Overrides Apify proxy when set (e.g. http://user:pass@host:port). Use same country as your LinkedIn login.",
            "editor": "textfield",
            "isSecret": true
          },
          "saveDebugOnFailure": {
            "title": "Save debug HTML on no data",
            "type": "boolean",
            "description": "When extraction returns no data, save the page HTML to the run's key-value store (DEBUG_linkedin_page.html) so you can inspect what LinkedIn served.",
            "editor": "checkbox",
            "default": false
          }
        },
        "required": []
      },
      "output": {
        "$schema": "https://apify-projects.github.io/actor-json-schemas/output.json?v=0.3",
        "actorOutputSchemaVersion": 1,
        "title": "LinkedIn Profile Scraper output",
        "description": "Each dataset item is one LinkedIn profile scrape result (success or error row).",
        "properties": {
          "profiles": {
            "type": "string",
            "title": "Profiles",
            "description": "Scraped LinkedIn profiles and any error rows in the default dataset.",
            "template": "{{links.apiDefaultDatasetUrl}}/items?view=overview"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "fields": {
            "$schema": "http://json-schema.org/draft-07/schema#",
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "title": "Profile URL",
                "description": "LinkedIn profile URL that was scraped."
              },
              "status": {
                "type": "string",
                "title": "Status",
                "description": "success | login_required | no_data | blocked"
              },
              "fullName": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Full name",
                "description": "Profile display name."
              },
              "headline": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Headline",
                "description": "Professional headline or role line."
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Location",
                "description": "Geographic location from the profile."
              },
              "about": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "About",
                "description": "About / summary section text."
              },
              "profilePictureUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Profile picture URL",
                "description": "URL of the profile photo."
              },
              "experience": {
                "type": "array",
                "title": "Experience",
                "description": "Work history entries (title, company, dateRange, or raw text)."
              },
              "education": {
                "type": "array",
                "title": "Education",
                "description": "Education entries (school, degree, dateRange, or raw text)."
              },
              "skills": {
                "type": "array",
                "title": "Skills",
                "description": "Listed skills as strings."
              },
              "connections": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Connections",
                "description": "Connection count label, e.g. 500+."
              },
              "scraped_at": {
                "type": "string",
                "format": "date-time",
                "title": "Scraped at",
                "description": "UTC timestamp when the profile was scraped."
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Error",
                "description": "Error or guidance message when status is not success."
              }
            }
          },
          "views": {
            "overview": {
              "title": "Overview",
              "transformation": {
                "fields": [
                  "url",
                  "status",
                  "fullName",
                  "headline",
                  "location",
                  "connections",
                  "scraped_at",
                  "error"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "status": {
                    "label": "Status",
                    "format": "text"
                  },
                  "fullName": {
                    "label": "Name",
                    "format": "text"
                  },
                  "headline": {
                    "label": "Headline",
                    "format": "text"
                  },
                  "location": {
                    "label": "Location",
                    "format": "text"
                  },
                  "connections": {
                    "label": "Connections",
                    "format": "text"
                  },
                  "scraped_at": {
                    "label": "Scraped",
                    "format": "date"
                  },
                  "error": {
                    "label": "Error",
                    "format": "text"
                  }
                }
              }
            }
          }
        }
      }
    },
    "buildNumber": "0.0.20",
    "actVersion": {
      "sourceType": "GIT_REPO",
      "buildTag": "latest",
      "versionNumber": "0.0"
    }
  }
}