# How to fetch user/community feeds

**URL:** <https://forum.social.plus/t/how-to-fetch-user-community-feeds/921>\
**Category:** JS SDK\
**Created:** [September 14, 2023, 9:43am UTC](https://forum.social.plus/t/how-to-fetch-user-community-feeds/921 "2023-09-14T09:43:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walson](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@Walson](https://forum.social.plus/u/Walson)\
**Post date:** [September 14, 2023, 9:43am UTC](https://forum.social.plus/t/how-to-fetch-user-community-feeds/921/1 "2023-09-14T09:43:58Z")

</div>

Hello,  
Can you please share js/sdk function to fetch all my posts irrespective of the `targetType` (User / Community).

---

<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:** [September 14, 2023, 11:48am UTC](https://forum.social.plus/t/how-to-fetch-user-community-feeds/921/2 "2023-09-14T11:48:09Z")

</div>

Hello, Please take a look at this section: [Query Post - Amity Docs](https://docs.amity.co/amity-sdk/social/posts/query-post#query-options) , it outlines specific queries that you can use between user and community-related content.

```auto
* targetType: 'user' | 'community' | 'content';
 * targetId?: string; // postId or communityId

```
