{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper + Website Audit & Agency Pitch",
    "description": "Google Maps scraper for agencies: finds local businesses, audits each website, scores the opportunity 0-100 and writes a ready pitch. Web design leads, one run.",
    "version": "0.3",
    "x-build-id": "GQ1kX2qwbGJfdASuy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seasons-ai~local-business-site-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seasons-ai-local-business-site-audit",
        "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/seasons-ai~local-business-site-audit/runs": {
      "post": {
        "operationId": "runs-sync-seasons-ai-local-business-site-audit",
        "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/seasons-ai~local-business-site-audit/run-sync": {
      "post": {
        "operationId": "run-sync-seasons-ai-local-business-site-audit",
        "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",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What to look for on Google Maps, one per line, e.g. \"dentist\", \"hair salon\", \"plumber\". Each term is searched in the location below (\"dentist in Austin, TX\"). Places found by several terms are audited once.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, area or postcode added to every search term, e.g. \"Austin, TX\" or \"Leeds, UK\". Leave empty if your search terms already contain the place."
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "How many places to take from each search term, best match first. Google Maps shows about 120 places per search; for more, add terms or split the area (\"dentist in 78701\", \"dentist in 78702\").",
            "default": 20
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional. Skip places rated below this (1-5). Places without a rating are skipped too when this is set. Filters are free."
          },
          "websiteFilter": {
            "title": "Website",
            "enum": [
              "all",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Audit all places, only places with a website, or only places without one (the warmest leads for a new site). Filters are free.",
            "default": "all"
          },
          "categoryFilterWords": {
            "title": "Category must contain",
            "type": "array",
            "description": "Optional. Keep only places whose main Google Maps category contains one of these words, e.g. \"dentist\" keeps \"Dentist\" and \"Cosmetic dentist\" but drops \"Dental supply store\".",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Google Maps language",
            "type": "string",
            "description": "Language code for place names and categories, e.g. en, de, es.",
            "default": "en"
          },
          "country": {
            "title": "Google Maps country",
            "type": "string",
            "description": "Optional two-letter country code that Google uses to rank results, e.g. us, gb, de."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy for the Google Maps search. The default Apify Proxy works for most runs; if it cannot be set up the Actor searches without a proxy. Website checks always go direct.",
            "default": {
              "useApifyProxy": true
            }
          },
          "datasetId": {
            "title": "Google Maps Scraper dataset",
            "type": "string",
            "description": "Optional instead of a search: pick the dataset of your Google Maps Scraper (compass/crawler-google-places) run, or paste its dataset ID. The Actor gets read-only access to this one dataset. When a dataset, businesses or a file is given, the search above is skipped."
          },
          "items": {
            "title": "Businesses (JSON)",
            "type": "array",
            "description": "Used when no dataset is picked. An array of objects with a business name (title or name), category (categoryName or category), website, rating (totalScore or rating) and reviews count (reviewsCount or reviews). Other fields are ignored."
          },
          "fileUrl": {
            "title": "File URL (JSON or CSV)",
            "type": "string",
            "description": "Used when neither a dataset nor businesses are given: a public link to a JSON array or a CSV export with the same columns (for example a dataset export link)."
          },
          "maxBusinesses": {
            "title": "Max businesses",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Total cap for the run: all search terms together, or the first rows of your own data after removing duplicates, closed places and filtered places. Hard limit 2000 per run.",
            "default": 50
          },
          "skipClosed": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip places marked permanently or temporarily closed on Google Maps. Skipped places are free.",
            "default": true
          },
          "agencyOffer": {
            "title": "What your agency offers",
            "type": "string",
            "description": "Optional. One line about your services, used to tailor the pitch, e.g. \"websites, local SEO and online booking setup for salons\". Max 300 characters."
          },
          "pitchLanguage": {
            "title": "Pitch language",
            "type": "string",
            "description": "Language for reasons and pitch.",
            "default": "English"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}