List the profile and Pages of a LinkedIn login
curl --request GET \
--url https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 2,
"login_id": "cred_01J...",
"login_name": "Jane Doe",
"profiles": [
{
"assignable": true,
"assigned_account_id": "<string>",
"assigned_brand_id": "<string>",
"assigned_brand_name": "<string>",
"connection_type": "organization",
"name": "Acme Corp",
"picture_url": "<string>",
"platform_account_id": "urn:li:organization:123456",
"username": "acme-corp"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}LinkedIn
List the profile and Pages of a LinkedIn login
Lists the member profile and every company Page a LinkedIn login can connect, with assignment state. A Page the member started administering after the last authorization appears without re-authenticating. A login authorized with connection_type profile lists the member only, and one authorized with connection_type organization lists its Pages only. loginId is the login_id of any LinkedIn account connected through that login.
GET
/
platforms
/
linkedin
/
logins
/
{loginId}
/
profiles
List the profile and Pages of a LinkedIn login
curl --request GET \
--url https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/linkedin/logins/{loginId}/profiles"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 2,
"login_id": "cred_01J...",
"login_name": "Jane Doe",
"profiles": [
{
"assignable": true,
"assigned_account_id": "<string>",
"assigned_brand_id": "<string>",
"assigned_brand_name": "<string>",
"connection_type": "organization",
"name": "Acme Corp",
"picture_url": "<string>",
"platform_account_id": "urn:li:organization:123456",
"username": "acme-corp"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
LinkedIn login ID