> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn

> LinkedIn's official API for the signed-in member: identity, and posts by a member or company page.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/linkedin.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=fdf4154d67316bc0f8db7769809ad1cf)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Needs&#x20;

`LINKEDIN_ACCESS_TOKEN`

Endpoints

3

Auth

Key in header

[Vendor docs](https://learn.microsoft.com/en-us/linkedin/)

## Setup

| Variable | | What it is |
| - | - | - |
| `LINKEDIN_ACCESS_TOKEN` | required | A LinkedIn member access token from the OAuth 2.0 flow, with the scopes you need (w\_member\_social to post, openid and profile for identity); LinkedIn Developer Portal > your app > Auth |
| `LINKEDIN_API_VERSION` | optional | The Linkedin-Version header, YYYYMM. LinkedIn sunsets each monthly version after about a year (202511 on 2026-11-16). Default `202610`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Only your own member data, or the company pages you administer: LinkedIn has no public search for people or posts. Permissions such as r\_member\_social are restricted to approved apps.
* Every call carries Linkedin-Version and X-Restli-Protocol-Version headers; URNs in paths and query values must be URL-encoded.
* Member access tokens expire; refresh them outside this catalog.
* Finder calls need the X-RestLi-Method: FINDER header and page with start and count.

## Endpoints

GET

Get the signed-in member

Name, picture, locale and (optionally) email of the token's member. sub is the member id: the person URN is urn:li:person:\{sub}.

[Open](#linkedin-me-userinfo)

GET

List posts by a member or organization

The posts authored by a person or a company page, last modified first.

[Open](#linkedin-posts-by-author)

GET

Get a post

One post by its share or ugcPost URN.

[Open](#linkedin-posts-get)

### Get the signed-in member

GET

`/v2/userinfo`

`linkedin.me.userinfo`

Name, picture, locale and (optionally) email of the token's member. sub is the member id: the person URN is urn:li:person:\{sub}.

Input

No inputs.

[Vendor docs](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions)

```python Python theme={null}
router.call_data_api("linkedin.me.userinfo")
```

```text MCP theme={null}
call_data_api(endpoint="linkedin.me.userinfo")
```

> [!NOTE]
>
> * Needs the openid and profile scopes (email for the email field). email and email\_verified may be absent.

### List posts by a member or organization

GET

`/rest/posts`

`linkedin.posts.by_author`

The posts authored by a person or a company page, last modified first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Always author. One of `author` Example `author`</td></tr>
    <tr><td>`author` required</td><td>string</td><td>query</td><td>Person or organization URN, URL-encoded. Example `urn%3Ali%3Aorganization%3A2414183`</td></tr>
    <tr><td>`viewContext`</td><td>string</td><td>query</td><td>READER (published version, default) or AUTHOR (latest version, including drafts). One of `READER`, `AUTHOR`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Index of the first item; default 0.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size; default 10, max 100.
      </td>
    </tr>

    <tr><td>`sortBy`</td><td>string</td><td>query</td><td>Descending order; default LAST\_MODIFIED. One of `LAST_MODIFIED`, `CREATED`</td></tr>
    <tr><td>`X-RestLi-Method` required</td><td>string</td><td>header</td><td>Send FINDER. One of `FINDER` Example `FINDER`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/posts-api) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

```python Python theme={null}
router.call_data_api("linkedin.posts.by_author", {'q': 'author', 'author': 'urn%3Ali%3Aorganization%3A2414183', 'X-RestLi-Method': 'FINDER'})
```

```text MCP theme={null}
call_data_api(endpoint="linkedin.posts.by_author", params={"q": "author", "author": "urn%3Ali%3Aorganization%3A2414183", "X-RestLi-Method": "FINDER"})
```

> [!NOTE]
>
> * A member's posts need r\_member\_social, which only approved apps get; an organization's need r\_organization\_social and an admin-type page role.
> * Pages by start and count; paging.links gives the next page.

### Get a post

GET

`/rest/posts/{post_urn}`

`linkedin.posts.get`

One post by its share or ugcPost URN.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`post_urn` required</td><td>string</td><td>path</td><td>Share or ugcPost URN, URL-encoded (urn%3Ali%3Ashare%3A123). Example `urn:li:share:6844785523593134080`</td></tr>
    <tr><td>`viewContext`</td><td>string</td><td>query</td><td>READER (default) or AUTHOR. One of `READER`, `AUTHOR`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/posts-api) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

```python Python theme={null}
router.call_data_api("linkedin.posts.get", {'post_urn': 'urn:li:share:6844785523593134080'})
```

```text MCP theme={null}
call_data_api(endpoint="linkedin.posts.get", params={"post_urn": "urn:li:share:6844785523593134080"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.