![Linkedin Profile Posts [NO COOKIES] avatar](https://securitybyobscurity2.apifyusercontent.com/UZUFkAvhYexmQXZe4euIq54_5KDjA1JsSdW2b25ELXs/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vdFhKaEQ5SFNvdTY4N2NEUTQtYWN0b3ItTFFRSVhOOU90aGY4ZjdSNW4tS1loTXZ4SVB0Vy1saW5rZWRpbl9jb2xvcmVkXzIuanBn.webp)
Linkedin Profile Posts [NO COOKIES]
Pricing
$5.00 / 1,000 results
![Linkedin Profile Posts [NO COOKIES]](https://securitybyobscurity2.apifyusercontent.com/UZUFkAvhYexmQXZe4euIq54_5KDjA1JsSdW2b25ELXs/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vdFhKaEQ5SFNvdTY4N2NEUTQtYWN0b3ItTFFRSVhOOU90aGY4ZjdSNW4tS1loTXZ4SVB0Vy1saW5rZWRpbl9jb2xvcmVkXzIuanBn.webp)
Linkedin Profile Posts [NO COOKIES]
Scrape LinkedIn posts data for a given LinkedIn profile including post content, reactions, comments count, and media attachments
4.3 (8)
Pricing
$5.00 / 1,000 results
74
Monthly users
538
Runs succeeded
>99%
Response time
16 hours
Last modified
8 hours ago
Not able to use the pagination token
Closed
Im not able to get pagination to work. For example, i want to fetch 5 posts, then the next 5 so on - how do i do that?

each run return 100 posts if not limited, then you can use pagination token to get next 100. so pagination token is used starting from page 2 to get the next 100. hope it's clear
tiltedlamp
I can't limit to less than 100? For successive calls, do I set the page number also, or just the pagination token?
tiltedlamp
I tried this on the web interface and it wasn't working as expected
tiltedlamp
First i ran
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token const client = new ApifyClient({ token: '', });
// Prepare Actor input const input = { "username": "", "page_number": 1, "limit": 1, };
(async () => { // Run the Actor and wait for it to finish const run = await client.actor("LQQIXN9Othf8f7R5n").call(input);
1// Fetch and print Actor results from the run's dataset (if any) 2console.log('Results from dataset'); 3const { items } = await client.dataset(run.defaultDatasetId).listItems(); 4items.forEach((item) => { 5 console.dir(item); 6});
})();
I get one result and a pagination_token. Then i tried calling
const input = {
"username": "",
"page_number": 2,
"limit": 1,
"pagination_token": "dXJuOmxpOmFjdGl2aXR5OjY4MTI4ODcxMzcyMDIxMzkxMzYtMTYyNDMxODg3MDgxNA=="
};
and with page_number: 1, both gave me "No posts found for this profile"
tiltedlamp
Also, am i charged for every unique result? or just every result? Im basically trying to keep a cursor for the last post i saw for a given profile and only request posts after that

On your case, the username on your run has only 14 posts, so even if you get pagination token on output you can't get more result. you're charged per result The pagination token is for next 100 result. Let's say you need 101-200 posts, so first you run for page 1, then use pagination token and put page 2 to get 101-200 posts. So for 1-100 result , use page 1 and you don't need to use pagination token. then for 101-200, use pagination token from page 1 , then for 201-300, use from page 2... Also regardless if you limit your result, the pagination is to get next 100. For example on first run you limit your result to 20, still that pagination token you get from output will get you 101-200 and not 21-40. It's possible that I'll change it later such as it will get from 21-40
tiltedlamp
Thank you for your response! It would be really helpful for the pagination to be on the last posted date if possible ie given a date, only return posts made after that date. Would that be possible? Im looking to use this for a high volume, so this would be very helpful for me to not waste credits

not sure if possible about getting results after given date, but contact me at procennedv@gmail.com so i can understand better your ask and will see what can be done
Pricing
Pricing model
Pay per resultThis Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.
Price per 1,000 items
$5.00