Facebook Location UID avatar

Facebook Location UID

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Facebook Location UID

Facebook Location UID

Easily find and extract Facebook location UIDs, city IDs, and timezones by searching location names (cities, countries, or regions). Perfect for building location-targeted Facebook workflows, setting up scrapers, and geotargeting campaigns.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Sachin Kumar Yadav

Sachin Kumar Yadav

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Share

πŸ“ Facebook Location UID Finder

What does this actor do?

This Apify actor searches Facebook locations by name and returns their UIDs, city IDs, and timezone information.

These location UIDs can be used to filter posts by location in the Facebook Global Search actor.

✨ Features

  • πŸ” Search Facebook locations by city, country, or place name
  • πŸ“‹ Get unique location UIDs for use with other Facebook tools
  • 🌐 Returns timezone and city ID for each location
  • ⚑ Fast, single-request lookup β€” no pagination needed

πŸ“₯ Input

FieldTypeRequiredDescription
queryStringβœ…Location name to search for (e.g., "Tokyo, Japan", "New York", "London, UK")

Example Input

{
"query": "Tokyo, Japan"
}

πŸ“€ Output

Each result contains:

FieldTypeDescription
sourceStringAlways facebook_location_search
search_queryStringThe query you searched for
positionNumberPosition in the results list
labelStringFull location name (e.g., "Minato, Tokyo")
uidStringFacebook location UID β€” use this in Global Search
city_idNumberFacebook city identifier
timezoneStringTimezone of the location (e.g., "Asia/Tokyo")
scraped_atStringISO timestamp of when the data was scraped

Example Output

{
"source": "facebook_location_search",
"search_query": "Tokyo, Japan",
"position": 1,
"label": "Chuo (Chuo-ku, Tokyo, Japan)",
"uid": "164287213617515",
"city_id": 2686152,
"timezone": "Asia/Tokyo",
"scraped_at": "2026-07-04T01:50:00.000Z"
}
  1. Run this actor with your desired location (e.g., "Tokyo, Japan")
  2. Copy the uid from the result (e.g., "164287213617515")
  3. Use that UID as the locationUid input in the Facebook Global Search actor

⚠️ Notes

  • The API returns up to ~10 matching locations per query
  • More specific queries (e.g., "Minato, Tokyo") return more precise results
  • UIDs are stable Facebook identifiers that can be reused across searches

Tags

facebook location uid, facebook scraper, facebook search location, location uid, city id, timezone, facebook location search, apify actor


Get Started Now

  1. Enter the Search Query (e.g., Tokyo, Japan)
  2. Click Start to run the scraper
  3. Export your data in JSON, CSV, or Excel format
  4. Click "Try for free" to test the actor

Built using Apify Platform | Optimized for Performance & Reliability