Sourcelane

TikTok Location Scraper

TikTok

Operated by Sourcelane✓ verified

Scrape TikTok videos tagged at any place: search by name or paste place URLs. Get views, likes, captions, authors, music plus address, category and GPS.

Read full description

A scraper that finds TikTok videos tagged at a specified place (landmarks, restaurants, hotels, shops, parks, whole cities) by searching place names or using TikTok place URLs, and returns structured records for each video containing video metadata (caption, hashtags, created timestamp, duration, cover image, language, slideshow flag), engagement metrics (views, likes, comments, shares, saves), creator profile data (username, display name, verification, follower count, total likes), music information (sound ID/title/artist/original sound flag), and place metadata (place name, address, city, country, category/subcategory, GPS coordinates and total video count). Supports a mode to return matching places without videos, configurable limits for how many places to consider per query and how many videos to collect per place, and operates without requiring a TikTok login. Video ordering follows TikTok’s place page ordering (mostly by popularity).

Verified Oct 25, 10:11 PM

$0.00025

per video

Up to 100 per call. Only pay for results returned; failed calls are refunded.

What people use it for

You give it

  • Place search queries

    Place names to look up on TikTok, one per line, e.g.

  • TikTok place URLs or IDs

    TikTok place pages or bare place IDs, one per line.

Optional settings

Places per queryMax videos per placeSearch places only (no videos)Add GPS and video count for place URLs

You get back

Text & content
CaptionHashtagsLanguageMusic title
People & accounts
Place nameAuthor usernameAuthor nicknameAuthor IDAuthor verifiedMusic author
Numbers & stats
ViewsLikesDuration secondsAuthor followersAuthor total likes
Location
Place addressPlace cityPlace countryPlace latitudePlace longitude
Dates
Created at
Links & media
Place URLPlace total videosVideo IDVideo URLCover URLAuthor URL
Other details
TypePlace IDPlace categoryPlace subcategoryCreate timestampCommentsSharesSaves+3 more

Trust & reliability

7d uptime trend
WindowUptimeSuccess ratep50p95Calls
24h————0
7d————0
30d————0

Calling contract

Call it through Sourcelane's gateway or MCP server. We run the connector, apply your agent's spend guardrails, and bill only the results returned.

Call it via Sourcelane

curl -X POST https://api.usesourcelane.com/v1/call \
  -H "Authorization: Bearer sl_live_your_agent_key" \
  -H "Content-Type: application/json" \
  -d '{"listing":"tiktok-location-scraper","params":{"queries":["Eiffel Tower"]},"maxResults":10}'

Request params

FieldTypeRequiredDescription
queriesarrayoptionalPlace names to look up on TikTok, one per line, e.g. "Eiffel Tower" or "Joe's Pizza New York". Adding the city helps pick the right branch of a chain.
placeUrlsarrayoptionalTikTok place pages (https://www.tiktok.com/place/Name-1234567890) or bare place IDs, one per line. Use this when you already know the exact place.
placesPerQueryintegeroptionalHow many matching places to take for each search query, best match first (1-20). Use more than 1 for chains or common names, e.g. every "Central Park".
maxVideosPerPlaceintegeroptionalMaximum number of videos to collect for each place. Set 0 to collect every video TikTok shows for the place.
searchPlacesOnlybooleanoptionalOnly return the matching places (name, address, category, GPS coordinates, total video count) without scraping their videos. Handy for finding place IDs or building a list of locations.
addPlaceCoordinatesbooleanoptionalFor places given as URLs or IDs, run one extra place lookup to add latitude, longitude and the place's total TikTok video count. Places found through a search query always include them.

Each result contains

FieldTypeDescription
typestringType
inputstring—
placeIdstring—
placeNamestringPlace
placeUrlstringPlace URL
placeAddressstringAddress
placeCitystringCity
placeCountrystring—
placeCategorystringCategory
placeSubcategorystring—
placeLatitudenumberLatitude
placeLongitudenumberLongitude
placeTotalVideosintegerPlace videos
videoIdstring—
videoUrlstringVideo
captionstringCaption
hashtagsarray—
createdAtstringPosted
createTimestampinteger—
viewsintegerViews
likesintegerLikes
commentsintegerComments
sharesintegerShares
savesinteger—
durationSecondsinteger—
isSlideshowboolean—
languagestring—
coverUrlstringCover
authorUsernamestringAuthor
authorNicknamestring—
authorIdstring—
authorVerifiedboolean—
authorFollowersintegerAuthor followers
authorTotalLikesinteger—
authorUrlstring—
musicIdstring—
musicTitlestringMusic
musicAuthorstring—
musicIsOriginalboolean—
scrapedAtstring—

Use TikTok Location Scraper from Claude, ChatGPT or Cursor

Pick your tool and connect in under a minute. Then just ask — for example: “What are the top 25 TikTok videos for 'protein coffee' this week, and what hooks do they use?”

Connect Claude

Web, desktop and mobile. One click, then confirm.

  1. 1Click Add to Claude — claude.ai opens with Sourcelane filled in
  2. 2Click Continue to confirm — it then works in Claude desktop and mobile too
Manual setup (config files, REST, Python) +

Claude Code

Adds the Sourcelane MCP server with your key as a header.

terminal
claude mcp add --transport http sourcelane https://api.usesourcelane.com/mcp \
  --header "Authorization: Bearer sl_live_your_agent_key"

Claude Desktop (config file)

Alternative to the connector URL: add to claude_desktop_config.json, then restart Claude.

claude_desktop_config.json
{
  "mcpServers": {
    "sourcelane": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.usesourcelane.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer sl_live_your_agent_key"
      }
    }
  }
}

Cursor & Windsurf

Add to ~/.cursor/mcp.json (or Windsurf's mcp_config.json).

mcp.json
{
  "mcpServers": {
    "sourcelane": {
      "url": "https://api.usesourcelane.com/mcp",
      "headers": {
        "Authorization": "Bearer sl_live_your_agent_key"
      }
    }
  }
}

VS Code

Save as .vscode/mcp.json. VS Code prompts for your key once.

.vscode/mcp.json
{
  "servers": {
    "sourcelane": {
      "type": "http",
      "url": "https://api.usesourcelane.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:sourcelane-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "sourcelane-key",
      "description": "Sourcelane agent key",
      "password": true
    }
  ]
}

ChatGPT Custom GPT (Actions)

Create a GPT → Actions → Import from URL, then Authentication: API Key, Bearer.

OpenAPI schema URL
https://usesourcelane.com/openapi.json

REST

One POST. Pass maxResults to cap cost.

curl
curl -X POST https://api.usesourcelane.com/v1/call \
  -H "Authorization: Bearer sl_live_your_agent_key" \
  -H "Content-Type: application/json" \
  -d '{"listing":"tiktok-location-scraper","params":{"queries":["Eiffel Tower"]},"maxResults":10}'

Python, LangChain, CrewAI, OpenAI Agents SDK…

Wrap the REST call as a tool, or point an MCP client at the endpoint.

python
import requests

res = requests.post(
    "https://api.usesourcelane.com/v1/call",
    headers={"Authorization": "Bearer sl_live_your_agent_key"},
    json={
        "listing": "tiktok-location-scraper",
        "params": {"queries":["Eiffel Tower"]},
        "maxResults": 10,
    },
    timeout=300,
)
body = res.json()
print(body["receipt"]["chargedMicros"], "micro-USD for", body["receipt"]["results"], "results")
print(body["data"])

Reviews

—

0 reviews

5
0
4
0
3
0
2
0
1
0

Leave a review

Loading reviews…

Related TikTok connectors

See all TikTok data connectors →