# Instagram Location ID Finder: Place Names to IDs (`automation_craft/instagram-location-id-finder`) Actor

Instagram location ID finder: turn city, neighbourhood, postcode or venue names and coordinates into Instagram location IDs in bulk, no login. Each ID confirmed by Instagram, with name, address, coordinates and check ins. Add place details, posts, website, email. Misses free. CSV or API.

- **URL**: https://apify.com/automation_craft/instagram-location-id-finder.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** Social media, Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.19 / 1,000 locations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Instagram Location ID Finder: Place Names to IDs

**Instagram Location ID Finder** turns place names into Instagram location IDs in bulk, without a login or cookies. Give it cities, neighbourhoods, postcodes, venue names or "latitude, longitude" points, and get one row per place found: the Instagram location ID (the number in `instagram.com/explore/locations/<id>/`), the name Instagram shows for it, its address, coordinates, city, postcode and the number of people who checked in. An entry that finds nothing gets a free row that says why.

Location IDs are what location post scrapers, Instagram publishing tools (the `location_id` of a post), Marketplace and search tools ask for, and Instagram no longer lets a visitor search places. This Actor finds the places in Facebook's own place index, where a place's page ID is the same number as its Instagram location ID, and confirms every ID with Instagram itself before it delivers it: a row is only charged once Instagram has named the place.

You can also look up IDs you already have (an ID or a location link to its name), read every place Instagram lists for a city in its location directory, and add each place's Instagram page facts and recent posts, or its website, phone and e-mail.

### How to find Instagram location IDs

1. Open the Actor and type your places into **Place names or coordinates** (`locations`), one per line: `Yankee Stadium, Bronx`, `Brooklyn, New York`, `75001`, or `40.7580, -73.9855` for the places near a point.
2. Add the city or state to a venue or a common place name, or put a city or a point in **Near** (venues): a chain or a common name then returns its local places first. A bare `Brooklyn` lists Brooklyns in Oregon, Florida and Tasmania too, in the order Facebook ranks them.
3. Switch on **Place details** or **Place contact** if you also want each place's Instagram page facts and posts, or its website and contact details.
4. Click **Start**. Download the rows as JSON, CSV or Excel, or read them from the API.

### What you get

One `location` row per place found, in the source's order for each entry:

| Field | What it is | Filled on |
|---|---|---|
| `locationId` | The Instagram location ID | every row |
| `name` | The place's name as Instagram shows it | every row |
| `instagramUrl` | The place's Instagram location page | every row |
| `facebookPlaceId`, `facebookUrl` | The same number as a Facebook place page, for places found by name or point | places found by name or point |
| `address`, `addressLines` | The address or label Facebook gives (a venue's street address, an area's name) | name and point results |
| `checkins` | How many people checked in here (null for cities) | most venues |
| `isCity` | Whether Facebook marks the place as a city | name and point results |
| `latitude`, `longitude`, `city`, `postalCode` | The place's coordinates and Facebook's geocode | name and point results |
| `marketplaceUrl` | The place's Facebook Marketplace page (areas only) | area results |
| `foundBy`, `rank` | `area_search`, `venue_search`, `nearby`, `id_lookup` or `directory`, and the place's position in that answer | every row |
| `input`, `inputIndex`, `inputList` | The entry that found it, and its position | every row |
| `distanceMeters` | The place's distance from the point (a "latitude, longitude" line, or **Near**) | point and Near results |
| `near`, `countryCode` | The point a venue search was biased to, and the country an area search kept to | when set |
| `slug`, `directoryCity` | The directory's slug and city | directory rows |

`status` is `found` (charged as Location) or `duplicate`: a place an earlier entry of the same run already delivered is repeated free, with `sameAsInput` naming that entry.

#### Measured on the platform (2026-11-07)

