קבלת כל ההודעות בנושא

In case anyone else is wondering, the get a single topic API supports pagination by using a page parameter. It starts at 1 and returns a 404 when there are no more pages. I needed this to get all posts for a given topic, as the default return limit is 20 posts.

I believe this is not possible unless you use data-explorer to return a query result with the API. :slight_smile:

זה אפשרי על ידי שימוש ב-APILinked ולעבר את פרמטר הדף. מסמכי ה-API לא מציינים שניתן לעבור את פרמטר הדף, אבל זה עובד בדיוק כפי שהיית מצפה. כתבת את הפוסט הזה כדי שאחרים יידעו ולא יצטרכו להסתמך על חוקר הנתונים.

לייק 1

Oh, I misread your post. I thought you were looking for a way to return ALL posts from a topic at once.

Here’s a script example using the API pagination (not exactly the same query, as it returns posts from a user and each page contains 50 posts, not 20):

לייק 1