Skip to main content
Glama

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
NameRequiredDescriptionDefault
usernameYesInstagram username to look up (without @)
fieldsNoFields to retrieve (default: id,username,name,biography,followers_count,follows_count,media_count)

Implementation Reference

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

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/mikusnuz/meta-mcp'

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