[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Instagram user ID lookup](https://spiral.ai/integrations/n8n/instagram-user-id-lookup)

# How to Use Instagram user ID lookup in n8n

Returns Instagram's internal user ID for a username. Use it to add the account's numeric identifier to a brand directory without requesting a full profile.

|  |  |
| --- | --- |
| Model | Instagram user ID lookup |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0104 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Instagram user ID lookup in n8n

- Every Monday at 9am: use Instagram user ID lookup to look this up and give me the result as a table.
- Pull the latest numbers from Instagram user ID lookup and tell me what changed since last week.
- Check Instagram user ID lookup and summarize what you find in three bullet points.
- Pull the newest data from Instagram user ID lookup and give me the result as a table.
- Check Instagram user ID lookup every morning and tell me only when something changed.

## How to set up Instagram user ID lookup in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Instagram user ID lookup in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Instagram user ID lookup, prices it and runs it each time the step fires.

### 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 user ID lookup**: 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-v3-get-user-id-by-username",
    "input": {
      "username": "liensue.talks"
    }
  }'
```

Then paste one of the prompts above: n8n finds Instagram user ID lookup on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Instagram user ID lookup tools and prices

- [Instagram V3 · Get user ID by username](https://spiral.ai/tools/tikhub/tikhub/instagram-v3-get-user-id-by-username) (TikHub): $0.0104 per request.

## What can you do with Instagram user ID lookup in n8n?

Keep a public brand's Instagram research brief current through scheduled checks. An always-on agent can compare successive results for changes in account details, content, location matches, or hashtag results.

### Audit a public brand account

Assemble the account ID, profile totals, username change count, and Highlight titles into a review sheet for the brand team.

### Prepare a local product launch brief

Document the brand's account identity and naming history, review its content and tagged posts, then find hashtag and Instagram place candidates around the launch venue.

### Review an event sponsor's public presence

Build a sponsor review from account identifiers, naming history, profile totals, published content, and tagged coverage. Add topic labels and nearby Instagram places for the event brief.

### Create an agency account handoff

Give the incoming team an account reference, username change count, profile totals, content inventory, tagged-post review, and campaign hashtag candidates. Include nearby Instagram places for the client's public business locations.

### Enrich a public business directory

Add Instagram account IDs, profile totals, and username change counts to business records. Search around each storefront's coordinates for Instagram place candidates to review.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Instagram user ID lookup in other agents

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

## More n8n guides

- [Instagram tagged posts](https://spiral.ai/integrations/n8n/instagram-tagged-posts)
- [Instagram user posts](https://spiral.ai/integrations/n8n/instagram-user-posts)
- [Instagram similar accounts](https://spiral.ai/integrations/n8n/instagram-similar-accounts)
- [Instagram user search](https://spiral.ai/integrations/n8n/instagram-user-search)
- [Instagram shortcode to media ID](https://spiral.ai/integrations/n8n/instagram-shortcode-to-media-id)
- [Instagram user, hashtag, and place search](https://spiral.ai/integrations/n8n/instagram-user-hashtag-and-place-search)

## Questions about Instagram user ID lookup in n8n

**Can n8n use Instagram user ID lookup?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Instagram user ID lookup like any built-in tool.

**How much does Instagram user ID lookup cost in n8n?**

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

**Do I need a TikHub account to use Instagram user ID lookup in n8n?**

You need no TikHub account. n8n uses one Spiral API key for every tool, and Spiral runs Instagram user ID lookup on its own TikHub account.

**How long does it take to set up Instagram user ID lookup in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Instagram user ID lookup runs?**

Instagram user ID lookup runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does this cover private Instagram content?**

TikHub states that it accesses only publicly available data. Its stated coverage excludes private, restricted, and password-protected content.

**How fresh is the Instagram data?**

TikHub describes the Instagram series used by these endpoints as real-time. That is the provider's description, rather than a measured update interval.

**Why can engagement counts be lower than the Instagram app shows?**

TikHub says its counts cover Instagram only. The app can display engagement combined across Instagram and Facebook.

**Can I retrieve expired Stories?**

The active Stories endpoint cannot fetch Stories after their 24-hour expiration. Plan current-content reviews around that window.

