API referenceLinkedin users and invitations
GET
/api/v1/users/relations

The connections, newest first, a page of limit (at most 40, as LinkedIn's connections page loads). Pass cursor back for the next page; null on the last. Some accounts can page through their newest 200 connections only: past them the list ends (cursor is null).

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Query Parameters

account_id*string

The LinkedIn account (lg_…) to act as.

Length1 <= length
limit?integer

Connections per page, 1 to 40. Default 40.

Range1 <= value <= 40
Default40
cursor?string

The previous page's cursor, as given. Leave it out for the first page.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/users/relations?account_id=lg_3f9c2a7b1d"
{  "object": "UserRelationsList",  "items": [    {      "object": "UserRelation",      "member_id": "ACoAAB1a2b3c4d5e6f",      "member_urn": "urn:li:fsd_profile:ACoAAB1a2b3c4d5e6f",      "public_identifier": "jane-doe",      "public_profile_url": "https://www.linkedin.com/in/jane-doe",      "first_name": "Jane",      "last_name": "Doe",      "headline": "Head of Sales at Example Corp",      "created_at": 1761901800000    }  ],  "cursor": null}