get_user_search
Retrieve user search results by ID to access profile information, engagement metrics, and content analysis for social media analytics.
Instructions
Get results for a user search by ID. Returns profile info, metrics, and content analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User search ID |
Implementation Reference
- src/tools/user-search.ts:78-92 (handler)The tool "get_user_search" is defined here using server.tool. It retrieves user search results from the API by ID and returns the JSON stringified response.
server.tool( "get_user_search", "Get results for a user search by ID. Returns profile info, metrics, and content analysis.", { id: z.number().int().positive().describe("User search ID"), }, async (params) => { try { const data = await apiGet(`/iq/user_search/${params.id}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (e) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );