Retrieve basic person info
The Linked API allows you to retrieve basic information about a person on LinkedIn programmatically. Below is an example of how to retrieve this information using a GET
request.
Endpoint
GET /v1/people
Parameters
url
(required, string): The LinkedIn profile URL of the person to retrieve information from.include
(optional, string): Set tobasicInfo
to retrieve only the basic information of the person.
Example
curl -X GET "https://api.linkedapi.io/v1/people?include=basicInfo" \
-H "Content-Type: application/json" \
-H "x-api-token: your-api-token-here" \
-H "account-token: your-account-token-here" \
-d '{
"url": "https://www.linkedin.com/in/johndoe/"
}'
Response
{
"data": {
"basicInfo": {
"name": "John Doe",
"title": "Software Engineer",
"company": "Google",
"location": "San Francisco, CA",
"profileUrl": "https://www.linkedin.com/in/johndoe/",
"profilePicture": "https://www.linkedin.com/profile-photo.jpg"
}
},
"success": true
}
Errors
400 Bad Request
: Invalid or missing parameters.401 Unauthorized
: Missing or invalid authorization token.404 Not Found
: Profile not found.