- **Every ID is an Instagram location:** 1,237 of 1,242 distinct places Facebook's place search returned were named by Instagram's own call (99.6 percent); the 5 others (look alike copies of a place) are dropped, never charged.
- **The right venue first:** in a test of 32 well known venues in 20 countries, the right place was the first row for 21 of 32 by name alone, in the first 3 rows for 27, and the first row for 32 of 32 with a point in **Near**.
- **How many places a name gives:** up to 10 areas (cities, neighbourhoods, postcodes) and up to 10 venues; 20 distinct places is about the most Facebook's place search answers for one name.
- **Place details fill (20 places):** name, category, Instagram post count, coordinates 20 of 20; a price range (1 to 4) on 12, Instagram's 0 (none set) on 8; street 17; postcode 15; opening status 13; phone 7; linked business account 8; up to 18 top and 12 recent posts (15 to 18 top posts on 99 of 112 places in a run of 2026-11-07; fewer where a place has few).
- **Place contact (claimed places only):** a website on every claimed page read (7 of 7), phones 5, e-mails 3, the recommendation share and review count 7. Cities and unclaimed places have no contact page and are free.

#### Status values of free `input` rows

| Status | Meaning |
|---|---|
| `not_found` | The source answered and holds no place for this entry (or Instagram knows none of the places Facebook found) |
| `partial` | Some places were delivered; some could not be checked with Instagram, or one place list did not answer (named on the row) |
| `capped` | **Max locations**, the charge limit or a stop cut this entry's places (how many is on the row) |
| `lookup_failed` | The source did not answer after the run's tries |
| `invalid_value`, `link_in_names`, `not_a_location_id`, `not_a_directory_city` | Not a value this Actor reads |
| `city_not_found`, `city_ambiguous` | A "CC/City" directory name not found, or carried by several cities (listed, none picked) |
| `directory_done` | A directory city read to its end or to its cap, with its counts |
| `duplicate_input` | The same entry as an earlier one |
| `all_duplicates` | Every place this entry found was delivered for an earlier entry (shown when the repeated rows are past the cap of 1,000) |
| `already_delivered` | After a restart of the run: an earlier attempt delivered this entry's places and this one found no new place |
| `skipped` | Not reached (a stop or **Max locations**): run it again |
| `invalid_input` | The input could not be used as given (the row names every problem); nothing was looked up, only the start fee charged |
| `near_not_placed` | **Near** given as a name could not be placed on the map; nothing was looked up, only the start fee charged |

Other free rows: `outcome` rows list the positions of entries of one status past 1,000 rows of that status, the `summary` row (always last) carries the run's counters, and an `error` row says why a run that failed unexpectedly stopped.

#### Place details and Place contact (add-ons)

**Place details** (`placeDetails`) reads each delivered location's Instagram page: `category`, `postsCount`, `phone`, `priceRange`, `latitude`, `longitude`, `slug`, `street`, `postalCode`, `openingStatus` with `isOpenNow`, the linked `businessAccount`, and `topPosts`: the up to 18 top posts the page shows, each with `shortCode`, `url`, `type`, `timestamp`, `caption`, `likesCount`, `commentsCount`, `videoPlayCount`, `ownerUsername`, `displayUrl`, `videoUrl` and, for reels, `music` (title, artist, audio ID, original audio or not). **Recent posts too** (`recentPosts`) adds the recent tab's newest posts (up to 12); **Only video posts** and **Posts newer than** filter them.

**Place contact** (`placeContact`) reads the contact section of the place's claimed Facebook page: `websites`, `phones`, `emails`, `addresses`, `openingStatus`, `priceRange`, `categories`, `services`, `recommendPercent` and `reviewCount`.

Each add-on row is charged once per location. A page that cannot be read is free and its ID is listed in the run's summary row (`detailsNotReadIds`, `contactsNotReadIds`); a place with no claimed page is free and counted there (`contactsNotAvailable`). For an ID you typed in or one from Instagram's directory, the contact row is delivered only when the Facebook page carries the place's Instagram name (an old ID can be the number of an unrelated Facebook page); otherwise it is free and counted in the summary (`contactsNameMismatch`).

### How it works

