# Instagram Location ID Finder (`seemuapps/instagram-location-finder`) Actor

Find Instagram location IDs by place name or GPS coordinates - get the numeric location ID, Facebook Places ID, address, and coordinates for any place.

- **URL**: https://apify.com/seemuapps/instagram-location-finder.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 10 total users, 6 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 location founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Location ID Finder

Find the numeric Instagram location ID for any place — by name, keyword, or GPS coordinates — and get the address, coordinates, and Facebook Places ID along with it. No login required.

Instagram location IDs are the key that unlocks location-based scraping: post scrapers, story scrapers, and geo-analytics tools all ask for the numeric ID behind `instagram.com/explore/locations/{id}/`. This actor finds those IDs in bulk, so it pairs perfectly with an Instagram location posts scraper — run this first to discover the IDs, then feed them into the posts scraper.

### What you get

One record per found location:

- **locationId** — the numeric Instagram location ID (the `pk` used by location post scrapers)
- **locationUrl** — direct link to the location page (`https://www.instagram.com/explore/locations/{id}/`)
- **facebookPlacesId** — the underlying Facebook Places ID
- **name**, **shortName**, **address**, **city**, **zip**, **subtitle**
- **lat** / **lng** coordinates for mapping
- **source** and **query** — which input (keyword or coordinate pair) found the location
- With **Enrich** enabled: **category** (e.g. "Italian Restaurant", "Beach"), **phone**, **website**, **openStatus**, **isOpen**, and full weekly **openingHours**

Export everything to JSON, CSV, Excel, or Google Sheets directly from the Apify console.

### Use cases

- **Local lead generation** — discover every business venue around a coordinate or matching a keyword, with phone numbers and websites when enrichment is on
- **Real-estate marketing** — find the location IDs for neighborhoods, landmarks, and developments to analyze who posts there
- **Event marketing** — get the IDs for venues, stadiums, and festival grounds, then scrape the posts tagged at them
- **Geo-targeted influencer research** — map the Instagram locations in your target area and feed them into a location posts scraper to find creators posting there
- **Competitor analysis** — resolve competitor store locations to their Instagram IDs and monitor tagged content

### How to use

1. Enter one or more **Place names / keywords** (e.g. `times square`, `bondi beach`, `coffee shop brooklyn`) and/or **Coordinates** as `lat,lng` pairs (e.g. `40.7580,-73.9855`). At least one of the two is required.
2. Optionally enable **Enrich with full details** to fetch category, phone, website, and opening hours for every location that has an Instagram ID.
3. Set **Max Items** (default 100; `0` = unlimited).
4. Run the actor — results appear in the **Dataset** tab, one row per location, deduplicated within the run.

**Tip:** keyword search is the reliable way to get an Instagram location ID. Coordinate search returns nearby places, but many of them only carry a Facebook Places ID (`locationId` is often `null` for coordinate results). If a coordinate hit you care about has no ID, search its name as a keyword to resolve the Instagram location ID.

### Output format

Example record:

```json
{
  "source": "keyword",
  "query": "bondi beach",
  "locationId": "121208754622130",
  "facebookPlacesId": "121208754622130",
  "name": "Bondi Beach, Sydney",
  "shortName": "Bondi Beach",
  "address": "New South Wales",
  "city": null,
  "zip": "2026",
  "lat": -33.89189964,
  "lng": 151.27425551,
  "subtitle": "New South Wales",
  "locationUrl": "https://www.instagram.com/explore/locations/121208754622130/",
  "category": "Beach",
  "phone": "+61 404 110 011",
  "website": "https://www.australia.com/en-us/places/sydney-and-surrounds/guide-to-bondi.html",
  "openStatus": "Open until 11:59 PM",
  "isOpen": true,
  "openingHours": [
    { "day": "Monday", "hours": ["12:00 AM - 11:59 PM"] }
  ]
}
```

The enrichment fields (`category`, `phone`, `website`, `openStatus`, `isOpen`, `openingHours`) are included when **Enrich** is enabled; enrichment costs one extra request per location that has an ID.

### Pricing

You are charged per location record in the dataset — predictable and easy to forecast: results are only billed when they are actually delivered.

### Works great with

- **Instagram Location Posts Scraper** — paste any `locationId` from this actor's output to scrape the top or most recent posts tagged at that place.

# Actor input Schema

## `queries` (type: `array`):

Place names or keywords to search for (e.g. "times square", "bondi beach", "coffee shop brooklyn"). Each query returns up to ~30 matching Instagram locations with their location IDs. Provide this, coordinates, or both.

## `coordinates` (type: `array`):

GPS coordinate pairs as "latitude,longitude" strings (e.g. "40.7580,-73.9855"). Each pair returns nearby places. Note: coordinate results often lack a numeric Instagram location ID - keyword search is the reliable way to get one. Provide this, queries, or both.

## `enrich` (type: `boolean`):

Fetch full details (category, phone, website, opening hours) for every found location that has an Instagram location ID. Costs one extra request per enriched location.

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

Maximum number of locations to output across all queries and coordinates. Set 0 for unlimited.

## Actor input object example

```json
{
  "queries": [
    "times square"
  ],
  "coordinates": [
    "40.7580,-73.9855"
  ],
  "enrich": false,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Each record contains source (keyword/coordinates), query, locationId, facebookPlacesId, name, shortName, address, city, zip, lat, lng, subtitle, locationUrl, and (when enrichment is on) category, phone, website, and opening hours.

# 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 = {
    "queries": [
        "times square"
    ],
    "coordinates": [
        "40.7580,-73.9855"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/instagram-location-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 = {
    "queries": ["times square"],
    "coordinates": ["40.7580,-73.9855"],
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/instagram-location-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 '{
  "queries": [
    "times square"
  ],
  "coordinates": [
    "40.7580,-73.9855"
  ]
}' |
apify call seemuapps/instagram-location-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/instagram-location-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/oWH2H6VYJmpUftEXx/builds/4mV11S7sImEIFDaqV/openapi.json
