{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Sponsored Listings & Local Ads Tracker",
    "description": "Track who advertises on Google Maps. Find sponsored cards for any keyword and market, with the advertiser, ad copy, call to action, place ID/CID, rating, address, landing domain and organic rank.",
    "version": "1.0",
    "x-build-id": "8iH1oKxIQh7Nub935"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~google-maps-sponsored-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-google-maps-sponsored-listings",
        "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/crawlyth-forge~google-maps-sponsored-listings/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-google-maps-sponsored-listings",
        "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/crawlyth-forge~google-maps-sponsored-listings/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-google-maps-sponsored-listings",
        "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": [
          "searchQueries"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search returns every sponsored card/provider found in this run. monitor remembers advertisers per query and market in a persistent store and returns only new ones.",
            "default": "search"
          },
          "adSource": {
            "title": "Ad source",
            "enum": [
              "auto",
              "mapsSponsored",
              "localServices"
            ],
            "type": "string",
            "description": "Google Maps sponsored cards are auction-based and rotate, so some searches return none. Auto falls back to Google Local Services Ads providers for that query. Local Services Ads is the reliable daily source.",
            "default": "auto"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Commercial keywords or trades, e.g. \"personal injury lawyer\", \"plumber\", \"hair salon manhattan\". One search runs per keyword x location.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional city, address, or \"lat,lng\" (e.g. 40.758,-73.9855). Text locations are appended to the keyword; coordinates are used as the map camera. Leave empty to search the keyword exactly as written.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "ro",
              "tr",
              "ru",
              "uk",
              "ar",
              "he",
              "hi",
              "bn",
              "ta",
              "te",
              "th",
              "vi",
              "id",
              "ms",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW"
            ],
            "type": "string",
            "description": "Interface and result language. Local Services Ads supports English, French, German, Italian, Spanish and Dutch; other languages fall back to English for that source.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "US",
              "CA",
              "GB",
              "IE",
              "AU",
              "NZ",
              "DE",
              "FR",
              "IT",
              "ES",
              "AT",
              "BE",
              "CH",
              "NL",
              "PT",
              "SE",
              "DK",
              "NO",
              "FI",
              "PL",
              "CZ",
              "RO",
              "TR",
              "AE",
              "SA",
              "IN",
              "PK",
              "SG",
              "MY",
              "ID",
              "TH",
              "VN",
              "PH",
              "JP",
              "KR",
              "BR",
              "MX",
              "AR",
              "CL",
              "CO",
              "ZA",
              "NG",
              "EG"
            ],
            "type": "string",
            "description": "Market/country for the search. Local Services Ads supports US, CA, GB, IE, DE, FR, IT, ES, AT, BE and CH; other countries fall back to the US for that source.",
            "default": "US"
          },
          "repeats": {
            "title": "Repeats per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many times to request each Maps search when looking for sponsored cards. Three repeats catch most rotating slots; raise it for high-value campaigns.",
            "default": 3
          },
          "zoom": {
            "title": "Map zoom",
            "minimum": 3,
            "maximum": 21,
            "type": "integer",
            "description": "Zoom level for coordinate locations. 13 is a city-level view; higher values narrow the search area.",
            "default": 13
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "any",
              "2.0",
              "2.5",
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Keep advertisers at or above this rating. Records without a rating pass through. Also sent to Local Services Ads as its rating filter.",
            "default": "any"
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep advertisers with at least this many reviews. 0 disables the filter.",
            "default": 0
          },
          "minYearsInBusiness": {
            "title": "Minimum years in business",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Local Services Ads only: keep providers with at least this many years in business. 0 disables the filter.",
            "default": 0
          },
          "hours": {
            "title": "Opening hours",
            "enum": [
              "any",
              "openNow",
              "open24Hours",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ],
            "type": "string",
            "description": "Local Services Ads only: apply Google's opening-hours filter to providers.",
            "default": "any"
          },
          "requirePhone": {
            "title": "Must have a phone number",
            "type": "boolean",
            "description": "Drop advertisers without a phone number.",
            "default": false
          },
          "includeProfileDetails": {
            "title": "Fetch provider profile details",
            "type": "boolean",
            "description": "Open each Local Services provider profile to add services offered, service-area details and Google verification badges. Adds one request per provider.",
            "default": false
          },
          "maxProfileLookups": {
            "title": "Maximum profile lookups",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on profile-detail requests per run when profile details are enabled.",
            "default": 20
          },
          "monitorStateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Separate monitor history for different tasks. Use the same key on a schedule to see only advertisers new since the previous run.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum ad records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many advertiser records. Search summaries do not count toward this limit.",
            "default": 50
          },
          "includeSummaries": {
            "title": "Include per-search summaries",
            "type": "boolean",
            "description": "Add one summary row per keyword x location with ad-slot counts, unique advertisers, first organic result and fallback details.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}