- **Names:** Facebook's place search has two lists. The areas list answers cities, towns, neighbourhoods, postcodes and regions (**Country** keeps it to one country); the venues list answers businesses, landmarks and parks (**Near** biases it to a point). **Place types** picks one or both, areas first.
- **Points:** `40.7580, -73.9855` lists the places near the point (up to 10), each with its `distanceMeters`. Any line of two numbers is read as latitude, longitude (a comma, semicolon or space between); a pair out of range is a free row; only places within **Radius around a point** (`radiusMeters`, 1,000 m by default) are delivered.
- **IDs:** **Instagram location IDs or links** gives each ID's name as Instagram shows it. Old short Instagram IDs (like 531) work here too; they cannot be found by name.
- **Directory:** **Directory cities** reads Instagram's location directory: every place it lists for a city, 96 a page, up to about 1,000 a city. Give the city's link from `instagram.com/explore/locations/<country>/`, its ID (`c2871929`) or `US/Chicago`.
- **The check:** every candidate ID goes to Instagram's own place call before it is delivered. A place another entry of the run already delivered is repeated free. Each location is charged once per run.
- **Coordinates Facebook ignores:** now and then Facebook answers a call with coordinates as if they were not there, with places around another city (about a third of such calls in one hour of 2026-11-07). Every answer to a point or to **Near** is judged by distance: one with no place within the radius (for a point) or within 50 km (for Near) is asked again on fresh exits, up to 4 calls, and is never delivered as near. A point with no place within its radius gets a free row naming the nearest place Facebook gave.
- **Egress:** the run reads from its own address first and the Apify datacenter proxy behind it. No login, no cookies, no residential traffic.

#### Limits

- About 20 places at most per name (10 areas, 10 venues) and 10 per point, because that is what Facebook's place search answers.
- One run delivers at most 50,000 location rows (found and repeated together); entries past that bound get a free `skipped` row: split a bigger list into several runs.
- Instagram shows a place's posts one page per tab to visitors who are not logged in: up to 18 top posts and up to 12 recent ones (fewer where a place has few), no more.
- The run's allowance of unpaid work stops the lookups after a long run of entries that find nothing (about 30 names in a row that find nothing: 30 to 32 of 150 made up names on the platform, 2026-11-07); a list that starts with many misses should be split.

### Input

```json
{
    "locations": ["Tartine Bakery", "Mission District, San Francisco", "37.7596, -122.4269"],
    "locationIds": ["531", "https://www.instagram.com/explore/locations/64428277906/tartine-bakery/"],
    "directoryCities": ["US/Chicago"],
    "placeTypes": "all",
    "maxPlacesPerName": 10,
    "near": "San Francisco",
    "countryCode": "US",
    "radiusMeters": 1000,
    "maxPerCity": 96,
    "maxItems": 1000,
    "placeDetails": true,
    "recentPosts": false,
    "placeContact": false
}
```

