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

Gemini CLI · Social Media

How to Use Instagram search results in Gemini CLI

Find Instagram accounts, hashtags, and places in paginated search results. Use it to discover brand accounts, shortlist campaign hashtags, or find venue matches from a keyword.

Prompts to try with Instagram search results in Gemini CLI

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

Use Instagram search results to search Patagonia and save returned business account candidates in the project's brand research file for manual review.

Instagram search resultsGemini CLI
Try asking
  • Use Instagram search results to search #trailrunning and #hiking, collect up to three pages each, and save a deduplicated hashtag comparison in this project.

  • Use Instagram search results to search Museum of Modern Art and populate our venue review fixture with the returned place candidates.

  • Use Instagram search results to search Nike, Adidas, and New Balance separately, then add a table of business account candidates to the project's competitor research document.

  • Use Instagram search results to search SXSW and #SXSW, then save separate account, hashtag, and place lists in the project's event research folder.

How to set up Instagram search results 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:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Instagram search results

    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-v3-general-search",
        "input": {
          "query": "justin"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds Instagram search results on Spiral, shows the price and runs it.

Instagram search results providers and prices

Spiral runs Instagram search results through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
Instagram V3 · General search (with pagination)
tikhub/instagram-v3-general-search

Settings you can ask for

Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Enable metadataon or offon

Enable metadata

Every API field of Instagram V3 · General search (with pagination) is on its tool page: open its card above.

What can you do with Instagram search results in Gemini CLI?

Build a reviewable directory of Instagram brand, hashtag, and venue matches inside your project. A coding agent can turn paginated results into separate lists and remove duplicates before saving them.

Find brand account candidates

Search Patagonia and shortlist returned business accounts for manual review before adding them to an internal brand directory.

Prepare campaign hashtag research

Search #trailrunning and #hiking, then collect distinct hashtag matches for a campaign planning brief.

Resolve venue search matches

Search Museum of Modern Art and review returned places to choose a venue for further Instagram research.

Build a competitor account shortlist

Run separate searches for Nike, Adidas, and New Balance. Organize returned business account candidates by search term for review.

Research event naming

Search SXSW and #SXSW to collect account and hashtag candidates for an internal event coverage plan.

Compare local and English venue names

Search Museo del Prado and Prado Museum, then compare distinct place matches to improve a venue research list.

Review changes in brand search matches

Repeat a LEGO search weekly and compare distinct business account candidates with the previous run to prioritize manual review.

Questions about Instagram search results in Gemini CLI

Can Gemini CLI use Instagram search results?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Instagram search results like any built-in tool.

How much does Instagram search results cost in Gemini CLI?

$0.0104 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 search results in Gemini CLI?

No. Spiral runs Instagram search results 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 search results in Gemini CLI?

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

Does Gemini CLI wait while Instagram search results runs?

Instagram search results runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

What does Instagram search return?

TikHub documents three result categories: accounts, hashtags, and places. The response also includes a result count and pagination information.

Can I retrieve results beyond the first page?

Yes. Continue using the next-page information returned by the previous response, keeping the same search text, until Instagram indicates there are no more results.

Why do some results appear more than once?

TikHub explicitly warns that Instagram general search can return duplicate data. Remove repeated entries before counting matches or comparing searches.

How should I search for an Instagram hashtag?

Include the leading #, such as #fashion. TikHub specifies that hashtag searches require this prefix.

Does this provide private Instagram content?

TikHub limits its Instagram coverage to public data. Private accounts, direct messages, and non-public insights are excluded.

Get started

Start using Instagram search results in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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