Skip to main content

Connections

Monitor connection updates

The Linked API allows you to monitor updates to your LinkedIn connections programmatically. Below is an example of how to monitor connection updates using a simple GET request.

Endpoint

GET /v1/connections/updates

Parameters

  • since (optional, string): A timestamp to fetch updates since a particular time.

Example

curl -X GET https://api.linkedapi.io/v1/connections/updates \
-H "Content-Type: application/json" \
-H "x-api-token: your-api-token-here" \
-H "account-token: your-account-token-here"

Response

{
  "updates": [
    {
      "profileUrl": "https://www.linkedin.com/in/johndoe/",
      "status": "Connected",
      "timestamp": "2024-09-21T12:34:00Z"
    },
    {
      "profileUrl": "https://www.linkedin.com/in/janedoe/",
      "status": "Disconnected",
      "timestamp": "2024-09-20T09:21:00Z"
    }
  ]
}

Status Variations:

  • Connected: A new connection has been made.
  • Disconnected: A connection has been removed.

Errors

  • 400 Bad Request: Invalid or missing parameters.
  • 401 Unauthorized: Missing or invalid authorization token.