Skip to main content
Glama

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
NameRequiredDescriptionDefault
search_idYesUser search ID

Implementation Reference

  • 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 };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rolliinc/rolli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server