Skip to main content
Glama
jlucasmcrell

Apify Public Data & Leads

Google Maps Local Business and B2B Lead Extractor

google_maps_search
Read-only

Extract verified business addresses, phone numbers, ratings, and websites from Google Maps to build local commercial lead lists.

Instructions

Extract verified commercial business listings, postal addresses, phone numbers, customer review ratings, and canonical websites from Google Maps.

Behavioral Transparency:

  • Execution: Network call executed synchronously in the cloud via Apify Actor 'captainhandsome/google-maps-business-search'.

  • Side Effects: Reads public sources and creates a billed Actor run and dataset on your Apify account.

  • Authentication: Requires APIFY_TOKEN environment variable.

  • Latency & Limits: Typical run duration is 15-45 seconds; timeout capped at 120 seconds.

Usage Guidelines:

  • When to use: Use when the user requests local commercial directories, trade contractors, physical retail storefronts, or B2B regional sales leads.

  • When NOT to use: Do not use for employment job listings, corporate regulatory filings, federal procurement awards, or short-term vacation rentals.

  • Named alternatives: Use 'glassdoor_jobs_search' for employer vacancies, 'sec_edgar_filings' for corporate SEC disclosures, 'usaspending_contracts' for government awards, or 'airbnb_listings_search' for vacation rentals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationNoOptional city or region. Omit if already included in search_query.
max_resultsNoMaximum count of business lead records to extract and return. Defaults to 10.
search_queryYesGeographic search query combining target trade category and municipal market location (e.g. 'HVAC contractors in Phoenix, AZ' or 'Commercial Electricians Dallas TX').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
runNo
errorNo
statusYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed49 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / location
      Added value: +{
      +  "default": "",
      +  "description": "Optional city or region. Omit if already included in search_query.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "object"
      +}
    • removedOutput schema / properties / results / description
      Removed value: -"Collection of verified commercial business entity records extracted from Google Maps."
    • changedOutput schema / properties / results / items / properties / address / description
      Previous value: -"Full formatted postal street address including city, state, and ZIP."New value: +"Public postal address displayed on Google Maps."
    • addedOutput schema / properties / results / items / properties / address / title
      Added value: +"Street address"
    • changedOutput schema / properties / results / items / properties / address / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / results / items / properties / booking_url
      Added value: +{
      +  "description": "Appointment, reservation or online-ordering link on the business profile.",
      +  "title": "Booking or ordering URL",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / category
      Added value: +{
      +  "description": "Primary category displayed for the business.",
      +  "title": "Business category",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / results / items / properties / categoryName
      Removed value: -{
      -  "description": "Primary industry classification or business trade category.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / results / items / properties / city
      Added value: +{
      +  "description": "City parsed from the postal address.",
      +  "title": "City",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / description
      Added value: +{
      +  "description": "Google's editorial summary of the business, when one is published.",
      +  "title": "Business description",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / image_url
      Added value: +{
      +  "description": "Primary Google Maps photo for the business.",
      +  "title": "Profile photo URL",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / latitude
      Added value: +{
      +  "description": "WGS84 latitude parsed from the Google Maps URL.",
      +  "title": "Latitude",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / located_in
      Added value: +{
      +  "description": "Building, mall or floor the business sits inside.",
      +  "title": "Located in",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / longitude
      Added value: +{
      +  "description": "WGS84 longitude parsed from the Google Maps URL.",
      +  "title": "Longitude",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / name
      Added value: +{
      +  "description": "Public business name displayed on Google Maps.",
      +  "title": "Business name",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / open_state
      Added value: +{
      +  "description": "Open or closed status line shown for the business right now.",
      +  "title": "Current open state",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / opening_hours
      Added value: +{
      +  "description": "Opening hours for all seven days, joined with semicolons.",
      +  "title": "Weekly opening hours",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / opening_hours_today
      Added value: +{
      +  "description": "Opening-hours text displayed for the current day.",
      +  "title": "Today's opening hours",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / results / items / properties / phone / description
      Previous value: -"Primary commercial telephone number with regional area code."New value: +"Public telephone number in Google Maps display format."
    • addedOutput schema / properties / results / items / properties / phone / title
      Added value: +"Formatted phone number"
    • changedOutput schema / properties / results / items / properties / phone / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / results / items / properties / phone_unformatted
      Added value: +{
      +  "description": "Telephone number with display punctuation removed when available.",
      +  "title": "Dialable phone number",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / place_id
      Added value: +{
      +  "description": "Google Maps place identifier when exposed in the place URL.",
      +  "title": "Google place identifier",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / place_url
      Added value: +{
      +  "description": "Canonical Google Maps URL for the business place page.",
      +  "title": "Google Maps place URL",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / plus_code
      Added value: +{
      +  "description": "Google Maps Plus Code for the location when available.",
      +  "title": "Plus Code",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / postal_code
      Added value: +{
      +  "description": "ZIP or postal code parsed from the postal address.",
      +  "title": "Postal code",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / rating
      Added value: +{
      +  "description": "Google Maps average rating on a zero-to-five scale.",
      +  "title": "Average rating",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / results / items / properties / reviewsCount
      Removed value: -{
      -  "description": "Total count of public Google reviews submitted by customers.",
      -  "type": "integer"
      -}
    • addedOutput schema / properties / results / items / properties / reviews_1_star
      Added value: +{
      +  "description": "Number of one-star reviews in the Google rating histogram.",
      +  "title": "One-star reviews",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / reviews_2_star
      Added value: +{
      +  "description": "Number of two-star reviews in the Google rating histogram.",
      +  "title": "Two-star reviews",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / reviews_3_star
      Added value: +{
      +  "description": "Number of three-star reviews in the Google rating histogram.",
      +  "title": "Three-star reviews",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / reviews_4_star
      Added value: +{
      +  "description": "Number of four-star reviews in the Google rating histogram.",
      +  "title": "Four-star reviews",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / reviews_5_star
      Added value: +{
      +  "description": "Number of five-star reviews in the Google rating histogram.",
      +  "title": "Five-star reviews",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / reviews_count
      Added value: +{
      +  "description": "Number of Google Maps reviews displayed for the business.",
      +  "title": "Review count",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / search_url
      Added value: +{
      +  "description": "Google Maps search URL that produced this record.",
      +  "title": "Source search URL",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / state
      Added value: +{
      +  "description": "Two-letter US state code parsed from the postal address.",
      +  "title": "State or region code",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / street
      Added value: +{
      +  "description": "Street line of the postal address, split out of the full address.",
      +  "title": "Street address",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / results / items / properties / title
      Removed value: -{
      -  "description": "Trading name or legal corporate title of the business.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / results / items / properties / totalScore
      Removed value: -{
      -  "description": "Aggregate customer review rating on a 1.0 to 5.0 scale.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / results / items / properties / url
      Removed value: -{
      -  "description": "Direct canonical Google Maps place URL.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / results / items / properties / website / description
      Previous value: -"Canonical HTTP/HTTPS business website or landing page."New value: +"Public website linked from the Google Maps business profile."
    • addedOutput schema / properties / results / items / properties / website / title
      Added value: +"Business website"
    • changedOutput schema / properties / results / items / properties / website / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / results / items / required
      Removed value: -[
      -  "title",
      -  "address"
      -]
    • addedOutput schema / properties / run
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "success",
      +    "empty_unverified",
      +    "partial",
      +    "error"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results"
      -]New value: +[
      +  "results",
      +  "status"
      +]
  2. Changed6 schema fields changedv1.0.6
    • changedInput schema / properties / max_results / description
      Previous value: -"Number of leads to retrieve (1-100)"New value: +"Maximum count of business lead records to extract and return. Defaults to 10."
    • addedInput schema / properties / max_results / maximum
      Added value: +100
    • addedInput schema / properties / max_results / minimum
      Added value: +1
    • changedInput schema / properties / search_query / description
      Previous value: -"e.g. 'HVAC contractors in Phoenix, AZ'"New value: +"Geographic search query combining target trade category and municipal market location (e.g. 'HVAC contractors in Phoenix, AZ' or 'Commercial Electricians Dallas TX')."
    • addedInput schema / properties / search_query / minLength
      Added value: +3
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Collection of verified commercial business entity records extracted from Google Maps.",
      +      "items": {
      +        "properties": {
      +          "address": {
      +            "description": "Full formatted postal street address including city, state, and ZIP.",
      +            "type": "string"
      +          },
      +          "categoryName": {
      +            "description": "Primary industry classification or business trade category.",
      +            "type": "string"
      +          },
      +          "phone": {
      +            "description": "Primary commercial telephone number with regional area code.",
      +            "type": "string"
      +          },
      +          "reviewsCount": {
      +            "description": "Total count of public Google reviews submitted by customers.",
      +            "type": "integer"
      +          },
      +          "title": {
      +            "description": "Trading name or legal corporate title of the business.",
      +            "type": "string"
      +          },
      +          "totalScore": {
      +            "description": "Aggregate customer review rating on a 1.0 to 5.0 scale.",
      +            "type": "number"
      +          },
      +          "url": {
      +            "description": "Direct canonical Google Maps place URL.",
      +            "type": "string"
      +          },
      +          "website": {
      +            "description": "Canonical HTTP/HTTPS business website or landing page.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "address"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond the annotations: it discloses that execution is a synchronous cloud network call via a specific Apify Actor, that it creates a billed Actor run and dataset on the user's Apify account, that APIFY_TOKEN is required, and that latency is typically 15-45 seconds with a 120-second timeout. This is rich behavioral context that annotations alone do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear labeled sections (Behavioral Transparency, Usage Guidelines) and front-loads the core purpose. It is longer than the minimum, but every section earns its place by providing operational and routing details. The only minor deduction is that the 'When NOT to use' list could be slightly tighter, but it is not bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters, 100% schema coverage, an output schema, and annotations declaring readOnly/openWorld/destructive hints, the description is complete. It covers purpose, usage boundaries, side effects, auth, latency, and alternatives. There is no meaningful gap an agent would need to fill by guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining the search_query format with concrete examples ('HVAC contractors in Phoenix, AZ') and clarifying the relationship between location and search_query ('Omit if already included in search_query'). It doesn't add much beyond the schema, but the examples and the dedup guidance justify a 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb ('Extract') and enumerates the exact resource types: verified commercial business listings, postal addresses, phone numbers, review ratings, and canonical websites from Google Maps. It clearly distinguishes this tool from the sibling list by naming the domain (local business/B2B leads) and even names alternatives for adjacent domains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description has an explicit 'When to use' and 'When NOT to use' section, and it names four sibling tools as alternatives for excluded use cases (glassdoor_jobs_search, sec_edgar_filings, usaspending_contracts, airbnb_listings_search). This is exactly the kind of routing guidance an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.