Every setting is optional except one of the three lists (or **Place names from a file**, `locationsFile`: a TXT or CSV file link or a shared Google Sheet). A setting that would change nothing is refused rather than ignored: **Near** with **Place types** `areas`, **Country** with `venues`, and the post filters without **Place details**. With **Near**, a venue name that has no place within 50 km of it gets a free `partial` row saying so (Facebook's answer is asked again first, as it sometimes ignores the point): give Near only for names in that area. **Return after (seconds)** (`maxRunSeconds`) delivers what is ready by then, for AI agents with a short tool timeout.

### How much does it cost to find Instagram location IDs?

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Location (per 1,000) | $0.26 | $0.238 | $0.216 | $0.186 |
| Place details (per 1,000) | $1.40 | $1.28 | $1.16 | $1.00 |
| Place contact (per 1,000) | $1.00 | $1.00 | $0.90 | $0.80 |
| Actor start (per run) | $0.006 | $0.006 | $0.006 | $0.006 |

Platinum and Diamond plans pay the Gold price. There is no discount on the Actor start event. The Store pricing card shows these same prices per 1,000 events: "$0.186 / 1,000" on the Location row means one location costs less than 0.02 cents at Gold.

Examples at Gold: 100 city names with 10 places each (1,000 locations) cost $0.186 plus the $0.006 start; the same with Place details on every place adds $1.00. Entries that find nothing, IDs Instagram does not know, repeated places, invalid entries and every status row are free; only the run's start fee is charged on a run that finds nothing.

### Use it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~instagram-location-id-finder/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["Eiffel Tower", "Shibuya, Tokyo"], "maxPlacesPerName": 3}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation_craft/instagram-location-id-finder').call({ locations: ['Blue Bottle Coffee'], near: '37.8044, -122.2712' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'location').map((i) => [i.locationId, i.name]));
```

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("automation_craft/instagram-location-id-finder").call(run_input={"locationIds": ["531", "64428277906"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "location":
        print(item["locationId"], item["name"])
```

### FAQ

#### How do I find an Instagram location ID?

Type the place's name (or "latitude, longitude") into this Actor: each row gives the location ID, the name Instagram shows and its page link. The ID is the number in `instagram.com/explore/locations/<id>/`.

#### Can I get an Instagram location ID from coordinates?

Yes. A line such as `40.7580, -73.9855` lists the places near that point (within 1,000 m by default, set by **Radius around a point**), each with its location ID and its distance.

#### Why does one place have several Instagram location IDs?

Users create look alike places ("Yankee Stadium" also exists as a place in Tampa and as several city pins). Each is its own ID with its own posts. Add the city to the name or set **Near**, and compare `address`, `checkins` and, with Place details, `postsCount` to pick the main one.

#### Which location ID do I pass when publishing through the Instagram API?

The Instagram API's `location_id` is the ID of a Facebook place page, which is the number this Actor delivers as `locationId` (and `facebookPlaceId`) for places found by name or point.

#### Do I need an Instagram login or cookies?

No. The Actor reads only what Facebook and Instagram show to visitors who are not logged in.

#### Why does this Actor run with limited permissions?

It needs nothing beyond its own run storage, so it runs with the least access Apify offers: it cannot read your other datasets, stores or actors.

### What this Actor does NOT do

- It does not return more than about 20 places for one name: Facebook's place search answers at most 10 per list.
- It does not read a place's posts past the first page of each tab, nor a weekly opening schedule or a place description: Instagram shows those only to logged in visitors.
- It does not search Instagram's own place search or use any account: no login, no cookies, no session.
- It does not search profiles, hashtags or reels; it finds places.
- It keeps nothing between runs: no "new only" mode and no cache; every run looks its entries up again.
- You are responsible for a lawful use of any personal data in the results (GDPR included).

### Changelog

See the Changelog tab.

### More data tools by Automation Craft

- [Instagram Posts Scraper: Profiles, Reels, No Login](https://apify.com/automation_craft/instagram-posts-scraper)
- [Instagram User Search Scraper: Profiles by Keyword](https://apify.com/automation_craft/instagram-user-search-scraper)
- [Instagram Reels Search Scraper: Reels by Keyword](https://apify.com/automation_craft/instagram-reels-search-scraper)
- [Instagram Profile Scraper: Followers, Bio, Posts](https://apify.com/automation_craft/instagram-profile-scraper)
- [Facebook Page ID Finder: Names to Page IDs](https://apify.com/automation_craft/facebook-page-id-finder)
- [Facebook URL to ID Finder: Pages, Profiles, Groups](https://apify.com/automation_craft/facebook-url-to-id)
- [Facebook Events Scraper: Pages, Cities, Search](https://apify.com/automation_craft/facebook-events-scraper)
- [Threads Search Scraper: Keywords, Hashtags, Dates](https://apify.com/automation_craft/threads-search-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/instagram-location-id-finder/changelog.md

# Actor input Schema

## `locations` (type: `array`):

One per line: a city, neighbourhood, postcode or venue name (add the city or state: "Blue Bottle Coffee Oakland", "Brooklyn, New York"), or "latitude, longitude" for the places near a point. Every place found is one Location row with its Instagram location ID and the name Instagram shows; a line that finds nothing is a free row. Up to 10,000 entries a run across the three lists.

## `locationIds` (type: `array`):

Instagram location IDs (531, 64428277906) or instagram.com/explore/locations/<id>/ links: each gives the place's name as Instagram shows it (one Location row; Place details and Place contact work here too). An ID Instagram does not know is a free row.

## `directoryCities` (type: `array`):

Instagram's location directory: a city link (instagram.com/explore/locations/c2871929/...), a city ID (c2871929) or "US/Chicago" (a country code and the city's exact directory name). Each place Instagram lists for the city is one Location row, up to "Places per directory city".

## `locationsFile` (type: `string`):

Optional: one https link to a TXT file (one name per line) or a CSV file (one column, or a column named location, place, name, query, search, keyword, city, venue or address) or a Google Sheet shared with anyone with the link. Its names join "Place names or coordinates".

## `placeTypes` (type: `string`):

Which of Facebook's two place lists a name is searched in: areas (cities, neighbourhoods, postcodes, regions) and venues. "all" searches both, areas first; one name gives up to 10 places from each list.

## `maxPlacesPerName` (type: `integer`):

How many places one name or point may give, in the source's order (1 for the best match). One name reaches about 20 places at most (10 areas and 10 venues); a point gives up to 10.

## `near` (type: `string`):

Optional: "latitude, longitude" or a city name. Venue searches are biased to the places near it, so a chain or a common name returns its local places first (in our test of 32 venues the right one came first on 32 of 32 with a point, 21 of 32 without). A venue answer with no place within 50 km of the point is asked again and never delivered as near. A city name is placed by its first area result, shown on every row.

## `countryCode` (type: `string`):

Optional: a two letter ISO country code (US, GB, FR). Area searches keep to that country ("Paris" with US gives Paris, Texas). Facebook ignores it for venues: use "Near" there.

## `radiusMeters` (type: `integer`):

For "latitude, longitude" lines: only places within this distance of the point are delivered (each row carries its distance). Facebook sometimes answers a point with places around another city; such an answer is asked again on fresh exits and never delivered.

## `maxPerCity` (type: `integer`):

How many places of each directory city are read, in Instagram's order (96 a page). Instagram lists at most about 1,000 places a city.

## `maxItems` (type: `integer`):

Optional: the most Location rows this run delivers and charges, across every entry (up to 50,000). Entries past it get a free skipped row. One run delivers at most 50,000 location rows in all (found and repeated), whatever this says.

## `placeDetails` (type: `boolean`):

Reads each delivered location's Instagram page: category, Instagram post count, phone, price range, coordinates, street, postcode, opening status, the linked business account, and the 15 to 18 top posts the page shows (likes, comments, caption, owner, reel music). Charged per Place details row; a page that cannot be read is free.

## `recentPosts` (type: `boolean`):

With Place details: also reads the page's recent tab and adds its 9 to 12 newest posts. No extra charge.

## `onlyVideoPosts` (type: `boolean`):

With Place details: keep only videos and reels in the nested posts.

## `postsNewerThan` (type: `string`):

With Place details: keep only nested posts made on or after this date (YYYY-MM-DD, or an ISO time).

## `placeContact` (type: `boolean`):

For places with a claimed Facebook page: the website, phones, e-mails, address, opening status, price range, categories and recommendation share with its review count from that page's contact section. Charged per Place contact row; a place with no claimed page, or a page that cannot be read, is free.

## `maxRunSeconds` (type: `integer`):

Optional: stop new lookups after this many seconds from the run's start and deliver what is ready (for AI agents with a short tool timeout). Entries not reached get a free skipped row.

## `maxConcurrency` (type: `integer`):

Optional: how many lookups run at once (1 to 4, default 4).

## `maxRetries` (type: `integer`):

How many times a refused or failed read is asked again on a fresh exit (0 to 3).

## `includeRawData` (type: `boolean`):

Adds a raw field to each Location row with the place as Facebook's place search and Instagram's directory gave it. No extra charge.

## `debugLog` (type: `boolean`):

Writes one log line per entry with its candidates, checks and misses.

## `proxyConfiguration` (type: `object`):

Leave as is: the run reads from its own address first and the Apify datacenter proxy behind it; every source answers there. A residential group is read as the datacenter group (it would cost more than a row earns).

## Actor input object example

```json
{
  "locations": [
    "Yankee Stadium, Bronx",
    "Brooklyn, New York",
    "40.7580, -73.9855"
  ],
  "placeTypes": "all",
  "maxPlacesPerName": 3,
  "radiusMeters": 1000,
  "maxPerCity": 96,
  "placeDetails": false,
  "recentPosts": false,
  "onlyVideoPosts": false,
  "placeContact": false,
  "maxRetries": 2,
  "includeRawData": false,
  "debugLog": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Yankee Stadium, Bronx",
        "Brooklyn, New York",
        "40.7580, -73.9855"
    ],
    "maxPlacesPerName": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/instagram-location-id-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": [
        "Yankee Stadium, Bronx",
        "Brooklyn, New York",
        "40.7580, -73.9855",
    ],
    "maxPlacesPerName": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/instagram-location-id-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Yankee Stadium, Bronx",
    "Brooklyn, New York",
    "40.7580, -73.9855"
  ],
  "maxPlacesPerName": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automation_craft/instagram-location-id-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation_craft/instagram-location-id-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sV5Mwzeqqzfh24cbN/builds/TvWAHHWIvXxIY4oxB/openapi.json
