{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Business Profile Leads – Unclaimed & Weak GBP Finder",
    "description": "Find local SEO leads on Google Maps: businesses whose Google Business Profile needs work – unclaimed, no website, low rating, few or no reviews, no hours, few photos, unanswered reviews, no recent posts, no description. Gap score, claim link, phone. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "ZFbY7fL7fhSJTc8Zh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~google-business-profile-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-google-business-profile-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/steadyscrape~google-business-profile-leads/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-google-business-profile-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/steadyscrape~google-business-profile-leads/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-google-business-profile-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "searchTerms",
          "locations"
        ],
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 20,
            "type": "array",
            "description": "The kind of business, as you would type it into Google Maps, one per line: <code>plumber</code>, <code>dentist</code>, <code>roofing contractor</code>, <code>hair salon</code>. Each term is searched in every location. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "maxItems": 20,
            "type": "array",
            "description": "Where to look, one per line: a city, area, postcode or address as you would type it into Google Maps (<code>Austin, TX</code>, <code>Shoreditch, London</code>, <code>78701</code>), or <code>latitude, longitude</code>. Up to 20. A business found by two searches is delivered and charged once.",
            "items": {
              "type": "string"
            }
          },
          "radius": {
            "title": "Radius",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "How far from each location's centre to look (0.5 to 50, in the unit below). Businesses outside it are left out, never charged. The radius is covered with a grid of searches, so it reaches past the ~120–240 results one Google Maps search shows.",
            "default": 10
          },
          "distanceUnit": {
            "title": "Unit",
            "enum": [
              "km",
              "mi"
            ],
            "type": "string",
            "description": "The unit of the radius and of each lead's <code>distance</code> from the location's centre.",
            "default": "km"
          },
          "maxLeadsPerSearch": {
            "title": "Max leads per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search term in each location after this many leads (1 to 5,000). The run's spending limit is respected too: nothing is read once it cannot pay for another lead.",
            "default": 100
          },
          "auditProfiles": {
            "title": "Audit each profile (photos, reviews, owner replies, posts, description)",
            "type": "boolean",
            "description": "Read each business's Google Maps place page and its latest post: the photo count, its newest reviews (up to 8) with their dates and owner replies, the date of its latest post and its description. Needed by the five checks marked <i>audit</i>. A lead read this way is an <code>audited-lead</code> (US$0.005); off, leads are judged on the search answer alone and are a <code>lead</code> (US$0.003).",
            "default": true
          },
          "checkUnclaimed": {
            "title": "Unclaimed profile",
            "type": "boolean",
            "description": "Google offers \"Claim this business\" on the profile: no owner has verified it. The claim link is delivered (never followed). Weight 30.",
            "default": true
          },
          "checkNoWebsite": {
            "title": "No website",
            "type": "boolean",
            "description": "The profile links no website, or only a social profile or a directory page (Facebook, Instagram, Yelp…). Weight 20.",
            "default": true
          },
          "checkNoReviews": {
            "title": "No reviews",
            "type": "boolean",
            "description": "Nobody has reviewed the business on Google. Weight 25.",
            "default": true
          },
          "checkFewReviews": {
            "title": "Few reviews",
            "type": "boolean",
            "description": "Fewer reviews than the limit below (10 by default). Weight 15.",
            "default": true
          },
          "checkLowRating": {
            "title": "Low rating",
            "type": "boolean",
            "description": "A rating below the limit below (4.0 by default). Weight 20.",
            "default": true
          },
          "checkNoHours": {
            "title": "No opening hours",
            "type": "boolean",
            "description": "The profile lists no opening hours. Weight 10.",
            "default": true
          },
          "checkNoPhone": {
            "title": "No phone number",
            "type": "boolean",
            "description": "The profile shows no phone number. Weight 10.",
            "default": true
          },
          "checkSingleCategory": {
            "title": "A single category",
            "type": "boolean",
            "description": "Only one category on the profile (Google's catch-all \"Service establishment\" is not counted): secondary categories let it show in more searches. Weight 5.",
            "default": true
          },
          "checkFewPhotos": {
            "title": "Few photos (audit)",
            "type": "boolean",
            "description": "Fewer photos than the limit below (10 by default). Weight 10.",
            "default": true
          },
          "checkStaleReviews": {
            "title": "No recent review (audit)",
            "type": "boolean",
            "description": "Its newest review is older than the limit below (90 days by default). Weight 10.",
            "default": true
          },
          "checkUnansweredReviews": {
            "title": "Unanswered reviews (audit)",
            "type": "boolean",
            "description": "The owner replied to fewer than half of its newest reviews (up to 8). Weight 15.",
            "default": true
          },
          "checkNoRecentPost": {
            "title": "No recent post (audit)",
            "type": "boolean",
            "description": "No post on the profile, or the latest one is older than the limit below (90 days by default). Weight 10.",
            "default": true
          },
          "checkNoDescription": {
            "title": "No description (audit)",
            "type": "boolean",
            "description": "No \"From the business\" description. Weight 10.",
            "default": true
          },
          "fewReviewsBelow": {
            "title": "Few reviews: fewer than",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "A profile with at least one review and fewer than this many fails \"Few reviews\".",
            "default": 10
          },
          "lowRatingBelow": {
            "title": "Low rating: below",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "A rating below this fails \"Low rating\" (1 to 5).",
            "default": 4
          },
          "fewPhotosBelow": {
            "title": "Few photos: fewer than",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Fewer photos than this fails \"Few photos\".",
            "default": 10
          },
          "staleReviewDays": {
            "title": "No recent review: older than (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "A newest review older than this many days fails \"No recent review\".",
            "default": 90
          },
          "stalePostDays": {
            "title": "No recent post: older than (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "A latest post older than this many days fails \"No recent post\".",
            "default": 90
          },
          "minGapScore": {
            "title": "Minimum gap score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "A business is a lead only when the weights of the checks it fails add up to this (0 to 100; the score is capped at 100). 20 by default: one strong gap (unclaimed, no reviews, no website, low rating) or two smaller ones. 0 delivers any business failing any check on.",
            "default": 20
          },
          "categoryFilter": {
            "title": "Categories to keep",
            "type": "array",
            "description": "Only businesses with a Google category containing one of these words (case ignored), e.g. <code>plumber</code>. Empty: any category. Filtered businesses are never read nor charged.",
            "items": {
              "type": "string"
            }
          },
          "includeClosed": {
            "title": "Include closed businesses",
            "type": "boolean",
            "description": "Businesses Google Maps marks closed are left out unless this is on.",
            "default": false
          },
          "onlyNewLeads": {
            "title": "Only new leads",
            "type": "boolean",
            "description": "Skip businesses earlier runs of yours already delivered (remembered in a key-value store named <code>steadyscrape-google-business-profile-leads-state</code> in your account, created only when this is on). For schedules.",
            "default": false
          },
          "language": {
            "title": "Language",
            "pattern": "^[a-z]{2}(?:-[A-Za-z]{2})?$",
            "type": "string",
            "description": "Language of Google Maps categories and hours, as a code: <code>en</code>, <code>es</code>, <code>de</code>, <code>pt-BR</code>. Google's catch-all category is recognised in English only.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "The country Google answers for, as a two-letter code: <code>us</code>, <code>gb</code>, <code>de</code>.",
            "default": "us"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}