@@ -30,6 +30,7 @@ import {
3030 RetrieveInvitations ,
3131 RetrievePendingRequests ,
3232 RetrievePerformance ,
33+ RetrieveProfileViewers ,
3334 RetrieveSSI ,
3435 SearchCompanies ,
3536 SearchJobs ,
@@ -115,6 +116,7 @@ class LinkedApi {
115116 this . withdrawConnectionRequest = new WithdrawConnectionRequest ( this . httpClient ) ;
116117 this . retrievePendingRequests = new RetrievePendingRequests ( this . httpClient ) ;
117118 this . retrieveInvitations = new RetrieveInvitations ( this . httpClient ) ;
119+ this . retrieveProfileViewers = new RetrieveProfileViewers ( this . httpClient ) ;
118120 this . acceptInvitation = new AcceptInvitation ( this . httpClient ) ;
119121 this . ignoreInvitation = new IgnoreInvitation ( this . httpClient ) ;
120122 this . retrieveConnections = new RetrieveConnections ( this . httpClient ) ;
@@ -155,6 +157,7 @@ class LinkedApi {
155157 this . withdrawConnectionRequest ,
156158 this . retrievePendingRequests ,
157159 this . retrieveInvitations ,
160+ this . retrieveProfileViewers ,
158161 this . acceptInvitation ,
159162 this . ignoreInvitation ,
160163 this . retrieveConnections ,
@@ -1173,6 +1176,27 @@ class LinkedApi {
11731176 */
11741177 public retrieveInvitations : RetrieveInvitations ;
11751178
1179+ /**
1180+ * Retrieve the viewers visible on the current account's LinkedIn profile analytics page.
1181+ *
1182+ * @param params - Optional maximum number of viewers to retrieve (1-300, default 20)
1183+ * @returns Promise resolving to identified and anonymous profile viewers
1184+ *
1185+ * @see {@link https://linkedapi.io/sdks/retrieve-profile-viewers/ SDK Documentation }
1186+ * @see {@link https://linkedapi.io/docs/action-st-retrieve-profile-viewers/ st.retrieveProfileViewers Action Documentation }
1187+ *
1188+ * @example
1189+ * ```typescript
1190+ * const workflow = await linkedapi.retrieveProfileViewers.execute({ limit: 50 });
1191+ * const result = await linkedapi.retrieveProfileViewers.result(workflow.workflowId);
1192+ *
1193+ * for (const viewer of result.data ?? []) {
1194+ * console.log(viewer.viewerType, viewer.viewedAgo);
1195+ * }
1196+ * ```
1197+ */
1198+ public readonly retrieveProfileViewers : RetrieveProfileViewers ;
1199+
11761200 /**
11771201 * Accept an incoming connection, company-follow, or newsletter-subscription invitation.
11781202 *
0 commit comments