ig_business_discovery
Retrieve public Instagram Business or Creator account information by username to analyze profiles, view follower counts, and access bio details.
Instructions
Look up another Instagram Business/Creator account's public info by username.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Instagram username to look up (without @) | |
| fields | No | Fields to retrieve (default: id,username,name,biography,followers_count,follows_count,media_count) |
Implementation Reference
- src/tools/instagram/profile.ts:46-65 (handler)The handler and schema definition for the `ig_business_discovery` tool, located within the `registerIgProfileTools` function.
// ─── ig_business_discovery ─────────────────────────────────── server.tool( "ig_business_discovery", "Look up another Instagram Business/Creator account's public info by username.", { username: z.string().describe("Instagram username to look up (without @)"), fields: z.string().optional().describe("Fields to retrieve (default: id,username,name,biography,followers_count,follows_count,media_count)"), }, async ({ username, fields }) => { try { const f = fields || "id,username,name,biography,followers_count,follows_count,media_count"; const { data, rateLimit } = await client.ig("GET", `/${client.igUserId}`, { fields: `business_discovery.fields(${f}){username=${username}}`, }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Business discovery failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );