Skip to main content

Standard Interface

retrievePerformance

This method allows you to retrieve performance analytics from your LinkedIn dashboard.


try {
  const workflowId = await linkedapi.retrievePerformance.execute();
  
  const { data, errors } = await linkedapi.retrievePerformance.result(workflowId);
  
  // The structure of the 'data' object is below
  if (data) {
    console.log('Followers count:', data.followersCount);
    console.log('Post views (last 7 days):', data.postViewsLast7Days);
    console.log('Profile views (last 90 days):', data.profileViewsLast90Days);
    console.log('Search appearances (previous week):', data.searchAppearancesPreviousWeek);
  }
} catch (e) {
  // A list of all critical errors can be found here:
  // https://linkedapi.io/sdks/handling-results-and-errors/#handling-critical-errors
  if (e instanceof LinkedApiError) {
    console.error(`Critical Error - Type: ${e.type}, Message: ${e.message}`);
  } else {
    console.error('An unexpected, non-API error occurred:', e);
  }
}

# Python SDK is coming soon!
#
# You can always use Linked API through HTTP
# https://linkedapi.io/docs/

// Go SDK is coming soon!
//
// You can always use Linked API through HTTP
// https://linkedapi.io/docs/

Params

The method doesn't require any parameters.

Data

  • followersCount – total number of your followers.
  • postViewsLast7Days – number of views on your posts in the last 7 days.
  • profileViewsLast90Days – number of views on your profile in the last 90 days.
  • searchAppearancesPreviousWeek – number of times your profile appeared in LinkedIn searches during the previous week.

Errors

The method has no execution errors (errors is always []).