Spiral gives your agent every tool with one account. Browse the tools →

Codex · Social Media

How to Use Instagram profile by user ID in Codex

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.

Prompts to try with Instagram profile by user ID in Codex

Copy an example into Codex, or ask in your own words.

Use Instagram profile by user ID for National Geographic, ID 787132, and add its returned username and bio to our internal brand directory.

Instagram profile by user IDCodex
Try asking
  • 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 Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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.

    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.

    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: Codex finds Instagram profile by user ID on Spiral, shows the price and runs it.

Instagram profile by user ID providers and prices

Spiral runs Instagram profile by user ID through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
Instagram V1 · Get user info by user ID
tikhub/instagram-v1-user-id-to-username

What can you do with Instagram profile by user ID in Codex?

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.

Questions about Instagram profile by user ID in Codex

Can Codex use Instagram profile by user ID?

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

How much does Instagram profile by user ID cost in Codex?

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

Do I need a TikHub account to use Instagram profile by user ID in Codex?

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 Codex?

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

Does Codex wait while Instagram profile by user ID runs?

Instagram profile by user ID runs in the background. Codex 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.

Get started

Start using Instagram profile by user ID in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options