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

Codex · Social Media

How to Use Instagram posts using music in Codex

Returns posts using a specified Instagram audio, with pagination. Use it to compare creative treatments of the same sound across public brands and creators.

Prompts to try with Instagram posts using music in Codex

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

Use Instagram posts using music to look this up and give me the result as a table. Save the result in ./assets.

Instagram posts using musicCodex
Try asking
  • Pull the latest numbers from Instagram posts using music and tell me what changed since last week.

  • Check Instagram posts using music and summarize what you find in three bullet points.

  • Pull the newest data from Instagram posts using music and give me the result as a table.

  • Check Instagram posts using music every morning and tell me only when something changed.

How to set up Instagram posts using music 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 posts using music

    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-v2-fetch-music-posts",
        "input": {
          "audio_canonical_id": "564058920086577"
        }
      }'

Then paste one of the prompts above: Codex finds Instagram posts using music on Spiral, shows the price and runs it.

Instagram posts using music providers and prices

Spiral runs Instagram posts using music through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
Instagram V2 · Get music posts
tikhub/instagram-v2-fetch-music-posts

What can you do with Instagram posts using music in Codex?

Build a review screen for public Instagram campaign research. Turn retrieved content into evidence a team can inspect alongside its existing project notes.

Campaign postmortem

Review campaign posts found through a hashtag, venue, or audio. Add post details, saved highlight material, comment threads, and a check for public brand or creator accounts among returned likes.

Creator partnership research

Review a public creator's account background, suggested accounts, saved highlights, and selected posts. Compare audio choices and discussion themes, and check returned likes only for public brands or creators relevant to the brief.

Competitive brand content review

Compare public brand content associated with selected hashtags, locations, and sounds. Inspect individual posts and account backgrounds, then use suggested accounts to expand the review list.

Public brand collaboration discovery

Find public brands and creators through shared campaign tags, locations, sounds, suggested accounts, or returned likes. Review account backgrounds before adding candidates to a collaboration shortlist.

Creative reference research

Collect public content examples around a hashtag or sound, then inspect selected posts and highlights. Use suggested accounts to find additional brands or creators whose work merits review.

Questions about Instagram posts using music in Codex

Can Codex use Instagram posts using music?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Instagram posts using music like any built-in tool.

How much does Instagram posts using music cost in Codex?

$0.0026 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 posts using music in Codex?

No. Spiral runs Instagram posts using music 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 posts using music in Codex?

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

Does Codex wait while Instagram posts using music runs?

Instagram posts using music runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Does this cover private Instagram content?

TikHub describes its Instagram coverage as public account data. Keep research focused on publicly accessible brand and creator content.

How fresh is the Instagram data?

TikHub says visitor-view data may be cached and lag live values by a few days. These results should not be treated as live measurements.

Can I retrieve a discussion beyond the first comments?

Instagram comment replies supports pagination and uses the parent comment ID obtained from post comments. This lets you inspect a selected discussion thread beyond its initial reply page.

What does a location result represent?

Instagram location posts returns posts associated with the specified Instagram location. It supports pagination for additional results.

What is included in saved highlights?

Instagram highlight stories returns stories inside a selected highlight, including image or video URLs and publication times.

Get started

Start using Instagram posts using music 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