Skip to content

Instantly share code, notes, and snippets.

@dandedf
dandedf / linkedin-post-analytics-example.mjs
Created October 1, 2021 20:48 — 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 = {