LinkedIn

How can I fetch all of the comments on a LinkedIn post if there are more than 50?

The "Get LinkedIn Comments on Post" step can only return a maximum of 50 comments. But there is a way to get all of them! You need to use the optional "page number" parameter, which will let you return additional pages of 50. If you put in page number 1, you get the 50 most recent comments. If you put in page number 2, you get comments 51-100 in recency, and so on.

Note: This will only retrieve top-level comments not replies to comments.

So to get all of the comments, you need to be a bit clever by (a) computing the number of pages, and (b) using an iterator to process each. Here's a quick Loom video that shows exactly how to do it.

Last updated

Was this helpful?