← 返回 Skills 市场
hundevmode

Google Maps Extractor Apify

作者 hundevmode · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-maps-extractor-apify
功能描述
Use this skill when the user needs Google Maps place and business data through an Apify actor, including Google Places data, local business listings, address...
使用说明 (SKILL.md)

Google Maps Extractor Apify Skill

Overview

This skill helps an AI agent run the Apify Google Maps Extractor actor for Google Maps place data, local business listings, and optional public website contact enrichment.

Default actor:

  • Actor ID: 2A4RTA5PjN7McqJXx
  • Actor name: x_guru/google-maps-extractor
  • Store page: https://apify.com/x_guru/google-maps-extractor
  • Console source: https://console.apify.com/actors/2A4RTA5PjN7McqJXx/source

Use this skill when a user asks to:

  • collect Google Maps places by search term and location
  • scrape Google Maps search URLs or direct place URLs
  • enrich known Google Place IDs
  • build local business lead lists with websites, phones, addresses, ratings, coordinates, Place IDs, and CIDs
  • extract public business website contacts such as emails, extra phone numbers, and social links
  • create Google Maps datasets for local SEO, competitor research, store locator data, CRM enrichment, Sheets, n8n, Airtable, or API workflows

Quick Workflow

  1. Clarify the business type, location, desired count, and whether add-ons are needed.
  2. Build the smallest useful payload first.
  3. Use searchStringsArray, locationQuery, maxCrawledPlacesPerSearch, and language for normal search.
  4. Use startUrls or placeIds for exact known sources.
  5. Enable paid add-ons only when needed: filters, place details, or website contacts.
  6. Set a budget guard with Apify maxTotalChargeUsd when spend matters.
  7. Run scripts/google_maps_extractor_actor.py or call the Apify API directly.
  8. Return compact summary metrics and dataset rows. Check RUN_SUMMARY for diagnostics.

Payload Rules

  • Standard discovery uses searchStringsArray, locationQuery, and maxCrawledPlacesPerSearch.
  • Exact Google Maps URLs use startUrls as objects: [{"url": "https://www.google.com/maps/..."}].
  • Exact Google Place IDs use placeIds.
  • Direct URLs and Place IDs can run without locationQuery.
  • Structured search area uses countryCode, city, state, county, postalCode, customGeolocation, and strictLocationBounds.
  • locationQuery has priority when it is present and specific.
  • Broad visible-map collection uses allPlacesNoSearchAction="all_visible" and optional allPlacesZoom; use it only for concrete local areas.
  • Paid filters include categoryFilterWords, placeCategories, searchMatching, placeMinimumStars, website, and skipClosedPlaces.
  • Use scrapeContacts only when the user needs public website emails, phones, or social links.
  • Use scrapePlaceDetailPage when the user needs richer opening hours, menu links, plus code, popular times, inside places, web results, or detailed place metadata.
  • Place details can be extended with scrapeTableReservationProvider, scrapeOrderOnline, includeWebResults, and scrapeDirectories.
  • Keep initial tests small: 10-50 places before scaling.

Authentication

Use the Apify API token from the environment:

export APIFY_TOKEN='apify_api_xxx'

Never hardcode or print the full token in user-facing output.

Script Usage

The bundled script uses only Python standard library.

Run a quick search:

APIFY_TOKEN='apify_api_xxx' \
python3 scripts/google_maps_extractor_actor.py quick-search \
  --query "bike repair shop" \
  --location "Portland, Oregon, USA" \
  --limit 25 \
  --budget-usd 1

Run with public website contact enrichment:

APIFY_TOKEN='apify_api_xxx' \
python3 scripts/google_maps_extractor_actor.py quick-search \
  --query "roofing contractor" \
  --location "Denver, Colorado, USA" \
  --limit 50 \
  --with-contacts \
  --only-with-website \
  --budget-usd 2

Run by Google Maps URL:

APIFY_TOKEN='apify_api_xxx' \
python3 scripts/google_maps_extractor_actor.py quick-url \
  --url "https://www.google.com/maps/search/restaurants+near+New+York,+NY" \
  --limit 50 \
  --budget-usd 1

Run by Place ID:

APIFY_TOKEN='apify_api_xxx' \
python3 scripts/google_maps_extractor_actor.py quick-place-id \
  --place-id "ChIJN1t_tDeuEmsRUsoyG83frY4" \
  --details \
  --budget-usd 1

Run custom JSON:

APIFY_TOKEN='apify_api_xxx' \
python3 scripts/google_maps_extractor_actor.py run \
  --input-file references/sample_input.json \
  --budget-usd 1

Recommended Inputs

Local business discovery

{
  "searchStringsArray": ["bike repair shop"],
  "locationQuery": "Portland, Oregon, USA",
  "maxCrawledPlacesPerSearch": 100,
  "language": "en"
}

Contact lead generation

{
  "searchStringsArray": ["roofing contractor"],
  "locationQuery": "Denver, Colorado, USA",
  "maxCrawledPlacesPerSearch": 50,
  "website": "withWebsite",
  "scrapeContacts": true
}

Exact URLs

{
  "startUrls": [
    {
      "url": "https://www.google.com/maps/search/restaurants+near+New+York,+NY"
    }
  ],
  "maxCrawledPlacesPerSearch": 100,
  "language": "en"
}

Place IDs

{
  "placeIds": ["ChIJN1t_tDeuEmsRUsoyG83frY4"],
  "maxCrawledPlacesPerSearch": 1,
  "scrapePlaceDetailPage": true
}

Output Contract

The runner returns JSON:

  • ok
  • actorId
  • fetchedAt
  • inputUsed
  • itemCount
  • rows[]

Rows are actor dataset items. Important groups:

  • Identity: title, subTitle, description, price, categoryName, categories, rank, isAdvertisement
  • Address: address, street, city, state, postalCode, countryCode, location, plusCode
  • Contacts: website, phone, phoneUnformatted, emails, additionalPhones, social profile arrays
  • Ratings: totalScore, reviewsCount, reviewsDistribution, reviewsTags
  • Details: openingHours, popularTimesHistogram, menu, servicesLink, reserveTableUrl, googleFoodUrl, peopleAlsoSearch, placesTags
  • Google IDs: placeId, fid, cid, kgmid, url, searchPageUrl, searchPageLoadedUrl
  • Runtime: searchString, language, scrapedAt

For the full contract, read references/input-output-contract.md.

Agent Response Rules

  • If rows are empty, say the run succeeded but no matching places were saved, then suggest checking RUN_SUMMARY.
  • If contact fields are empty, first check whether scrapeContacts was enabled.
  • If detail fields are missing, first check whether scrapePlaceDetailPage was enabled.
  • Explain missing fields as normal best-effort behavior when Google Maps or the business website does not expose data.
  • Use maxTotalChargeUsd for any user concerned about spend.
  • Do not promise review rows or large image lists from this extractor. Use the separate Google Maps Reviews Scraper for review datasets.

References

  • references/input-output-contract.md
  • references/sample_input.json
  • references/troubleshooting.md
安全使用建议
Install this only if you are comfortable sending Google Maps search inputs and URLs to Apify using your APIFY_TOKEN. Use budget limits, keep runs scoped, collect only fields needed, and make sure any contact enrichment complies with privacy, anti-spam, and data protection rules that apply to your use case.
能力标签
crypto
能力评估
Purpose & Capability
The purpose is coherent: build and run Google Maps extraction payloads through Apify, including optional public business contact enrichment. Contact collection has privacy and acceptable-use implications but is clearly part of the stated purpose.
Instruction Scope
Runtime instructions are scoped to user-requested searches, URLs, or Place IDs, with guidance to clarify inputs, keep initial runs small, and enable paid add-ons only when needed.
Install Mechanism
The package declares Python 3 and APIFY_TOKEN, has no third-party runtime dependencies, and does not show install-time execution or hidden setup behavior.
Credentials
Network use and APIFY_TOKEN authentication are expected for running the Apify actor; search terms, locations, URLs, Place IDs, and optional contact-enrichment requests are sent to Apify.
Persistence & Privilege
No background service, persistence, privilege escalation, local credential harvesting, broad local indexing, or destructive file operations were found. The token is read from an argument or environment variable and is not intentionally printed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-maps-extractor-apify
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-maps-extractor-apify 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug google-maps-extractor-apify
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Google Maps Extractor Apify 是什么?

Use this skill when the user needs Google Maps place and business data through an Apify actor, including Google Places data, local business listings, address... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。

如何安装 Google Maps Extractor Apify?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-maps-extractor-apify」即可一键安装,无需额外配置。

Google Maps Extractor Apify 是免费的吗?

是的,Google Maps Extractor Apify 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Google Maps Extractor Apify 支持哪些平台?

Google Maps Extractor Apify 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Google Maps Extractor Apify?

由 hundevmode(@hundevmode)开发并维护,当前版本 v1.0.0。

💬 留言讨论