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

# LinkedIn Personal Profile as a data source

> Bring the daily post metrics, followers and basic profile of a LinkedIn member to Nekt, with each person connecting their own profile.

LinkedIn is the world's largest professional network. This connector reads the analytics LinkedIn shows a member about their own profile: the metrics of all their posts summed per day (impressions, members reached, reactions, comments, reposts, saves, sends, link clicks, premium button clicks, followers gained and profile views from content), their follower counts, and their basic profile. Each person connects their own profile by authorizing access in LinkedIn, so a team with several people creates one source per person.

![](https://mintcdn.com/nekt/Tq9V5uN_WATiFGnJ/assets/logo/logo-linkedin.png?fit=max\&auto=format\&n=Tq9V5uN_WATiFGnJ\&q=85\&s=9381b948fa1dbf0d4290344b3d839a50)

> [!NOTE]
>
> The connector only reads data. It never posts, comments or changes anything in LinkedIn.

> [!NOTE]
>
> Metrics are summed over all of the member's posts. LinkedIn does not let new applications list a member's posts, so per-post metrics are not available. For paid campaigns, use [LinkedIn Ads](https://docs.nekt.com/sources/linkedin-ads.md).

> [!NOTE]
>
> The [LinkedIn](https://docs.nekt.com/sources/linkedin.md) connector reads company pages and can also read a personal profile. This connector is dedicated to personal profiles: it asks only for the permissions a personal profile needs, brings members reached, link clicks, followers gained and profile views from content per day, and keeps a daily history of the total followers. Use the LinkedIn connector for company pages.

## Configuring LinkedIn Personal Profile as a Source

In the [Sources](https://app.nekt.ai/sources) tab, click on the "Add source" button located on the top right of your screen. Then, select the LinkedIn Personal Profile option from the list of connectors.

Click **Next** and you'll be prompted to add your access.

### 1. Add account access

Click the authorization button and log in with the LinkedIn account whose data this source will read. Accept every permission LinkedIn asks for: your post analytics, your profile analytics (followers) and your basic profile. If the source is being set up for a colleague, share the setup link with them so they authorize with their own account.

The following configurations are available:

* **Start date**: The first day read by the daily tables. Days are read up to yesterday (UTC); today is read by the next day's run.
* **Lookback days**: (Default: 3) Days before the last day read that every run reads again, so late updates from LinkedIn replace earlier numbers. While `post_reach_daily` is still filling its history, it does not read days twice.
* **Maximum reach days per run**: (Default: 10) The most days the `post_reach_daily` table reads in one run. LinkedIn returns that table one day and one metric per request and limits requests per day, so a long history is filled over several runs: with the default, one year of history takes about 37 daily runs. It must be greater than **Lookback days**.

> [!NOTE]
>
> A LinkedIn authorization lasts one year. From 30 days before it ends, every run shows the end date in its log. After that, or if access is revoked in LinkedIn, the runs fail with a message asking to authorize the source again.

Once you're done, click **Next**.

### 2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis.

> Tip: The stream can be found more easily by typing its name.

Select the streams and click **Next**.

### 3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.

* **Layer**: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
* **Folder**: a folder can be created inside the selected layer to group all tables being created from this new data source.
* **Table name**: we suggest a name, but feel free to customize it. You have the option to add a **prefix** to all tables at once and make this process faster!
* **Sync Type**: you can choose between INCREMENTAL and FULL\_TABLE.
  * Incremental: every time the extraction happens, we'll get only the new data, which is good if, for example, you want to keep every record ever fetched.
  * Full table: every time the extraction happens, we'll get the current state of the data, which is good if, for example, you don't want to have deleted data in your catalog.

> [!WARNING]
>
> Keep `post_reach_daily` and `followers_total` as INCREMENTAL. `post_reach_daily` refuses FULL\_TABLE, because reading its whole history in one run exceeds LinkedIn's daily request limit. `followers_total` keeps one row per day the source runs, and FULL\_TABLE would keep only the latest one: LinkedIn does not keep past totals, so they cannot be read again.

Once you are done configuring, click **Next**.

### 4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters.

To define your [Trigger](https://docs.nekt.com/runs/scheduling-and-triggers.md), consider how often you want data to be extracted from this source. Once a day is enough: LinkedIn's daily metrics are read up to the previous day.

Optionally, you can define some additional settings:

* Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource [here](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#additional-full-sync)**. Not recommended for this source: see [Implementation Notes](#implementation-notes).

Once you are ready, click **Next** to finalize the setup.

### 5. Check your new source

You can view your new source on the [Sources](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/catalog), you need at least one successful source run.

# Streams and Fields

## Available streams

The table below lists every stream, its **slug** (the exact identifier to pass when creating the source via API), the LinkedIn permission it needs, and a short description.

| Stream | Slug | Permission | Description |
| - | - | - | - |
| Profile | `profile` | Basic profile | The member who authorized the source: name, headline, public profile URL. |
| Post Engagement Daily | `post_engagement_daily` | Post analytics | Impressions, reactions, comments, reposts, saves, sends and premium button clicks per day, summed over all of the member's posts. |
| Post Reach Daily | `post_reach_daily` | Post analytics | Members reached, link clicks, followers gained from content and profile views from content per day, summed over all of the member's posts. |
| Followers Daily | `followers_daily` | Profile analytics | Followers the member gained each day. |
| Followers Total | `followers_total` | Profile analytics | The member's total followers, one row per day the source runs. |

If LinkedIn did not grant one of the permissions, the tables that need it are skipped and the run shows which ones; the other tables still load.

## Fields by stream

> [accordion] Profile
>
> One row for the member who authorized the source.
>
> * `id` - LinkedIn person ID of the member. It is specific to Nekt's LinkedIn application and differs from the ID other applications see.
> * `first_name` - First name in the member's preferred locale
> * `last_name` - Last name in the member's preferred locale
> * `headline` - Profile headline in the member's preferred locale
> * `vanity_name` - Last part of the public profile URL
> * `public_profile_url` - Public profile URL, `https://www.linkedin.com/in/` followed by the vanity name
> * `profile_picture_urn` - URN of the profile picture asset
> * `preferred_locale_language` - Language of the preferred profile locale (for example `en`)
> * `preferred_locale_country` - Country of the preferred profile locale (for example `US`)
> * `first_name_localized` - First name in every locale the member filled in (JSON object)
> * `last_name_localized` - Last name in every locale the member filled in (JSON object)
> * `headline_localized` - Headline in every locale the member filled in (JSON object)

> [accordion] Post Engagement Daily
>
> One row per day and metric. Primary key: `date` and `metric`.
>
> * `member_id` - LinkedIn person ID of the member (empty when the basic profile could not be read)
> * `date` - Day (UTC) the metric refers to
> * `metric` - `IMPRESSION`, `REACTION`, `COMMENT`, `RESHARE`, `POST_SAVE`, `POST_SEND` or `PREMIUM_CTA_CLICKS`
> * `value` - Value of the metric on that day, summed over all of the member's posts

> [accordion] Post Reach Daily
>
> One row per day and metric. Primary key: `date` and `metric`.
>
> * `member_id` - LinkedIn person ID of the member (empty when the basic profile could not be read)
>
> * `date` - Day (UTC) the metric refers to
>
> * `metric` - `MEMBERS_REACHED`, `LINK_CLICKS`, `FOLLOWER_GAINED_FROM_CONTENT` or `PROFILE_VIEW_FROM_CONTENT`
>
> * `value` - Value of the metric on that day, summed over all of the member's posts. `MEMBERS_REACHED` counts the unique members reached that day.
>
> > [!NOTE]
> >
> > `MEMBERS_REACHED` is counted day by day. Adding up several days does not give the number of people reached in the period: a person reached on two days counts on both.

> [accordion] Followers Daily
>
> One row per day. Primary key: `date`.
>
> * `member_id` - LinkedIn person ID of the member
> * `date` - Day (UTC) of the figure
> * `followers_gained` - Followers the member gained on that day, as LinkedIn reports it. It is not the running total: see `total_followers` in Followers Total.

> [accordion] Followers Total
>
> One row per day the source runs. Primary key: `snapshot_date`.
>
> * `member_id` - LinkedIn person ID of the member
> * `snapshot_date` - Day (UTC) the total was read. A later run on the same day replaces it.
> * `total_followers` - Total followers of the member when the run read it

# Use Cases for Data Analysis

The metric tables have one row per day and metric. The queries below turn them into one row per day, and can be run on [Explorer](https://app.nekt.ai/explorer). Replace the table names with the ones you chose.

### 1. Daily performance of a profile

**Business Value:**

* Follow impressions, reach and engagement of a person's posts day by day
* Compare periods before and after a content campaign

> [accordion] SQL query
>
> > [tab] AWS
> >
> > ```sql theme={null}
> > SELECT
> >    e.date,
> >    SUM(CASE WHEN e.metric = 'IMPRESSION' THEN e.value END) AS impressions,
> >    SUM(CASE WHEN e.metric = 'REACTION' THEN e.value END) AS reactions,
> >    SUM(CASE WHEN e.metric = 'COMMENT' THEN e.value END) AS comments,
> >    SUM(CASE WHEN e.metric = 'RESHARE' THEN e.value END) AS reposts,
> >    SUM(CASE WHEN e.metric = 'POST_SAVE' THEN e.value END) AS saves,
> >    MAX(r.members_reached) AS members_reached,
> >    MAX(r.profile_views_from_content) AS profile_views_from_content
> > FROM "nekt_raw"."linkedin_personal_profile_post_engagement_daily" e
> > LEFT JOIN (
> >    SELECT
> >       date,
> >       SUM(CASE WHEN metric = 'MEMBERS_REACHED' THEN value END) AS members_reached,
> >       SUM(CASE WHEN metric = 'PROFILE_VIEW_FROM_CONTENT' THEN value END) AS profile_views_from_content
> >    FROM "nekt_raw"."linkedin_personal_profile_post_reach_daily"
> >    GROUP BY date
> > ) r ON r.date = e.date
> > GROUP BY e.date
> > ORDER BY e.date DESC
> > ```
>
> > [tab] GCP
> >
> > ```sql theme={null}
> > SELECT
> >    e.date,
> >    SUM(CASE WHEN e.metric = 'IMPRESSION' THEN e.value END) AS impressions,
> >    SUM(CASE WHEN e.metric = 'REACTION' THEN e.value END) AS reactions,
> >    SUM(CASE WHEN e.metric = 'COMMENT' THEN e.value END) AS comments,
> >    SUM(CASE WHEN e.metric = 'RESHARE' THEN e.value END) AS reposts,
> >    SUM(CASE WHEN e.metric = 'POST_SAVE' THEN e.value END) AS saves,
> >    MAX(r.members_reached) AS members_reached,
> >    MAX(r.profile_views_from_content) AS profile_views_from_content
> > FROM `nekt_raw.linkedin_personal_profile_post_engagement_daily` e
> > LEFT JOIN (
> >    SELECT
> >       date,
> >       SUM(CASE WHEN metric = 'MEMBERS_REACHED' THEN value END) AS members_reached,
> >       SUM(CASE WHEN metric = 'PROFILE_VIEW_FROM_CONTENT' THEN value END) AS profile_views_from_content
> >    FROM `nekt_raw.linkedin_personal_profile_post_reach_daily`
> >    GROUP BY date
> > ) r ON r.date = e.date
> > GROUP BY e.date
> > ORDER BY e.date DESC
> > ```

### 2. Comparing several people

When several people connect their own profiles, each source loads its own tables. Combine them with `UNION ALL` and use `member_id` (or the `profile` table's names) to tell the people apart.

## Implementation Notes

### Data Quality Considerations

* A day or metric LinkedIn does not return gets no row. A missing row means LinkedIn sent no value, not zero.
* LinkedIn describes these numbers as best-effort. Its documentation notes that reposts, reactions and comments summed over a member's posts may differ from what the LinkedIn interface shows.
* Every run reads the last **Lookback days** again, so numbers LinkedIn updates late replace the earlier ones.
* `post_reach_daily` fills a long history gradually, **Maximum reach days per run** days at a time (about 37 daily runs for one year with the default). The run log says how many days are still to come.
* On the first run, and on a Full Sync, `post_reach_daily` reads only its first **Maximum reach days per run** days. When other tables of the run succeed, it is shown as failed in that run so the table is not replaced by that part: on a first run the days read are loaded, and on a Full Sync the table keeps its previous content. When it is the only table that loads, the run stays successful and, after a Full Sync, the table holds only those days until the next runs fill it again.
* After a Full Sync, `post_reach_daily` gets no new days until its history is filled again from the **Start date**: with the default settings and a start date one year back, about 37 daily runs. The run log says how many runs are left. Prefer incremental runs for this table.
* A Full Sync replaces `followers_total` with the current day's total. LinkedIn does not keep past totals, so the earlier rows cannot be read again; the run log warns when this table starts without saved progress. `followers_daily` is not affected. Prefer incremental runs.

### API Limits & Performance

* LinkedIn limits requests per day, per application and per member, and resets the limits at midnight UTC. When a limit is reached, the affected tables stop, keep every complete day already read, and continue on the next run after midnight UTC. A stopped table is shown as failed in that run when other tables of the run succeeded; otherwise the run stays successful and its log says the limit was reached.
* `post_engagement_daily` and `followers_daily` need a few requests per run. `post_reach_daily` needs 4 requests per day read.

## Troubleshooting

| Error or symptom | What it means | What to do |
| :- | :- | :- |
| LinkedIn no longer accepts the authorization of this source | The authorization expired (it lasts one year) or was revoked in LinkedIn. | Open the source in Nekt and authorize it again with the same LinkedIn account. |
| Tables were skipped because LinkedIn did not grant permission | A permission was not accepted when authorizing. The other tables still load. | Authorize the source again and accept every permission, or deselect the skipped tables. |
| A table stopped because LinkedIn's daily request limit was reached | The limit resets at midnight UTC. Days already read are kept. | Nothing to change: the next run after midnight UTC continues. Avoid several runs per day. |
| `post_reach_daily` fails asking for incremental sync | The table is set to FULL\_TABLE. | Change its sync type to INCREMENTAL. |
| `post_reach_daily` holds only part of the history | The history is filled a few days per run. | Wait for the next runs, or raise **Maximum reach days per run**. |
| `post_reach_daily` is shown as failed on the first run or after a Full Sync | The run read only the first days of the history and kept the table from being replaced by that part. | Nothing to change: the next runs continue. |
| A table fails with LinkedIn refusing the request (HTTP 400) and the message mentions the Start date | The **Start date** may be older than the history LinkedIn keeps. | Move the **Start date** to a later day in the source settings. |

## Skills for agents

<Snippet file="agent-skills-intro.mdx" />

> [card] [Download LinkedIn Personal Profile skills file](https://docs.nekt.com/sources/linkedin-personal-profile.md)
>
> LinkedIn Personal Profile connector documentation as plain markdown, for use in AI agent contexts.


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