# retrieveSSI

This method allows you to retrieve your current SSI (Social Selling Index).

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

  const { data } = await linkedapi.retrieveSSI.result(workflow.workflowId);

  // The structure of the 'data' object is below
  if (data) {
    console.log('Your SSI score:', data.ssi);
    console.log('Industry ranking:', data.industryTop + '%');
    console.log('Network ranking:', data.networkTop + '%');
  }
} 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_ssi.execute()

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

    # The structure of the 'data' object is below
    if data:
        print("Your SSI score:", data.ssi)
        print("Industry ranking:", f"{data.industry_top}%")
        print("Network ranking:", f"{data.network_top}%")
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

- `ssi` – number (1-100) representing your current Social Selling Index.
- `industryTop` – percentage (1-100) showing your industry ranking by SSI score. For example, a value of 5 means you are in the top 5% of your industry.
- `networkTop` – percentage (1-100) showing your network ranking by SSI score. For example, a value of 10 means you are in the top 10% of your network.

## Errors

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