get_user_search_posts
Retrieve social media posts from user profiles across multiple platforms using a search ID. Returns actual posts from X, Reddit, Bluesky, YouTube, LinkedIn, Facebook, Instagram, and Weibo.
Instructions
Get raw posts from a user search. Returns the actual social media posts from the searched user profile.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_id | Yes | User search ID |
Implementation Reference
- src/tools/posts.ts:29-43 (handler)The implementation and registration of the 'get_user_search_posts' tool, which fetches post data from a user search using an API call.
server.tool( "get_user_search_posts", "Get raw posts from a user search. Returns the actual social media posts from the searched user profile.", { search_id: z.number().int().positive().describe("User search ID"), }, async (params) => { try { const data = await apiGet(`/iq/user_search/${params.search_id}/posts_data`); return { content: [{ type: "text", text: `${UNTRUSTED_CONTENT_NOTICE}\n\n${JSON.stringify(data, null, 2)}` }] }; } catch (e) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );