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

opencode · Social Media

How to Use Instagram account posts in GraphQL format in opencode

Returns an Instagram account's posts in a GraphQL-style timeline container. Use it when your analysis or application expects that structure rather than an items list.

Prompts to try with Instagram account posts in GraphQL format in opencode

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

Use Instagram account posts in GraphQL format for @nike and adapt our importer to read the returned timeline container while preserving the original records.

Instagram account posts in GraphQL formatopencode
Try asking
  • Use Instagram account posts in GraphQL format to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Instagram account posts in GraphQL format and tell me what changed since last week.

  • Check Instagram account posts in GraphQL format and summarize what you find in three bullet points.

  • Pull the newest data from Instagram account posts in GraphQL format and give me the result as a table.

How to set up Instagram account posts in GraphQL format in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 account posts in GraphQL format

    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-fetch-user-posts-v2",
        "input": {
          "user_id": "25025320"
        }
      }'

Then paste one of the prompts above: opencode finds Instagram account posts in GraphQL format on Spiral, shows the price and runs it.

Instagram account posts in GraphQL format providers and prices

Spiral runs Instagram account posts in GraphQL format through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
Instagram V1 · Get user posts list V2
tikhub/instagram-v1-fetch-user-posts-v2

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Count1 to 5012

Count per page

Every API field of Instagram V1 · Get user posts list V2 is on its tool page: open its card above.

What can you do with Instagram account posts in GraphQL format in opencode?

Build an internal Instagram content report from a public brand's returned records. Your coding agent can adapt the list and GraphQL response structures to your project's reporting format.

Prepare a campaign content brief

Collect a brand's published posts, Reels, reposts, and tagged posts for an internal campaign review. Label how each record relates to the brand so a repost or tag is not mistaken for original publishing.

Compare public brand content

Build an internal comparison of Nike and Adidas using the same content category and number of pages for each. Review published posts, short videos, amplification, or tagged content as separate comparisons.

Assemble a product launch review

Review returned content for a public brand's product launch. Distinguish material the brand published, material it reposted, and posts where others tagged it when selecting examples for the review.

Build an editorial reference list

Give an editorial team a reviewable selection of a public publisher's posts, Reels, reposts, or tagged content. Keep each selection tied to its content category before choosing examples for an internal planning session.

Create a recurring content digest

Compare successive collections for a public business and report newly observed records. Describe the report as a collection digest because visitor-view data can lag and completeness is not guaranteed.

Questions about Instagram account posts in GraphQL format in opencode

Can opencode use Instagram account posts in GraphQL format?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Instagram account posts in GraphQL format like any built-in tool.

How much does Instagram account posts in GraphQL format cost in opencode?

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

Do I need a TikHub account to use Instagram account posts in GraphQL format in opencode?

No. Spiral runs Instagram account posts in GraphQL format 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 account posts in GraphQL format in opencode?

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

Does opencode wait while Instagram account posts in GraphQL format runs?

Instagram account posts in GraphQL format runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does TikHub cover private Instagram content?

TikHub describes its Instagram coverage as publicly available content from public accounts. Private account content falls outside that stated coverage.

How fresh is the Instagram data?

TikHub says visitor-view statistics can lag live Instagram values by a few days. These responses should not be treated as a guaranteed live measurement.

Does TikHub guarantee accurate and complete Instagram records?

TikHub's terms explicitly decline to guarantee accuracy, completeness, or currency. A returned collection therefore does not establish that every relevant Instagram record was captured.

What use does TikHub's service license permit?

TikHub licenses its service for lawful use inside your business. That stated permission does not establish unrestricted rights to republish Instagram content.

Get started

Start using Instagram account posts in GraphQL format in opencode

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

Paste this into opencode:

Set up opencode

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