# TikTok Location Scraper — Posts, Creators & Stats by Place (`zapticx/tiktok-location-scraper`) Actor

Scrape public TikTok posts tagged at any place. Get captions, hashtags, views, likes, saves, creator stats and sound data for each location. $0.25 per 1,000 posts.

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

## Pricing

$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.

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

## 📍 TikTok Location Scraper

Get the public TikTok posts tagged at any place — a city, a restaurant, a hotel, a stadium or a shop — straight from TikTok's own place feed. Paste place links and get one clean row per post: caption, hashtags, views, likes, comments, shares, saves, creator profile and follower counts, sound, and the exact place the post is tagged with.

Built for local marketers, agencies, tourism and hospitality teams, and researchers who need geo-tagged TikTok content rather than keyword matches. No login and no browser; runs need no proxy by default, so they start quickly and stay cheap.

💰 **Pricing:** $0.25 per 1,000 posts. No start fee, no per-location fee, and you only pay for posts that are delivered.

**Data source:** [TikTok place pages](https://www.tiktok.com/place/New-York-22535796481546927)

### What can you do with this Actor?

- **Local marketing:** see what people post at a venue, a mall or a neighbourhood, and which posts perform best.
- **Influencer discovery:** find creators who post from a city or a specific business, with follower counts and verified badges.
- **Venue and competitor monitoring:** track what customers film at your own locations and at competitors'.
- **Tourism and hospitality research:** compare destinations, hotels and attractions by real engagement.
- **Content and trend research:** find the hashtags, sounds and formats that work in a given place.
- **Lead lists:** build lists of local creators and businesses active on TikTok.

### How to use this Actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click [**Sign up free on Apify →**](https://console.apify.com/sign-up?fpr=1h3gvi) and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this Actor.
- ⏳ Start on Apify's free plan, with no commitment or upfront payment required.
- 📍 Open a place on TikTok (tap the location pin under a video), copy the link, and paste it into **Location URLs** — one per line.
- ▶️ Set **Maximum posts**, click **Start**, and export the results to JSON, CSV, Excel, or use them through the API.

### Features

- **Verified place tags:** every post comes from TikTok's feed for the place you entered and carries that place's ID, so you get geo-tagged posts, not keyword matches.
- **Flexible input:** full place URLs, bare place IDs, and `vm.tiktok.com` / `vt.tiktok.com` share links to a place. Duplicate places are collected once.
- **Full pagination:** follows TikTok's feed page by page until it ends or your limit is reached.
- **Exact limits:** a total limit and an optional per-location limit, both honoured to the post.
- **No duplicates:** a post is never returned twice in a run.
- **Rich records:** engagement (with exact save counts), creator stats, sound, cover image, duration and place details in one flat row — ready for spreadsheets.
- **Clear outcomes:** every location you enter gets a status in the run summary; invalid links and unknown places are reported, never charged, and never hidden behind an empty "successful" run.
- **Three ready-made views:** Posts overview, Creators, and Content & music.

### Data fields

| Group | Fields |
|---|---|
| Post | `postId`, `postUrl`, `contentType` (`video` or `photo`), `description`, `hashtags`, `mentions`, `language`, `createdAt`, `createTimeUnix`, `isAd` |
| Engagement | `playCount`, `likeCount`, `commentCount`, `shareCount`, `saveCount` |
| Media | `durationSeconds`, `imageCount`, `videoWidth`, `videoHeight`, `videoDefinition`, `coverUrl` |
| Creator | `authorId`, `authorUsername`, `authorNickname`, `authorProfileUrl`, `authorVerified`, `authorPrivate`, `authorBio`, `authorAvatarUrl`, `authorFollowers`, `authorFollowing`, `authorTotalLikes`, `authorVideoCount` |
| Sound | `musicId`, `musicTitle`, `musicAuthor`, `musicOriginal`, `musicDurationSeconds`, `musicCoverUrl` |
| Place | `locationId`, `locationName`, `locationAddress` (includes the country), `locationCity`, `locationCategory` |
| Source | `sourceUrl`, `sourceLocationId`, `sourceLocationName`, `rankInLocation`, `scrapedAt` |

Fields TikTok does not provide for a post are `null` (for example `durationSeconds` on photo posts), never guessed.

### Input

| Field | Required | Description |
|---|---|---|
| **Location URLs** (`startUrls`) | Yes | One TikTok place per line: a place URL, a bare place ID or a share link to a place. |
| **Maximum posts (total)** (`maxItems`) | No | Stop after this many posts across all locations. Default 100. |
| **Maximum posts per location** (`maxItemsPerLocation`) | No | Cap for each location, so one busy place cannot use the whole total. Empty or 0 means no cap. |
| **Proxy** (`proxyConfiguration`) | No | Off by default. Turn on Apify Proxy only if TikTok starts refusing requests. |

Example input:

```json
{
  "startUrls": [
    "https://www.tiktok.com/place/New-York-22535796481546927",
    "https://www.tiktok.com/place/Singapore-22535796481329166"
  ],
  "maxItems": 200,
  "maxItemsPerLocation": 100
}
```

**How to find a place link:** on TikTok, tap the location pin shown under a video. The page that opens is the place page; copy its URL. The number at the end is the place ID.

### Output

One row per post. The run's key-value store also holds a **RUN_SUMMARY** record listing every location you entered with its outcome, the posts returned and TikTok's own video count for that place.

| Location status | Meaning |
|---|---|
| `COMPLETE` | TikTok's feed for the place ended; you have everything it served. |
| `LIMIT_REACHED` | Stopped at your total or per-location limit, or at your spending cap. |
| `NO_POSTS` | The place exists but its feed has no posts. |
| `INVALID_INPUT` | The entry is not a TikTok place link or ID. Not charged. |
| `NOT_FOUND` | TikTok has no place with this ID. Not charged. |
| `PARTIAL` | TikTok refused requests after some posts; the delivered posts are kept. |
| `FAILED` | TikTok refused every request for this place. Not charged. |

If nothing could be collected because of errors, the run ends as **failed** with an explanation instead of finishing "successfully" with an empty dataset.

#### Example record

A real record (shortened):

```json
{
  "postId": "7246239783096175874",
  "postUrl": "https://www.tiktok.com/@sha_nikita/video/7246239783096175874",
  "contentType": "video",
  "description": "Happy Fathers day 😍👶🏽👧🏽❤️ #tiktokvlog ",
  "hashtags": [
    "tiktokvlog"
  ],
  "createdAt": "2023-06-19T03:51:22Z",
  "playCount": 3400000,
  "likeCount": 583100,
  "commentCount": 1759,
  "shareCount": 13500,
  "saveCount": 25740,
  "durationSeconds": 15,
  "authorUsername": "sha_nikita",
  "authorNickname": "Sha_Nikita",
  "authorVerified": false,
  "authorFollowers": 79300,
  "musicTitle": "My Baby Daddy",
  "locationId": "22535796481329166",
  "locationName": "Singapore",
  "locationCategory": "Country",
  "sourceUrl": "https://www.tiktok.com/place/Singapore-22535796481329166",
  "sourceLocationName": "Singapore",
  "rankInLocation": 152,
  "scrapedAt": "2026-11-10T11:49:27Z"
}
```

### Pricing

| Event | Price | Per 1,000 |
|---|---|---|
| Post delivered | $0.00025 | $0.25 |

- You pay only for posts saved to your dataset. Invalid links, unknown places, duplicates and retries are never charged.
- There is no start fee and no per-location fee, and platform usage is included in the price.
- Example: 100 posts cost $0.025; 2,000 posts cost $0.50.
- Set **Maximum posts** for a predictable bill, or a maximum charge on your run for a hard ceiling. The Actor stops cleanly when either is reached.

### Examples

#### Single-place snapshot

The posts TikTok shows for one place, capped for a quick look:

```json
{ "startUrls": ["https://www.tiktok.com/place/New-York-22535796481546927"], "maxItems": 50 }
```

#### Multi-city comparison

The same number of posts from each city, so the comparison is fair:

```json
{
  "startUrls": [
    "https://www.tiktok.com/place/New-York-22535796481546927",
    "https://www.tiktok.com/place/Singapore-22535796481329166"
  ],
  "maxItems": 600,
  "maxItemsPerLocation": 300
}
```

### API & Integrations

Run the Actor from the Apify API, a schedule, or tools such as Make, Zapier and n8n. Use a webhook to send finished runs to Google Sheets, a database or a dashboard.

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("zapticx/tiktok-location-scraper").call(
    run_input={
        "startUrls": ["https://www.tiktok.com/place/New-York-22535796481546927"],
        "maxItems": 20,
    }
)
for post in client.dataset(run.default_dataset_id).iterate_items():
    print(post["postUrl"], post["playCount"], post["authorUsername"])
```

JavaScript:

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('zapticx/tiktok-location-scraper').call({
    startUrls: ['https://www.tiktok.com/place/New-York-22535796481546927'],
    maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/zapticx~tiktok-location-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://www.tiktok.com/place/New-York-22535796481546927"], "maxItems": 20}'
```

### Limitations

- **TikTok's place feed is a ranked selection, not the full archive.** TikTok shows each place's posts in its own order and stops after a limited number — usually a few thousand for big cities and fewer for small venues — even when it reports a much larger video count. The Actor collects everything the feed offers, up to your limit, and cannot go past what TikTok serves.
- **Not newest-first.** The order is TikTok's, kept in `rankInLocation`. For big, busy places the feed may contain few recent posts; sort by `createdAt` if you need the newest of what was returned.
- **No video download links.** TikTok's video file links work only inside the browser session that loaded them, so they would fail for you. Cover images, avatars and sound covers are included; these links are signed by TikTok and expire, so download them soon if you need them.
- **Counts are TikTok's public numbers.** TikTok rounds large values itself (for example 1.9M likes arrives as `1900000`); saves and comments are usually exact.
- **Results can differ slightly by region and over time**, because TikTok re-ranks feeds.
- **Place links only.** Search by place name is not supported in this version.
- **TikTok can change or restrict access at any time.** If requests start being refused, enable Apify Proxy in the input; refused requests are never charged.

### FAQ

**Do I need a TikTok account or cookies?** No. The Actor reads public place pages without logging in.

**Do I need a proxy?** Usually not. If TikTok starts refusing requests, turn on Apify Proxy in the input.

**How many posts can I get per place?** As many as TikTok's place feed serves — usually a few thousand for large cities and less for small venues. Small places often have only a handful.

**Why did a place return fewer posts than TikTok's video count?** TikTok's place feed shows a ranked selection, not every video ever tagged there. The run summary shows both numbers.

**How is a place different from a hashtag or a keyword search?** A place feed contains only posts the creator tagged with that location. A keyword search for "New York" returns posts that mention New York wherever they were made.

**What if I paste the same place twice?** It is collected once, and posts are never duplicated.

**Is it legal to scrape TikTok?** This Actor collects publicly visible data without logging in. TikTok's terms restrict automated access, and posts include personal data such as usernames and bios. You are responsible for how you use the data, including compliance with TikTok's terms and data-protection laws such as GDPR.

Built by **Zapticx** — AI automation and data solutions. [zapticx.com](https://zapticx.com)

### Search keywords

tiktok location scraper, tiktok place scraper, tiktok places videos, tiktok geotag scraper, tiktok posts by location, tiktok location api, tiktok poi videos, apify tiktok scraper, local tiktok creators, tiktok venue analytics, tiktok city videos, location-based tiktok data, tiktok influencer discovery by location, tiktok hashtags and sounds by place, tiktok engagement data

**Disclaimer**: This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by **TikTok** or **ByteDance Ltd**.

# Actor input Schema

## `startUrls` (type: `array`):

One TikTok place per line, for example https://www.tiktok.com/place/New-York-22535796481546927. Bare place IDs (22535796481546927) and vm.tiktok.com / vt.tiktok.com share links to a place also work. Duplicate places are collected once.

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

Stop after this many posts across all locations. You pay per post returned. TikTok's place feed itself usually ends after a few thousand posts per location.

## `maxItemsPerLocation` (type: `integer`):

Optional cap for each location, so one busy place cannot use the whole total. 0 or empty means no per-location cap.

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

Usually not needed. Turn on Apify Proxy only if TikTok starts refusing requests.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.tiktok.com/place/New-York-22535796481546927"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `summary` (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 = {
    "startUrls": [
        "https://www.tiktok.com/place/New-York-22535796481546927"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("zapticx/tiktok-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 = {
    "startUrls": ["https://www.tiktok.com/place/New-York-22535796481546927"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("zapticx/tiktok-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 '{
  "startUrls": [
    "https://www.tiktok.com/place/New-York-22535796481546927"
  ],
  "maxItems": 20
}' |
apify call zapticx/tiktok-location-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zapticx/tiktok-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/rKyMPNbcRbNMJh4L8/builds/XGHTdaxbS2mtrKWgw/openapi.json
