# st.openPersonPage

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

This action allows you to open a person page to retrieve their basic information and perform additional person-related actions if needed.

:::surface node
In the Node SDK this is `linkedapi.fetchPerson` – the call is below, under [Parameters](#parameters).
:::

:::surface python
In the Python SDK this is `linkedapi.fetch_person` – the call is below, under [Parameters](#parameters).
:::

:::surface cli
In the CLI this is `linkedin person fetch` – the command is below, under [Parameters](#parameters).
:::

## Constraints

> ⏺️ **Root Start:** allowed, when `personUrl` parameter is provided.

> ⬆️ **Parent Actions:** [st.doForPeople](/docs/action-st-do-for-people), [nv.openPersonPage](/docs/action-nv-open-person-page).

> ⬇️ **Child Actions:** [st.sendMessage](/docs/action-st-send-message), [st.syncConversation](/docs/action-st-sync-conversation), [nv.syncConversation](/docs/action-nv-sync-conversation), [st.checkConnectionStatus](/docs/action-st-check-connection-status), [st.sendConnectionRequest](/docs/action-st-send-connection-request), [st.withdrawConnectionRequest](/docs/action-st-withdraw-connection-request), [st.removeConnection](/docs/action-st-remove-connection), [st.retrievePersonExperience](/docs/action-st-retrieve-person-experience), [st.retrievePersonEducation](/docs/action-st-retrieve-person-education), [st.retrievePersonSkills](/docs/action-st-retrieve-person-skills), [st.endorsePersonSkill](/docs/action-st-endorse-person-skill), [st.retrievePersonLanguages](/docs/action-st-retrieve-person-languages), [st.retrievePersonPosts](/docs/action-st-retrieve-person-posts), [st.retrievePersonComments](/docs/action-st-retrieve-person-comments), [st.retrievePersonReactions](/docs/action-st-retrieve-person-reactions), [nv.openPersonPage](/docs/action-nv-open-person-page).

## Parameters

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

```typescript tab=Node
const workflow = await linkedapi.fetchPerson.execute({
  personUrl: "https://www.linkedin.com/in/person1"
});

const { data, errors } = await linkedapi.fetchPerson.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import FetchPersonParams

workflow = linkedapi.fetch_person.execute(
    FetchPersonParams(
        person_url="https://www.linkedin.com/in/person1",
    )
)

result = linkedapi.fetch_person.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin person fetch https://www.linkedin.com/in/person1
```

In AI assistants, the MCP server runs this action as the `fetch_person` tool.

:::surface node,python
In the SDK this is the `fetchPerson` method. It always returns basic information: `basicInfo`, like `label` and `then`, exists only in workflow JSON. It takes the other parameters below and returns the result below in `data`.

Each `retrieve…` flag of `fetchPerson` adds one child action, and its data comes back under its own property of `data`:

| Flag | Child action | Configuration | Property of `data` |
| --- | --- | --- | --- |
| `retrieveExperience` | [`st.retrievePersonExperience`](/docs/action-st-retrieve-person-experience) | – | `experiences` |
| `retrieveEducation` | [`st.retrievePersonEducation`](/docs/action-st-retrieve-person-education) | – | `education` |
| `retrieveSkills` | [`st.retrievePersonSkills`](/docs/action-st-retrieve-person-skills) | – | `skills` |
| `retrieveLanguages` | [`st.retrievePersonLanguages`](/docs/action-st-retrieve-person-languages) | – | `languages` |
| `retrievePosts` | [`st.retrievePersonPosts`](/docs/action-st-retrieve-person-posts) | `postsRetrievalConfig`: `limit`, `since` | `posts` |
| `retrieveComments` | [`st.retrievePersonComments`](/docs/action-st-retrieve-person-comments) | `commentsRetrievalConfig`: `limit`, `since` | `comments` |
| `retrieveReactions` | [`st.retrievePersonReactions`](/docs/action-st-retrieve-person-reactions) | `reactionsRetrievalConfig`: `limit`, `since` | `reactions` |

A configuration object takes effect only with its flag set to `true`, and takes the parameters of its child action – their defaults and limits are on the child's page. For example, the 50 most recent posts since a date:
:::

:::surface node
```typescript
const workflow = await linkedapi.fetchPerson.execute({
  personUrl: "https://www.linkedin.com/in/person1",
  retrievePosts: true,
  postsRetrievalConfig: { limit: 50, since: "2026-01-01T00:00:00Z" }
});
```
:::

:::surface python
```python
from linkedapi import FetchPersonParams

workflow = linkedapi.fetch_person.execute(
    FetchPersonParams(
        person_url="https://www.linkedin.com/in/person1",
        retrieve_posts=True,
        posts_retrieval_config={"limit": 50, "since": "2026-01-01T00:00:00Z"},
    )
)
```
:::

:::surface node,python
When a child action fails, its error comes back in `errors` and the rest of `data` is still returned.
:::

:::surface cli
In the CLI this is `linkedin person fetch`:

```bash
linkedin person fetch <url> [flags]
```

| Arg | Required | Description |
| --- | --- | --- |
| `url` | yes | LinkedIn profile URL |

| Flag | Type | Description |
| --- | --- | --- |
| `--experience` | boolean | Include work experience |
| `--education` | boolean | Include education history |
| `--skills` | boolean | Include skills |
| `--languages` | boolean | Include languages |
| `--posts` | boolean | Include recent posts |
| `--comments` | boolean | Include recent comments |
| `--reactions` | boolean | Include recent reactions |
| `--posts-limit` | integer | Max posts to retrieve (requires `--posts`) |
| `--posts-since` | string | Posts since ISO timestamp (requires `--posts`) |
| `--comments-limit` | integer | Max comments to retrieve (requires `--comments`) |
| `--comments-since` | string | Comments since ISO timestamp (requires `--comments`) |
| `--reactions-limit` | integer | Max reactions to retrieve (requires `--reactions`) |
| `--reactions-since` | string | Reactions since ISO timestamp (requires `--reactions`) |
:::

- `label` (optional) – custom label for tracking this action in workflow completion.
- `personUrl` (required for root start, forbidden for parent start) – [public or hashed](/faq/what-are-hashed-url-and-public-url) LinkedIn URL of the person.
- `basicInfo` (optional, default: `false`) – when set to `true`, the action includes basic person information in the results.
- `then` (optional) – object or array of child actions to be executed within this action.

## Result options

1. **Successful page opening with `basicInfo` set to `true`:**

```json
{
  "actionType": "st.openPersonPage",
  "label": "person1",
  "success": true,
  "data": {
    "name": "John Doe",
    "urn": "urn:li:member:123456789",
    "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",
    "about": "Software Engineer with 8+ years of experience building scalable web applications.",
    "companyName": "TechCorp",
    "companyHashedUrl": "https://www.linkedin.com/company/12345678",
    "followersCount": 37,
    "avatarUrl": "https://media.licdn.com/dms/image/v2/D5603AQE/profile-displayphoto-shrink_100_100/0/1700000000000",
    "viewerState": { "connectionDegree": "2nd" },
    "then": { ... }
  }
}
```

- `label` – included only if specified in the action parameters.
- `data` – basic information about the person and results of child actions execution.
  - `name` – full name of the person.
  - `urn` – [URN](/docs/data-conventions#linkedin-urns) of the person, or `null` if LinkedIn does not expose it.
  - `publicUrl` – [public](/faq/what-are-hashed-url-and-public-url) LinkedIn URL of the person.
  - `hashedUrl` – [hashed](/faq/what-are-hashed-url-and-public-url) LinkedIn URL of the person.
  - `headline` – headline of the person.
  - `location` – free-form string indicating the person's location.
  - `countryCode` – two-character code of the person's country.
  - `position` – current job position of the person.
  - `about` – "About" section text from the person's profile.
  - `companyName` – name of the person's current company.
  - `companyHashedUrl` – [hashed](/faq/what-are-hashed-url-and-public-url) LinkedIn URL of the person's current company.
  - `followersCount` – number of followers the person has.
  - `avatarUrl` – URL of the person's profile photo, or `null` if the person has no photo.
  - `viewerState` – how your account relates to the person, see [viewer state](/docs/data-conventions#viewer-state).
    - `connectionDegree` – `1st`, `2nd`, or `3rd+`, as LinkedIn shows it next to the name, or `null` if LinkedIn does not show it.
  - `then` – results of child actions execution.

2. **Successful page opening with `basicInfo` set to `false`:**

```json
{
  "actionType": "st.openPersonPage",
  "label": "person1",
  "success": true,
  "data": {
    "then": { ... }
  }
}
```

- `label` – included only if specified in the action parameters.
- `data.then` – results of child actions execution.

3. **Failed page opening:**

```json
{
  "actionType": "st.openPersonPage",
  "label": "person1",
  "success": false,
  "error": {
    "type": "personNotFound",
    "message": "The provided URL is not an existing LinkedIn person."
  }
}
```

- `label` – included only if specified in the action parameters.
- `error.type` – enum with the following possible values:
  - `personNotFound` – provided URL is not an existing LinkedIn person.
  - `personLikelyChangedPublicUrl` – the provided URL no longer opens, but this person appeared in your account's [network events](/docs/monitoring-network) before, so they most likely changed their public URL. Retry with their [hashed URL](/faq/what-are-hashed-url-and-public-url).
  - `selfProfileNotAllowed` – action cannot be performed on your own profile.
