# Retrieving person data

This page describes how to create workflows for retrieving various types of LinkedIn person data, including basic information, experience, education, and more.

## Retrieving basic info

To retrieve basic information about a person, you need to include [`st.openPersonPage`](/docs/action-st-open-person-page) action in your workflow, with `basicInfo` parameter set to `true`. Here's an example:

**Workflow:**

```json
{
  "actionType": "st.openPersonPage",
  "personUrl": "https://www.linkedin.com/in/person1",
  "basicInfo": true
}
```

**Completion:**

```json
{
  "actionType": "st.openPersonPage",
  "success": true,
  "data": {
    "name": "John Doe",
    "publicUrl": "https://www.linkedin.com/in/person1",
    "hashedUrl": "https://www.linkedin.com/in/SInQBmjJ015eLr8",
    "headline": "Software Engineer at TechCorp",
    "location": "San Francisco, USA",
    "countryCode": "US",
    "position": "Software Engineer",
    "companyName": "TechCorp",
    "companyHashedUrl": "https://www.linkedin.com/company/12345678",
    "followersCount": 2322
  }
}
```

> 💡 If you want to retrieve basic information about a person from **Sales Navigator**, use [`nv.openPersonPage`](/docs/action-nv-open-person-page) action.

## Retrieving experience

To retrieve information about a person's experience, you need to include [`st.retrievePersonExperience`](/docs/action-st-retrieve-person-experience) action as a child of [`st.openPersonPage`](/docs/action-st-open-person-page). Here's an example:

**Workflow:**

```json
{
  "actionType": "st.openPersonPage",
  "personUrl": "https://www.linkedin.com/in/person1",
  "basicInfo": false,
  "then": [
    {
      "actionType": "st.retrievePersonExperience"
    }
  ]
}
```

**Completion:**

```json
{
  "actionType": "st.openPersonPage",
  "success": true,
  "data": {
    "then": [
      {
        "actionType": "st.retrievePersonExperience",
        "success": true,
        "data": [
          {
            "position": "Software Engineer",
            "companyName": "TechCorp",
            "companyHashedUrl": "https://www.linkedin.com/company/12345678",
            "employmentType": "fullTime",
            "locationType": "onSite",
            "description": "Developing innovative software solutions.",
            "duration": 24,
            "startTime": "2021-01-01T00:00:00Z",
            "endTime": null,
            "location": "San Francisco, USA"
          },
          {
            "position": "Junior Developer",
            "companyName": "CodeBase Inc.",
            "companyHashedUrl": "https://www.linkedin.com/company/87654321",
            "employmentType": "internship",
            "locationType": "remote",
            "description": "Worked on front-end development tasks.",
            "duration": 12,
            "startTime": "2020-01-01T00:00:00Z",
            "endTime": "2020-12-31T00:00:00Z",
            "location": null
          }
        ]
      }
    ]
  }
}
```

## Retrieving education

To retrieve information about a person's education, you need to include [`st.retrievePersonEducation`](/docs/action-st-retrieve-person-education) action as a child of [`st.openPersonPage`](/docs/action-st-open-person-page). Here's an example:

**Workflow:**

```json
{
  "actionType": "st.openPersonPage",
  "personUrl": "https://www.linkedin.com/in/person1",
  "basicInfo": false,
  "then": [
    {
      "actionType": "st.retrievePersonExperience"
    },
    {
      "actionType": "st.retrievePersonEducation"
    }
  ]
}
```

**Completion:**

```json
{
  "actionType": "st.openPersonPage",
  "success": true,
  "data": {
    "then": [
      {
        "actionType": "st.retrievePersonExperience",
        "success": true,
        "data": [ ... ]
      },
      {
        "actionType": "st.retrievePersonEducation",
        "success": true,
        "data": [ 
          {
            "schoolName": "Harvard University",
            "schoolHashedUrl": "https://www.linkedin.com/company/12345678",
            "details": "Master of Science in Computer Science, Artificial Intelligence"
          },
          {
            "schoolName": "MIT",
            "schoolHashedUrl": "https://www.linkedin.com/company/87654321",
            "details": "Bachelor of Science in Electrical Engineering and Computer Science"
          }
        ]
      }
    ]
  }
}
```

## Retrieving other data

To retrieve other types of person data, you can use the following actions as children of [`st.openPersonPage`](/docs/action-st-open-person-page) (just as in the examples above):

- [`st.retrievePersonSkills`](/docs/action-st-retrieve-person-skills) – allows you to retrieve a person's skills.
- [`st.retrievePersonLanguages`](/docs/action-st-retrieve-person-languages) – allows you to retrieve a person's languages.
- [`st.retrievePersonPosts`](/docs/action-st-retrieve-person-posts) – allows you to retrieve posts published by a person and perform additional post-related actions if needed.
- [`st.retrievePersonComments`](/docs/action-st-retrieve-person-comments) – allows you to retrieve comments left by a person.
- [`st.retrievePersonReactions`](/docs/action-st-retrieve-person-reactions) – allows you to retrieve reactions made by a person.

> This page provides examples of [workflows](/docs/building-workflows) and their [completions](/docs/executing-workflows). For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding [action documentation pages](/docs/actions-overview).
