[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Instagram places by city](https://spiral.ai/integrations/codex/instagram-places-by-city)

# How to Use Instagram places by city in Codex

Returns Instagram places within a city, along with country information, city information, and the next page number. Use it to assemble a venue shortlist before checking individual places.

|  |  |
| --- | --- |
| Model | Instagram places by city |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Instagram places by city in Codex

- Use Instagram places by city for Paris, using its Instagram city identifier, and build a searchable venue table in this project.
- Use Instagram places by city to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Instagram places by city and tell me what changed since last week.
- Check Instagram places by city and summarize what you find in three bullet points.
- Pull the newest data from Instagram places by city and give me the result as a table.

## How to set up Instagram places by city in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
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.

```bash
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.

```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 places by city**: 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-v1-fetch-locations",
    "input": {
      "city_id": "c2791472"
    }
  }'
```

Then paste one of the prompts above: Codex finds Instagram places by city on Spiral, shows the price and runs it.

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

## Instagram places by city tools and prices

- [Instagram V1 · Get locations by city](https://spiral.ai/tools/tikhub/tikhub/instagram-v1-fetch-locations) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to … | 1 | Page number |

## What can you do with Instagram places by city in Codex?

Build an internal Instagram research view from place records, posts, Explore sections, or reply threads. A coding agent can turn the returned records into tables and comparison views in your project.

### Build a regional venue shortlist

Start with Instagram's country directory, collect places in selected cities, check their addresses and coordinates, and review tagged posts for editorial relevance.

### Plan a local brand campaign

Choose cities and candidate venues from Instagram's directories. Check each place record and its tagged content to prepare an internal location brief.

### Research a destination content series

Organize a travel publisher's research by country, city, and attraction. Pair place details with tagged posts to identify locations worth covering.

### Review venue tags before reporting

Work through selected cities and their place listings, compare venue addresses and coordinates, and inspect tagged posts before assigning content to a business location.

## Overview

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

## Instagram places by city in other agents

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

## More Codex guides

- [Instagram place details](https://spiral.ai/integrations/codex/instagram-place-details)
- [Instagram popular reels](https://spiral.ai/integrations/codex/instagram-popular-reels)
- [Instagram nearby location search](https://spiral.ai/integrations/codex/instagram-nearby-location-search)
- [Instagram popular topic posts](https://spiral.ai/integrations/codex/instagram-popular-topic-posts)
- [Instagram nearby content](https://spiral.ai/integrations/codex/instagram-nearby-content)
- [Instagram post and reel details](https://spiral.ai/integrations/codex/instagram-post-and-reel-details)

## Questions about Instagram places by city in Codex

**Can Codex use Instagram places by city?**

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

**How much does Instagram places by city 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 places by city in Codex?**

No. Spiral runs Instagram places by city 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 places by city in Codex?**

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

**Does Codex wait while Instagram places by city runs?**

Instagram places by city runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Can this data include private Instagram content?**

TikHub describes its Instagram coverage as public data. Private accounts, direct messages, and non-public insights are outside that coverage.

**How fresh are the Instagram results?**

TikHub identifies these endpoints as visitor-view data. Counts and statistics can take a few days to reflect what the Instagram app shows.

**Does TikHub guarantee complete and accurate Instagram data?**

No. Its terms disclaim guarantees that returned data is accurate, complete, current, or suitable for a particular purpose.

**What use does TikHub's service license permit?**

TikHub's terms limit the service license to lawful internal business purposes. That is the stated scope of the license, rather than a blanket permission for any downstream use.

**Does retrieving Instagram content grant rights to republish it?**

TikHub's terms say retrieved content may remain subject to third-party intellectual property rights. Access through an endpoint does not establish permission to republish that content.

