[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Instagram profile by user ID](https://spiral.ai/integrations/gemini-cli/instagram-profile-by-user-id)

# How to Use Instagram profile by user ID in Gemini CLI

Retrieve an Instagram account's username, bio, and follower, following, and post totals from its numeric ID. Use it to refresh a public brand record or resolve an account reference saved without a handle.

|  |  |
| --- | --- |
| Model | Instagram profile by user ID |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram profile by user ID in Gemini CLI

- Use Instagram profile by user ID for National Geographic, ID 787132, and add its returned username and bio to our internal brand directory.
- Fetch National Geographic, ID 787132, with Instagram profile by user ID and save its follower, following, and post totals in our project's research data.
- Use Instagram profile by user ID for National Geographic, ID 787132, and compare the returned bio with the version in our project. Show the wording changes.
- Call Instagram profile by user ID for National Geographic, ID 787132, and update our internal report with its account totals and the documented freshness caveat.
- Use Instagram profile by user ID for National Geographic, ID 787132, and compare its follower total with our last saved observation. Calculate the absolute and percentage difference.

## How to set up Instagram profile by user ID in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Instagram profile by user ID**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "tikhub",
    "model": "tikhub/instagram-v1-user-id-to-username",
    "input": {
      "user_id": "18527"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Instagram profile by user ID on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Instagram profile by user ID tools and prices

- [Instagram V1 · Get user info by user ID](https://spiral.ai/tools/tikhub/tikhub/instagram-v1-user-id-to-username) (TikHub): $0.0013 per request.

## What can you do with Instagram profile by user ID in Gemini CLI?

Populate an internal brand directory with Instagram usernames, bios, and account totals resolved from saved numeric IDs. A coding agent can update project records and add comparisons between stored observations.

### Resolve saved account references

Turn numeric Instagram account IDs in an internal brand database into readable usernames for analysts.

### Refresh a brand directory

Update usernames and bios for public business accounts already listed in an internal directory.

### Prepare a partnership brief

Add a public publisher's bio, follower total, and post total to an internal partnership research brief.

### Compare brand audience sizes

Fetch follower totals for a selected set of public brands and rank them for an internal competitive report, allowing for the documented reporting delay.

### Build weekly account comparisons

Save weekly follower, following, and post totals for public business accounts. Compare those saved observations to show changes between checks.

### Review changes to brand messaging

Compare a public brand's returned bio with a previously saved bio and summarize wording changes for the communications team.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Instagram profile by user ID in other agents

- [Amp](https://spiral.ai/integrations/amp/instagram-profile-by-user-id)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/instagram-profile-by-user-id)
- [Claude](https://spiral.ai/integrations/claude-desktop/instagram-profile-by-user-id)
- [Claude Code](https://spiral.ai/integrations/claude-code/instagram-profile-by-user-id)
- [Cline](https://spiral.ai/integrations/cline/instagram-profile-by-user-id)
- [Codex](https://spiral.ai/integrations/codex/instagram-profile-by-user-id)
- [Cursor](https://spiral.ai/integrations/cursor/instagram-profile-by-user-id)
- [Devin](https://spiral.ai/integrations/devin/instagram-profile-by-user-id)
- [dots](https://spiral.ai/integrations/dots/instagram-profile-by-user-id)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/instagram-profile-by-user-id)
- [Gemini](https://spiral.ai/integrations/gemini/instagram-profile-by-user-id)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/instagram-profile-by-user-id)
- [goose](https://spiral.ai/integrations/goose/instagram-profile-by-user-id)
- [Grok](https://spiral.ai/integrations/grok/instagram-profile-by-user-id)
- [Grok Build](https://spiral.ai/integrations/grok-build/instagram-profile-by-user-id)
- [Hermes](https://spiral.ai/integrations/hermes/instagram-profile-by-user-id)
- [Instinct](https://spiral.ai/integrations/instinct/instagram-profile-by-user-id)
- [Manus](https://spiral.ai/integrations/manus/instagram-profile-by-user-id)
- [Muse](https://spiral.ai/integrations/muse/instagram-profile-by-user-id)
- [Muse Code](https://spiral.ai/integrations/muse-code/instagram-profile-by-user-id)
- [n8n](https://spiral.ai/integrations/n8n/instagram-profile-by-user-id)
- [Notion](https://spiral.ai/integrations/notion/instagram-profile-by-user-id)
- [OpenClaw](https://spiral.ai/integrations/openclaw/instagram-profile-by-user-id)
- [opencode](https://spiral.ai/integrations/opencode/instagram-profile-by-user-id)
- [Perplexity](https://spiral.ai/integrations/perplexity/instagram-profile-by-user-id)
- [Raycast](https://spiral.ai/integrations/raycast/instagram-profile-by-user-id)
- [VS Code](https://spiral.ai/integrations/vscode/instagram-profile-by-user-id)
- [Windsurf](https://spiral.ai/integrations/windsurf/instagram-profile-by-user-id)
- [Zapier](https://spiral.ai/integrations/zapier/instagram-profile-by-user-id)

## More Gemini CLI guides

- [Instagram profile and timeline by ID](https://spiral.ai/integrations/gemini-cli/instagram-profile-and-timeline-by-id)
- [Instagram profile details](https://spiral.ai/integrations/gemini-cli/instagram-profile-details)
- [Instagram profile and recent posts by username](https://spiral.ai/integrations/gemini-cli/instagram-profile-and-recent-posts-by-username)
- [Instagram profile embed HTML](https://spiral.ai/integrations/gemini-cli/instagram-profile-embed-html)
- [Instagram profile](https://spiral.ai/integrations/gemini-cli/instagram-profile)
- [Instagram profile highlights](https://spiral.ai/integrations/gemini-cli/instagram-profile-highlights)

## Questions about Instagram profile by user ID in Gemini CLI

**Can Gemini CLI use Instagram profile by user ID?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Instagram profile by user ID like any built-in tool.

**How much does Instagram profile by user ID cost in Gemini CLI?**

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need a TikHub account to use Instagram profile by user ID in Gemini CLI?**

No. Spiral runs Instagram profile by user ID on its own TikHub account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Instagram profile by user ID in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while Instagram profile by user ID runs?**

Instagram profile by user ID runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**What information does the Instagram lookup return?**

TikHub documents a username and profile information, including the bio and three account totals: followers, following, and posts.

**How fresh are the follower and post counts?**

TikHub says its Instagram V1 visitor-view figures can lag reality by a few days. Use these totals for periodic comparisons with that delay in mind.

**How many accounts does one lookup cover?**

The documented operation looks up one Instagram account by its numeric ID and returns that account's profile information.

**Can it reveal private Instagram content?**

TikHub states that it does not access or store private, restricted, or password-protected content. Its stated coverage does not include content behind those restrictions.

**Does TikHub guarantee complete and accurate profiles?**

No. TikHub's terms expressly disclaim warranties covering data accuracy, completeness, reliability, and timeliness.

