Linkedin Profile Posts [NO COOKIES] avatar
Linkedin Profile Posts [NO COOKIES]

Pricing

$5.00 / 1,000 results

Go to Store
Linkedin Profile Posts [NO COOKIES]

Linkedin Profile Posts [NO COOKIES]

Developed by

API Maestro

Maintained by Community

Scrape LinkedIn public posts and activity from LinkedIn profiles including post content, reactions, comments count, and media attachments

4.3 (8)

Pricing

$5.00 / 1,000 results

74

Monthly users

531

Runs succeeded

>99%

Response time

13 hours

Last modified

7 days ago

TI

Not able to use the pagination token

Closed

tiltedlamp opened this issue
15 days ago

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?

APIMaestro avatar

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

TI

tiltedlamp

15 days ago

I can't limit to less than 100? For successive calls, do I set the page number also, or just the pagination token?

TI

tiltedlamp

15 days ago

I tried this on the web interface and it wasn't working as expected

TI

tiltedlamp

15 days ago

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"

TI

tiltedlamp

15 days ago

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

APIMaestro avatar

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

TI

tiltedlamp

15 days ago

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

APIMaestro avatar

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 result 

This 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