Groups
Search and join LinkedIn groups, list their members and posts, and publish in them with Unipile API.
A group's posts are regular posts: once you have a post ID from a group, the Posts methods (comments, replies, reactions, deletion) work on it.
Search groups
Use Perform Groups Search with keywords. Groups are searched by keywords only: is_member and is_public get a 400. Send the same body with the cursor of the previous page to get the next one.
curl --request POST \
--url 'https://api.unipile.com/v2/{ACCOUNT_ID}/search/groups?limit=10' \
--header 'X-API-KEY: {YOUR_API_KEY}' \
--header 'content-type: application/json' \
--data '{ "keywords": "test automation" }'Each result has the account's membership_status: member, pending or not_member.
Join a group
Use Join a Group with the group's numeric ID (the one in linkedin.com/groups/{ID}). A group that approves its members answers pending.
Good to knowLinkedIn returns the comments of a group's posts to its members only. Before joining, List all Post Comments on a group post returns an empty list.
List members and posts
- List all Group's Members returns the members with
is_admin(owners and managers). Only a member of the group can list them: anyone else gets a403. - List all Group's Posts returns the posts, newest first.
- An unknown group ID gets a
404.
Retrieve and create a group
- Get a Group returns its name, description, member count, the account's membership and whether it administers it (owner or manager). An unknown group gets a
404. - Create a Group creates a group with LinkedIn's default settings: members can invite their relations, and admins review new posts. A group is private (and unlisted) by default, public with
is_public: true. LinkedIn refuses some names, such as one containing "LinkedIn": the400gives its reason.
Invite relations
Add a Member to a Group invites a relation of the account (user_id, an ACo… ID) to the group: they join once they accept. Inviting the same person again succeeds without sending a new invitation.
Publish in a group
Use Create a Post in a Group with text and, optionally, attachments. The post is published by the account itself: publishing as a company page is not supported. Delete it with Delete a Post.
Not supported
Updating and leaving a group, and administering it (admins, removing members, join requests, invite link) are not supported. LinkedIn groups have no events.
Updated 3 days ago
What’s Next
Continue with LinkedIn events.