How to Use Instagram cities by country in Codex
Returns Instagram's cities and regions for a country, country information, and the next page number. Use it to choose cities before looking up their Instagram places.
Prompts to try with Instagram cities by country in Codex
Copy an example into Codex, or ask in your own words.
Use Instagram cities by country for Japan and add the returned cities and country information to our internal destination research view.
Use Instagram cities by country to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Instagram cities by country and tell me what changed since last week.
Check Instagram cities by country and summarize what you find in three bullet points.
Pull the newest data from Instagram cities by country and give me the result as a table.
How to set up Instagram cities by country in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- 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
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Instagram cities by country
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-cities", "input": { "country_code": "US" } }'
Then paste one of the prompts above: Codex finds Instagram cities by country on Spiral, shows the price and runs it.
Instagram cities by country providers and prices
Spiral runs Instagram cities by country through TikHub. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | a whole number from 1 | 1 | Page number |
Every API field of Instagram V1 · Get cities by country is on its tool page: open its card above.
What can you do with Instagram cities by country 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.
More on Instagram cities by country and Codex
Overview
Instagram cities by country in other agents
Questions about Instagram cities by country in Codex
Can Codex use Instagram cities by country?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Instagram cities by country like any built-in tool.
How much does Instagram cities by country 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 cities by country in Codex?
No. Spiral runs Instagram cities by country 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 cities by country in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Instagram cities by country runs?
Instagram cities by country 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.
Start using Instagram cities by country in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


