curl --request GET \
--url https://api.harvest-api.com/linkedin/group \
--header 'X-API-Key: <api-key>'
{
"element": {
"id": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"memberCount": 123,
"logo": {
"url": "<string>",
"width": 123,
"height": 123,
"expiresAt": 123
},
"heroImage": {
"url": "<string>",
"width": 123,
"height": 123,
"expiresAt": 123
},
"description": "<string>",
"rules": "<string>",
"createdAt": {
"date": "2023-11-07T05:31:56Z",
"timestamp": 123
},
"groupPlusStatusActive": true,
"postApprovalEnabled": true,
"invitationLevel": "<string>",
"welcomeNote": "<string>",
"automatedWelcomeNoteEnabled": true,
"publicVisibility": true,
"admins": {
"totalCount": 123,
"text": "<string>",
"profiles": [
{
"id": "<string>",
"linkedinUrl": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"headline": "<string>",
"picture": "<string>"
}
]
}
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>"
}
}
Get the LinkedIn group. Required at least one of the query parameters
curl --request GET \
--url https://api.harvest-api.com/linkedin/group \
--header 'X-API-Key: <api-key>'
{
"element": {
"id": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"memberCount": 123,
"logo": {
"url": "<string>",
"width": 123,
"height": 123,
"expiresAt": 123
},
"heroImage": {
"url": "<string>",
"width": 123,
"height": 123,
"expiresAt": 123
},
"description": "<string>",
"rules": "<string>",
"createdAt": {
"date": "2023-11-07T05:31:56Z",
"timestamp": 123
},
"groupPlusStatusActive": true,
"postApprovalEnabled": true,
"invitationLevel": "<string>",
"welcomeNote": "<string>",
"automatedWelcomeNoteEnabled": true,
"publicVisibility": true,
"admins": {
"totalCount": 123,
"text": "<string>",
"profiles": [
{
"id": "<string>",
"linkedinUrl": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"headline": "<string>",
"picture": "<string>"
}
]
}
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>"
}
}
const params = new URLSearchParams({
url: 'https://www.linkedin.com/groups/1898033/', // by URL
groupId: '1898033', // by group ID alternatively
});
fetch(`https://api.harvest-api.com/linkedin/group?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
URL of the LinkedIn group (optional)
ID of the LinkedIn group (optional)
Group profile response
The response is of type object
.