LinkedIn profile API Python Client
Extract LinkedIn profile data with our LinkedIn profile API Python client. Get programmatic access to email addresses, education background, full profile information, job history, mobile numbers, company details, and more using simple Python code. Start free, no credit card required.

Trusted by industry leaders all over the world
Integrate our LinkedIn profile API
The Apify API client for Python is the official library that allows you to use LinkedIn profile API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.
Python
JavaScript
HTTP
MCP
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = { "profileUrls": [9 "https://www.linkedin.com/in/williamhgates",10 "http://www.linkedin.com/in/jeannie-wyrick-b4760710a",11 ] }12
13# Run the Actor and wait for it to finish14run = client.actor("dev_fusion/linkedin-profile-scraper").call(run_input=run_input)15
16# Fetch and print Actor results from the run's dataset (if there are any)17print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])18for item in client.dataset(run["defaultDatasetId"]).iterate_items():19 print(item)20
21# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Get data with LinkedIn profile API Python client
Use our Python API client to extract LinkedIn profile data by providing LinkedIn profile URLs as input parameters. The API returns structured data, including names, occupations, headlines, summaries, work experience, education history, skills, languages, certifications, email addresses, and mobile numbers for paying users.
Input
{ "profileUrls": [ "<https://www.linkedin.com/in/jenhsunhuang>" ]}
Output
[ { "urn": "ACoAABMznFkB_XPgkYHnUl33kIHTWt1DtMAV6Pg", "about": "In 1993, I founded NVIDIA with Chris Malachowsky and Curtis Priem to solve the problem of 3D graphics for the PC. Our pioneering work in accelerated computing led to the redefinition of modern computer graphics and the creation of modern AI. \\n\\nNow, we are fundamentally changing how computing works and what computers can do. The next industrial revolution has begun.\\n\\nNVIDIA has more than 32,000 people. We are strong and growing. We are consistently recognized as one of the “Best Places to Work” by Glassdoor, one of the “100 Best Companies to Work For” by Fortune magazine, a “TIME100 Most Influential Company,” the “Most Innovative Company of 2024” by Fast Company, and many more.\\n\\nWe’re hiring, with openings in every corner of our company—and we are looking for talented, driven, and adventurous people who want to tackle challenges no one else can solve. NVIDIA employees build technology that moves humanity forward and support the communities in which they work and live. Recognized as a top company in social responsibility, our employees are passionate donors to hundreds of charities around the globe. \\n\\nGo to careers.nvidia.com to take the first step. I look forward to building the future together.", "email": "jhuang@nvidia.com", "promos": [], "skills": [ { "title": "Management", "subComponents": [ { "description": [ { "text": "Endorsed by 42 colleagues at NVIDIA", "type": "insightComponent" }, { "text": "Endorsed by 10 people who know the skill", "type": "insightComponent" }, { "text": "57 endorsements", "type": "insightComponent" } ] } ] } ], "courses": [], "patents": [], "updates": [ { "image": "<https://media.licdn.com/dms/image/v2/D5610AQFK1eG36oLVog/image-shrink_1280/image-shrink_1280/0/1736278720578?e=1760396400&v=beta&t=1CZDA4K2hGJVbBEt4G0hvW_aOm7QgDHAwRi7fy3HiPs>", "numLikes": 7939, "postLink": "<https://www.linkedin.com/feed/update/urn:li:activity:7282508257972178944?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A7282508257972178944%29>", "postText": "Enjoyed sharing this at CES. Hope you take a moment to watch. ", "numComments": 332, "reactionTypeCounts": [ { "count": 6951, "reactionType": "LIKE" }, { "count": 456, "reactionType": "PRAISE" }, { "count": 420, "reactionType": "EMPATHY" }, { "count": 67, "reactionType": "INTEREST" }, { "count": 44, "reactionType": "APPRECIATION" }, { "count": 1, "reactionType": "ENTERTAINMENT" } ] } ], "fullName": "Jensen Huang", "headline": "Founder and CEO, NVIDIA", "jobTitle": "Founder and CEO", "lastName": "Huang", "projects": [], "firstName": "Jensen", "followers": 473730, "interests": [ { "section_name": "Top Voices", "section_components": [ { "size": "LARGE", "caption": "38,914,484 followers", "titleV2": "Bill Gates", "subtitle": "Chair, Gates Foundation and Founder, Breakthrough Energy", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/in/williamhgates>" }, { "size": "LARGE", "caption": "2,727,502 followers", "titleV2": "Reid Hoffman", "subtitle": "Co-Founder, LinkedIn, Manas AI & Inflection AI. Founding Team, PayPal. Author of Superagency. Podcaster of Possible and Masters of Scale. ", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/in/reidhoffman>" } ] }, { "section_name": "Companies", "section_components": [ { "size": "LARGE", "caption": "741,226 followers", "titleV2": "Yahoo", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/company/1288/>" }, { "size": "LARGE", "caption": "39,152,850 followers", "titleV2": "Google", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/company/1441/>" } ] }, { "section_name": "Groups", "section_components": [ { "size": "LARGE", "caption": "1,696 members", "titleV2": "AI, Machine Learning and Deep Learning in Healthcare & Pharmaceuticals ", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/groups/8447258>" }, { "size": "LARGE", "caption": "44,115 members", "titleV2": "Self Driving Cars - Autonomous Vehicles", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/groups/4731574>" } ] }, { "section_name": "Schools", "section_components": [ { "size": "LARGE", "caption": "1,422,112 followers", "titleV2": "Stanford University", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/school/1792/>" }, { "size": "LARGE", "caption": "248,473 followers", "titleV2": "Oregon State University", "subComponents": [], "textActionTarget": "<https://www.linkedin.com/school/165337/>" } ] } ], "languages": [], "educations": [ { "logo": "<https://media.licdn.com/dms/image/v2/C560BAQHr9suxyJBXMw/company-logo_200_200/company-logo_200_200/0/1635534378870/stanford_university_logo?e=1762387200&v=beta&t=2Iys1a6sNB-_08WgnfBLIHFGW-bnhRUgmvBOHAoh3ic>", "title": "Stanford University", "caption": "1990 - 1992", "subtitle": "MSEE", "breakdown": false, "companyId": "1792", "companyUrn": "urn:li:fsd_company:1792", "companyLink1": "<https://www.linkedin.com/company/1792/>", "subComponents": [ { "description": [] } ] }, { "logo": "<https://media.licdn.com/dms/image/v2/C4E0BAQEtLpPkfugtXg/company-logo_200_200/company-logo_200_200/0/1631354574889?e=1762387200&v=beta&t=nNLYPb2zHmiPx6T2BvjN2xM9ABtsG1nkxDsujR838mI>", "title": "Oregon State University", "caption": "1980 - 1984", "subtitle": "BSEE", "breakdown": false, "companyId": "165337", "companyUrn": "urn:li:fsd_company:165337", "companyLink1": "<https://www.linkedin.com/company/165337/>", "subComponents": [ { "description": [] } ] } ], "highlights": [], "profilePic": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_100_100/profile-displayphoto-shrink_100_100/0/1724130099593?e=1762387200&v=beta&t=LAGUv_b6a5ZKF5Z2skCp5Ft8AIdpnz7pKpfmcUJkLK8>", "testScores": [], "companyName": "Nvidia", "companySize": "10001+", "connections": 1586, "experiences": [ { "logo": "<https://media.licdn.com/dms/image/v2/D560BAQGV36q2EowSyw/company-logo_200_200/company-logo_200_200/0/1724881581208/nvidia_logo?e=1762387200&v=beta&t=Q4lGjY9EEEneYUwZ_a_K0datMSwWKAsOgBsdgoHkFwI>", "title": "Founder and CEO", "caption": "1993 - Present · 32 yrs 10 mos", "subtitle": "NVIDIA", "breakdown": false, "companyId": "3608", "companyUrn": "urn:li:fsd_company:3608", "companyLink1": "<https://www.linkedin.com/company/3608/>", "subComponents": [ { "description": [] } ] }, { "logo": "<https://media.licdn.com/dms/image/v2/C4D0BAQENjffsNb02vA/company-logo_200_200/company-logo_200_200/0/1630500576155/dennys_logo?e=1762387200&v=beta&t=aBY0raiFeQgEfrLIxJ1uqsmCpSkmyBtYRALTFKId8mM>", "title": "Dishwasher, Busboy, Waiter", "caption": "1978 - 1983 · 5 yrs", "subtitle": "Denny's · Seasonal", "breakdown": false, "companyId": "13366", "companyUrn": "urn:li:fsd_company:13366", "companyLink1": "<https://www.linkedin.com/company/13366/>", "subComponents": [ { "description": [] } ] } ], "linkedinUrl": "<https://www.linkedin.com/in/jenhsunhuang>", "mobileNumber": null, "publications": [], "organizations": [], "verifications": [], "companyWebsite": "nvidia.com", "openConnection": true, "companyIndustry": "Computer Hardware", "companyLinkedin": "linkedin.com/company/nvidia", "honorsAndAwards": [], "recommendations": [], "volunteerCauses": [], "companyFoundedIn": 1993, "publicIdentifier": "jenhsunhuang", "addressCountryOnly": "United States", "addressWithCountry": "Los Altos, California, United States", "currentJobDuration": "32 yrs 10 mos", "volunteerAndAwards": [], "addressWithoutCountry": "Los Altos, California", "profilePicHighQuality": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1724130099627?e=1762387200&v=beta&t=D_m4n3U8xGuQQqFyOFRoWPo-7UNutINCd8BnXiD_5A8>", "licenseAndCertificates": [], "currentJobDurationInYrs": 32.83, "profilePicAllDimensions": [ { "url": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_100_100/profile-displayphoto-shrink_100_100/0/1724130099593?e=1762387200&v=beta&t=LAGUv_b6a5ZKF5Z2skCp5Ft8AIdpnz7pKpfmcUJkLK8>", "width": 100, "height": 100, "expiresAt": 1762387200000 }, { "url": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1724130099593?e=1762387200&v=beta&t=waDbwYxwiZd14BhdNkd6_Fv33h0-Sr4qLShJ9me7B7I>", "width": 200, "height": 200, "expiresAt": 1762387200000 }, { "url": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1724130099593?e=1762387200&v=beta&t=I-YTOfZjkzPn4YbtncjgNN7Rp1d5yw5U-qrW1mL6quQ>", "width": 400, "height": 400, "expiresAt": 1762387200000 }, { "url": "<https://media.licdn.com/dms/image/v2/D5603AQHOzNxbdK5hrg/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1724130099627?e=1762387200&v=beta&t=D_m4n3U8xGuQQqFyOFRoWPo-7UNutINCd8BnXiD_5A8>", "width": 800, "height": 800, "expiresAt": 1762387200000 } ], "topSkillsByEndorsements": "Management" }]
Sign up for Apify account01
Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.
Install Apify Python client02
Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with LinkedIn profile API from your Python applications.
Get your Apify API token03
Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.
Integrate LinkedIn profile API04
Navigate to the LinkedIn profile API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate LinkedIn profile API into your Python application.
Get your LinkedIn profile data via API05
The LinkedIn profile API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.

Why use Apify?
Never get blocked
Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.
Customers love us
We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.
Monitor your runs
With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.
Export to various formats
Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.
Integrate Apify to your workflow
You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.
Large developer community
Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!
Python-ready LinkedIn profile data extraction
Connect to hundreds of apps right away using ready-made integrations, or set up your own with webhooks and our API.
No, LinkedIn does not provide an official Python API client for accessing individual profile data at scale. This Python-based scraper operates without requiring LinkedIn cookies or account credentials, making it a practical alternative for accessing LinkedIn profile information that would otherwise require complex authentication processes through official Python API integration.
Yes, you can try our LinkedIn profile Python API client for free with Apify's free tier. New users receive free compute credits to test the Python API client's functionality before committing to a paid plan. The scraper is priced at $10.00 per 1,000 results for continued usage.
You can extract comprehensive LinkedIn profile data through Python API clients including full names, professional headlines, job titles, current and past work experience, education history, skills, languages, honors, certifications, company information, industry details, company websites, and most importantly - email addresses. Paying users also get access to mobile number discovery features through Python API implementations.
Scraping LinkedIn profile data with Python API clients falls into a legal gray area that depends on how you use the data and your jurisdiction. This Python API client only accesses publicly available information without requiring login credentials or cookies. However, you should comply with LinkedIn's terms of service, applicable data protection laws like GDPR, and use the data responsibly for legitimate business purposes.
Getting started with our LinkedIn profile Python API is easy — simply create a free Apify account, get your API token, and start using the LinkedIn profile API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.