# retrievePerformance

This method allows you to retrieve performance analytics from your [LinkedIn dashboard](https://www.linkedin.com/dashboard/).

```typescript
try {
  const workflow = await linkedapi.retrievePerformance.execute();

  const { data, errors } = await linkedapi.retrievePerformance.result(workflow.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
from linkedapi import LinkedApiError

try:
    workflow = linkedapi.retrieve_performance.execute()

    result = linkedapi.retrieve_performance.result(workflow.workflow_id)
    data = result.data

    # The structure of the 'data' object is below
    if data:
        print("Followers count:", data.followers_count)
        print("Post views (last 7 days):", data.post_views_last_7_days)
        print("Profile views (last 90 days):", data.profile_views_last_90_days)
        print("Search appearances (previous week):", data.search_appearances_previous_week)
except LinkedApiError as e:
    # A list of all critical errors can be found here:
    # https://linkedapi.io/sdks/handling-results-and-errors/#handling-critical-errors
    print(f"Critical Error - Type: {e.type}, Message: {e.message}")
except Exception as error:
    print("An unexpected, non-API error occurred:", error)
```

## 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 `[]`).
