# Instagram Location Scraper: Posts by Place & Alerts (`alexmorain/instagram-location-scraper`) Actor

Scrape public Instagram posts tagged at any location: by place name, location ID or URL. Newest or top posts, caption, hashtags, likes, comments, author, media and coordinates, back to a start date. Watch mode returns only new posts, with a webhook. From $0.25 per 1,000 posts.

- **URL**: https://apify.com/alexmorain/instagram-location-scraper.md
- **Developed by:** [Alexis Morain](https://apify.com/alexmorain) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 posts

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

### What does Instagram Location Scraper do?

**Instagram Location Scraper** reads the public posts people tag at a place on [Instagram](https://www.instagram.com) and returns one clean row per post: caption, hashtags, mentions, likes, comments, author, photo or video link, format (photo, Reel, carousel) and the coordinates of the place. It works as an **Instagram location posts API** that needs no login, no cookies and no proxy setup.

Give it place names (`Louvre Paris`), Instagram location IDs (`315868029`) or location page URLs (`https://www.instagram.com/explore/locations/315868029/`). It reads each place from the newest post backwards, or in Instagram's own "top posts" order, and stops where you tell it to. Turn on **watch mode** and a scheduled run returns only the posts you have not received yet: a **location monitor** you can wire to Slack, Discord, Zapier or your own endpoint.

It does not read private accounts, stories, comments or follower lists, and it does not like, follow or post anything.

### Why use Instagram Location Scraper?

- **Place names work.** Type `Hotel Plaza New York` and the Actor finds the Instagram location for you, then reads it. Use a location ID or URL when you want one exact place.
- **Newest first, or top posts.** The newest-first feed is the one for monitoring and research: it runs from the latest post backwards with a start date. Top posts follow Instagram's ranking for a quick look at what a place is known for.
- **New posts only.** A named watch memory remembers what you already received, so a scheduled run never charges you twice for the same post.
- **Deep reads.** One place can be read well past 1,600 posts in a row, with no gap and no duplicate. Busy places have no end: Instagram keeps serving older posts, so you decide the depth.
- **Low price.** From **$0.25 per 1,000 posts** at the Gold tier, $0.45 on the standard plan. Only delivered posts are charged: unknown locations, repeated posts in watch mode and posts beyond your limits cost nothing.
- **Apify platform.** Schedules, API access, webhooks, datasets in JSON, CSV, Excel or XML, and integrations with Make, Zapier and n8n.

#### Who uses it

- **Tourism and hospitality**: what guests post at a hotel, a restaurant, a beach or a landmark, and when.
- **Local marketing and agencies**: user-generated content and local creators for a venue, a district or a city.
- **Event and retail teams**: the buzz around a venue, a store opening or a festival, as it happens.
- **Researchers and analysts**: posting volume and mood around a place over time.

### What data can Instagram Location Scraper extract?

| Field | Type | Description |
|---|---|---|
| `id`, `shortcode`, `url` | string | Post id, short code and link |
| `createdAt` | string | Publication time, ISO 8601 UTC |
| `caption` | string | Caption text (null when empty) |
| `hashtags`, `mentions` | array | Hashtags and mentioned accounts |
| `taggedUsers`, `coauthors` | array | Usernames tagged on the media, collaboration co-authors |
| `likes`, `comments`, `countsHidden` | number, boolean | Counters at read time, and whether the author hides likes |
| `mediaType`, `productType`, `carouselCount` | string, number | `photo`, `video` or `carousel`; `feed`, `clips` (Reel) or `carousel_container` |
| `image`, `videoUrl`, `width`, `height` | mixed | Media links and size |
| `audioTitle`, `audioAuthor` | string | Audio track of a Reel |
| `paidPartnership`, `captionEdited` | boolean | Post flags |
| `authorUsername`, `authorId`, `authorVerified`, `authorPrivate`, `authorAvatar` | mixed | The author |
| `locationId`, `locationName`, `locationLat`, `locationLng` | mixed | The place the author tagged, with coordinates |
| `searchedLocationId`, `searchedLocationName` | string | The place you asked for, or the one found for your place name |
| `scrapedAt` | string | When the post was read |

### How to scrape Instagram posts by location

1. Open the Actor and add places in **Locations**: names, location IDs or location URLs, one per line.
2. Pick **Sort**: newest first (default) or top posts.
3. Optional: set **Posts since** to a date, for example `2026-11-01`.
4. Set **Max posts per location**. One page is about 60 posts. Raise it together with **Max posts in total** for a deep read.
5. Click **Start**. Results appear in the **Output** tab and download as JSON, CSV or Excel.
6. To monitor places, tick **Watch mode**, choose a **Watch name**, add a **Webhook URL** and schedule the run.

#### How to find an Instagram location ID

Open any location page on Instagram: the number in the address is the ID (`instagram.com/explore/locations/315868029/musee-du-louvre/`). You can paste the whole URL. Or type the place name and let the Actor look it up: it reads the best match, and **Locations per place name** reads up to 10 matches when a name is ambiguous.

#### A note on how places work

Instagram location pages are not strict. The page of a big city also lists posts tagged at nearby spots, and an author can tag a place that has several similar pages (`Louvre, Paris` exists more than once). Each row therefore carries both `locationId` (what the author tagged) and `searchedLocationId` (what you asked for). Filter on either.

### How much does it cost to scrape Instagram locations?

Pricing is pay per event: a small fee when the run starts ($0.002 per GB of memory, 256 MB by default is still billed as one event), a price per post delivered, and $0.005 for each place name looked up.

| Plan | Per 1,000 posts |
|---|---|
| Free and Starter | $0.45 |
| Scale | $0.35 |
| Business | $0.25 |

Examples at the Starter price: 1,000 posts of one place cost about $0.45. Watching 20 places once a day costs the start fee plus the new posts only. A place name costs $0.005 once per run; a location ID or URL costs nothing to resolve. Set **Max total cost per run** in the run options to cap spending: the Actor stops cleanly and keeps what it delivered.

Accounts on the Free Apify plan have a small daily limit on this Actor. A paid Apify plan removes it.

### Input

See the **Input** tab for every option. The main ones:

| Field | Description |
|---|---|
| `locations` | Place names, location IDs or location URLs, one per line |
| `sort` | `recent` (default) or `top` |
| `sinceDate` | `YYYY-MM-DD`, UTC, newest first only. Reading stops at older posts |
| `maxPostsPerLocation` | Default 100 |
| `maxItems` | Default 1,000 posts in total |
| `maxLocationsPerSearch` | Matches read per place name, 1 to 10, default 1 |
| `newOnly`, `watchName` | Watch mode (newest first only) and its memory |
| `webhookUrl` | Called by POST at the end of a run with new posts. Never written to a log |

```json
{
  "locations": ["Louvre Paris", "https://www.instagram.com/explore/locations/212988663/new-york-new-york/"],
  "sort": "recent",
  "sinceDate": "2026-11-01",
  "maxPostsPerLocation": 500,
  "newOnly": true,
  "watchName": "landmarks",
  "webhookUrl": "https://hooks.slack.com/services/..."
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

```json
[
  {
    "id": "4033449411210244153",
    "shortcode": "Df5sN6OsfA5",
    "url": "https://www.instagram.com/p/Df5sN6OsfA5/",
    "createdAt": "2026-11-18T15:32:29Z",
    "caption": "randomly added this to the setlist #arianagrande #singer",
    "hashtags": ["arianagrande", "singer"],
    "mentions": [],
    "likes": 0,
    "comments": 0,
    "mediaType": "video",
    "productType": "clips",
    "authorUsername": "itsmarissagamble",
    "authorVerified": false,
    "locationId": "108424279189115",
    "locationName": "New York, New York",
    "locationLat": 40.7142,
    "locationLng": -74.0064,
    "searchedLocationId": "212988663",
    "searchedLocationName": null,
    "scrapedAt": "2026-11-18T15:33:02Z"
  }
]
```

The **SUMMARY** record of the run key-value store lists, per location, the posts delivered, the posts and pages read, and how the read ended (`end`, `since`, `known`, `location_cap`, `stopped`).

### Tips

- Instagram does not announce how many posts a place holds, so there is no "total" to compare with. Set the cap to the depth you need.
- Likes and comments are read when the post is read. Very recent posts have few likes yet.
- Image and video links are signed by Instagram and expire after a few days. Download the files you need soon after the run.
- In watch mode, use one **Watch name** per list of places and per purpose. Two schedules that share a name share a memory.
- The first run of a watch sets the starting point. Set **Max posts per location** low (60) if you only want what comes next.
- Watch mode follows publication time. A post published earlier but attached to the place later is not delivered.
- A page takes a few seconds to read, so 1,000 posts of one place take a few minutes. Several places are read in parallel.
- Webhook payload: `text`, `postsDelivered`, `latestPosts` (up to 10 posts with `id`, `url`, `createdAt`, `authorUsername`, `caption`), `perLocation`, `runId`, `datasetId`.

#### Run it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("alexmorain/instagram-location-scraper").call(run_input={
    "locations": ["Louvre Paris"], "sort": "recent", "maxPostsPerLocation": 120,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["createdAt"], post["authorUsername"], (post["caption"] or "")[:80])
```

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

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('alexmorain/instagram-location-scraper').call({
    locations: ['315868029'], sinceDate: '2026-11-01', maxPostsPerLocation: 300,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'posts');
```

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~instagram-location-scraper/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["315868029"], "maxPostsPerLocation": 60}'
```

### FAQ

#### Can I scrape Instagram posts by location?

Yes. Give a place name, a location ID or a location page URL. The Actor returns the public posts tagged at that place, newest first or in Instagram's top order.

#### Do I need an Instagram account or an API key?

No. The Actor reads public posts. You only need an Apify account.

#### How do I scrape Instagram posts from a city or a landmark?

Type the name (`Paris`, `Eiffel Tower`) or paste the location page URL. City pages hold the most posts and no end: use **Max posts per location** and **Posts since** to set the depth.

#### How far back can I go?

Newest first, as far as Instagram serves the place feed: a read of one landmark went back about a year in 1,600 posts. Use **Posts since** to stop earlier. There is no announced total.

#### How do I get an alert when someone posts at a place?

Use watch mode with a webhook URL and a schedule. Slack and Discord incoming webhooks work as they are. For keyword or hashtag filters, send the webhook to Zapier, Make or n8n and filter on `latestPosts[].caption`.

#### Why did my place name give a different place than I expected?

Names are ambiguous. The Actor reads the best match. Raise **Locations per place name** to read several, or use the location ID or URL for one exact place.

#### Why is a location skipped?

The ID does not exist, or the name matched nothing. It is listed in the run status and nothing is charged for it.

#### Is it legal to scrape Instagram?

Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. This Actor is not affiliated with Instagram or Meta.

#### Something is missing or wrong

Open a ticket in the **Issues** tab of this Actor. Programmatic access is in the **API** tab.

### Guide and use cases

Use cases, output fields, pricing and common questions are on the [Instagram Location Scraper page](https://alexis.morain.fr/en/scrapers/instagram-location-scraper/) of my site. The [Social media and content family page](https://alexis.morain.fr/en/scrapers/families/social-content/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

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

One location per line: a place name such as <code>Louvre Paris</code>, a numeric location ID such as <code>315868029</code>, or a location URL such as <code>https://www.instagram.com/explore/locations/315868029/</code>. A name is looked up on Instagram and charged as one location search. Unknown locations are skipped and not charged.

## `sort` (type: `string`):

<b>Newest first</b> reads the location feed from the latest post backwards and supports a start date and watch mode. <b>Top posts</b> follows Instagram's own ranking: posts are not in time order and a page holds about 27 posts.

## `sinceDate` (type: `string`):

Optional, newest-first only. Only posts published on or after this date, written <code>YYYY-MM-DD</code> (UTC). Reading stops once older pages are reached. Leave empty to read as far back as the caps below allow.

## `maxPostsPerLocation` (type: `integer`):

Stop reading a location after this many posts. Busy places have no end: Instagram keeps returning older posts, so this cap (and <code>maxItems</code>) is what bounds the run.

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

Hard cap on posts for the whole run, all locations together. Only delivered posts are charged.

## `maxLocationsPerSearch` (type: `integer`):

When you enter a place name, how many of the best matching Instagram locations to read (1 to 10). Names are ambiguous: <code>Louvre</code> matches several places. Use a location ID or URL to read exactly one.

## `newOnly` (type: `boolean`):

Newest-first only. Returns only the posts you have not received in an earlier run with the same watch name. The first run sets the starting point and delivers the posts it reads. Run it on a schedule (hourly, daily) to monitor locations.

## `watchName` (type: `string`):

Memory of what was already delivered. Use one name per list of locations and per purpose, for example <code>paris-hotels</code> and <code>research</code>, so two schedules do not share the same memory.

## `webhookUrl` (type: `string`):

Optional. When the run ends with new posts, a summary and the latest posts are sent there by POST (Slack, Discord, Zapier, your own endpoint). The URL is never written to a log.

## Actor input object example

```json
{
  "locations": [
    "315868029"
  ],
  "sort": "recent",
  "maxPostsPerLocation": 60,
  "maxItems": 1000,
  "maxLocationsPerSearch": 1,
  "newOnly": false,
  "watchName": "default"
}
```

# Actor output Schema

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

All posts in the default dataset.

## `summary` (type: `string`):

Posts delivered, read and pages per location, how each location read ended, stop reason.

# 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": [
        "315868029"
    ],
    "maxPostsPerLocation": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/instagram-location-scraper").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": ["315868029"],
    "maxPostsPerLocation": 60,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/instagram-location-scraper").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": [
    "315868029"
  ],
  "maxPostsPerLocation": 60
}' |
apify call alexmorain/instagram-location-scraper --silent --output-dataset

```

## MCP server setup

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

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/2ChV7rQlUVPbKadXc/builds/GXxcER8q4QFrDv9nR/openapi.json
