Skip to content

Instantly share code, notes, and snippets.

@lumairink
lumairink / linkedin-post-analytics-example.mjs
Created October 3, 2021 21:04 — forked from ErickWendel/linkedin-post-analytics-example.mjs
Example of how to get post Analytics such as Views from a Linkedin post
// paste this file on a empty directory
// npm i axios
// You should go to your browser on Cookie session and get JSESSIONID and li_at from Linkedin Section
const JSESSIONID = 'YOUR JSESSIONID'
const liAT = 'YOUR li_at'
import axios from 'axios'
const headers = {