{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Local Services Ads Scraper",
    "description": "Google Local Services Ads Scraper: every Local Services advertiser for a service and city - name, category, rating, star split, reviews, hours, years in business, service area, highlights, reply time, ids, booking link and Verified badge.",
    "version": "1.0",
    "x-build-id": "HhzMSLY7KwlD7gDPE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~google-local-services-ads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-google-local-services-ads-scraper",
        "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/neuro-scraper~google-local-services-ads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-google-local-services-ads-scraper",
        "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/neuro-scraper~google-local-services-ads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-google-local-services-ads-scraper",
        "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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One search per line, written the way people search for a pro: \"plumbers in Austin, TX\", \"house cleaning in Dallas\", \"roof repair in Chicago, IL\". When you also fill Locations, a line without \" in \" is searched in every location (\"plumbers\" + \"Austin, TX\" -> \"plumbers in Austin, TX\").",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query (single)",
            "type": "string",
            "description": "One search as a single text, e.g. \"plumber in New York\". Added to Search queries - handy for API calls and inputs from other tools."
          },
          "queries": {
            "title": "Queries (alias)",
            "type": "array",
            "description": "Same as Search queries - kept so inputs written for other tools work unchanged.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional cities, districts or ZIP codes. Every search query without a location is combined with every location here.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (single)",
            "type": "string",
            "description": "One city, district or ZIP code as a single text, e.g. \"Austin, TX\". Added to Locations."
          },
          "services": {
            "title": "Services",
            "type": "array",
            "description": "Optional service names (\"electricians\", \"locksmith\"). Same as search queries without a location - they are combined with every location.",
            "items": {
              "type": "string"
            }
          },
          "jobType": {
            "title": "Job type",
            "type": "string",
            "description": "Optional job within the service, e.g. \"water heater repair\" or \"unclog drain\". It is added to every search so Google ranks the pros who offer that job."
          },
          "maxResultsPerQuery": {
            "title": "Max advertisers per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many advertisers to keep per search. Google lists up to 20 Local Services advertisers per service and city.",
            "default": 20
          },
          "maxItems": {
            "title": "Max advertisers in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many rows (0 = no total limit).",
            "default": 0
          },
          "maxPages": {
            "title": "Max pages per query",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Result pages read per search. Google shows every Local Services advertiser of a service and city on one page, so 1 is enough; a higher value reads the next page too and stops as soon as it brings no new advertiser.",
            "default": 1
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only advertisers with at least this star rating (0-5, e.g. 4.5). 0 = no filter.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only advertisers with at least this many reviews. 0 = no filter.",
            "default": 0
          },
          "hours": {
            "title": "Opening hours filter",
            "enum": [
              "ANYTIME",
              "OPEN_NOW",
              "OPEN_24_HOURS",
              "MONDAY",
              "TUESDAY",
              "WEDNESDAY",
              "THURSDAY",
              "FRIDAY",
              "SATURDAY",
              "SUNDAY"
            ],
            "type": "string",
            "description": "Keep only advertisers that are open now, open 24 hours, or open on a given weekday - the same choices as the hours filter on the results page.",
            "default": "ANYTIME"
          },
          "verifiedOnly": {
            "title": "Only Verified advertisers",
            "type": "boolean",
            "description": "Keep only advertisers that carry Google's Verified badge. Turns on 'Include profile details' (the badge is read from the profile).",
            "default": false
          },
          "includeDetails": {
            "title": "Include profile details",
            "type": "boolean",
            "description": "Also open every advertiser's profile: Verified badge, every city of the service area, the services offered, photos, place id, Maps id and review topics. One extra page per advertiser (slower and costs more proxy traffic).",
            "default": false
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code of the market (us, ca, gb, au...). Local Services Ads run in the US, Canada and some other countries.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of the page texts (en, es, fr...).",
            "default": "en"
          },
          "targetLanguages": {
            "title": "Translate texts to",
            "type": "array",
            "description": "Optional language codes (e.g. \"es\", \"de\"). The category, highlights and reply time of every row are machine-translated into each language and added under `translations`.",
            "items": {
              "type": "string"
            }
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "Recorded on each row. desktop and mobile read the same advertiser list.",
            "default": "desktop"
          },
          "minItems": {
            "title": "Minimum rows to require",
            "minimum": 0,
            "type": "integer",
            "description": "When the run ends with fewer rows than this, it is marked as failed so a schedule or integration notices (0 = off).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are fetched in parallel.",
            "default": 6
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Time limit for one page request.",
            "default": 40
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "A residential proxy in the market's country is needed - Local Services Ads are shown to local visitors only. Default: Apify residential, United States.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}