# getPosts() query

**URL:** <https://forum.social.plus/t/getposts-query/837>\
**Category:** General\
**Created:** [July 25, 2023, 9:32am UTC](https://forum.social.plus/t/getposts-query/837 "2023-07-25T09:32:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 25, 2023, 9:32am UTC](https://forum.social.plus/t/getposts-query/837/1 "2023-07-25T09:32:29Z")

</div>

Hello,  
Do you have option to get posts created by me?  
Or posts that I Like?  
Or posts that created by users I’m following?  
Thanks

---

<div class="post-metadata">

**Author:** ![Avo](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Avo](https://forum.social.plus/u/Avo)\
**Post date:** [July 25, 2023, 12:14pm UTC](https://forum.social.plus/t/getposts-query/837/2 "2023-07-25T12:14:21Z")

</div>

I guess it depends which sdk and plattform you are using.

I am working with the ts-sdk and there seems to be no option for advanced queries other than this beta feature which is not part of the sdk yet [Content Search - Amity Docs](https://docs.amity.co/beta-features/content-search)

---

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 25, 2023, 12:17pm UTC](https://forum.social.plus/t/getposts-query/837/3 "2023-07-25T12:17:23Z")

</div>

I’m working with Flutter SDK

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 25, 2023, 4:24pm UTC](https://forum.social.plus/t/getposts-query/837/4 "2023-07-25T16:24:12Z")

</div>

Hello, are you referring to query posts? if yes, please refer to this section: [Query Post - Amity Docs](https://docs.amity.co/social/posts/query-post#query-options)

You can specify `targetId` and `targetType` - currently, these are the only available options for query post via our sdk

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [May 13, 2025, 8:37am UTC](https://forum.social.plus/t/getposts-query/837/5 "2025-05-13T08:37:00Z")

</div>

Hi @SocialPlus_Support ,  
Is there a way to query posts created by a specific user (by userId), including both posts they posted in communities and posts on their personal wall? I’ve searched through the documentation but haven’t found a method to achieve this.  
Looking forward to your support.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [May 14, 2025, 6:47am UTC](https://forum.social.plus/t/getposts-query/837/6 "2025-05-14T06:47:27Z")

</div>

Hello @duongnb , Yes, you can use the **Search Posts API** and filter by `createdBy` with the userId to fetch all posts by that user — including both community posts and personal wall posts.  
Ref: [Search Posts API docs](https://docs.social.plus/developers/beta-features/search-posts-api) ✅

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [May 19, 2025, 3:33am UTC](https://forum.social.plus/t/getposts-query/837/7 "2025-05-19T03:33:14Z")

</div>

Thank you for your instructions. I’ve implemented them, but the API call is still quite slow—it takes several seconds, as shown in the attached image. Is there any way to optimize this and improve the performance? @SocialPlus_Support

 ![Screenshot from 2025-05-17 15-30-18](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/cd4f2e07f03b368799f6f8d553d72f3ca4b8d1f1.png)  
 ![Screenshot from 2025-05-17 15-29-45](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/8061d299b5003b32407c130adb53e1d0df2313dc.png)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [May 19, 2025, 6:23am UTC](https://forum.social.plus/t/getposts-query/837/8 "2025-05-19T06:23:58Z")

</div>

Hello @duongnb , Thank you for the update.

Could you please let us know which **server region** you’re using? Also, does this slowness happen **consistently** with every request, or only occasionally?

As this feature is still in **beta** , we truly appreciate your feedback and will use this information to help improve performance in future updates.

---

<div class="post-metadata">

**Author:** ![duongnb](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@duongnb](https://forum.social.plus/u/duongnb)\
**Post date:** [May 19, 2025, 8:23am UTC](https://forum.social.plus/t/getposts-query/837/9 "2025-05-19T08:23:50Z")

</div>

Hi @SocialPlus_Support , We are currently using the SG server region. The latency frequently exceeds 1 second and occasionally takes several seconds, as previously demonstrated. In comparison to other APIs, which usually respond within 100–300 ms, this performance is considerably slower.

 ![Screenshot from 2025-05-19 14-42-42](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/6814e9df79b8354e8305e89ac759558c2cbd55c5.png)  
 ![Screenshot from 2025-05-19 14-41-21](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/f8f0f04d18f2200fecd8b3f00eca47c6592aca27.png)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [May 19, 2025, 9:20am UTC](https://forum.social.plus/t/getposts-query/837/10 "2025-05-19T09:20:24Z")

</div>

Hello @duongnb, Thank you for your message.  
Please note that our system implements a **caching mechanism** , which may cause the **initial data request** to take slightly longer than expected. Subsequent requests should be faster as cached data is utilized.

Should the issue persist or if you observe any further irregularities, please feel free to let us know.
