# 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.

{% embed url="<https://www.loom.com/share/c91daa3d21d04902b9bfd9e3cd052e63>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.relay.app/app-specific-faqs/linkedin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
