{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews Scraper + AI: Tripadvisor, Trustpilot",
    "description": "Turn Google Maps, Tripadvisor, Trustpilot and Booking.com reviews into a clear report: top complaints and praises with real quotes, rating trend, response rate, actions and AI replies. Weekly alerts for new negative reviews.",
    "version": "1.0",
    "x-build-id": "44ekgngZgyKs30ZAL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ingeniela~google-maps-reviews-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ingeniela-google-maps-reviews-analyzer",
        "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/ingeniela~google-maps-reviews-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-ingeniela-google-maps-reviews-analyzer",
        "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/ingeniela~google-maps-reviews-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-ingeniela-google-maps-reviews-analyzer",
        "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": {
          "placeUrls": {
            "title": "Place links (Google Maps, Tripadvisor, Trustpilot, Booking.com)",
            "type": "array",
            "description": "Your business and, if you like, competitors. One link per place: a Google Maps place (contains /maps/place/), a Tripadvisor page, a Trustpilot page (trustpilot.com/review/yourdomain.com) or a Booking.com hotel page. You can mix platforms in one run.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Google place IDs",
            "type": "array",
            "description": "Google place IDs (start with ChIJ), as an alternative to URLs.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerPlace": {
            "title": "Reviews per place",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest reviews first. 100-300 gives a solid picture.",
            "default": 200
          },
          "reviewsSince": {
            "title": "Only reviews newer than",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "A date (2026-01-01) or a period (6 months)."
          },
          "language": {
            "title": "Review language",
            "enum": [
              "es",
              "en",
              "pt-BR",
              "pt-PT",
              "fr",
              "de",
              "it",
              "nl"
            ],
            "type": "string",
            "description": "Google Maps shows reviews (and translations) in this language. Other platforms return each review in its own language.",
            "default": "es"
          },
          "scraperMaxCostUsd": {
            "title": "Max spend on data collection (USD)",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit per platform for collecting the reviews on your account (Trustpilot needs at least $0.50).",
            "default": 5
          },
          "aiInsights": {
            "title": "AI insights",
            "type": "boolean",
            "description": "Summary, top complaints with fixes, strengths and prioritised actions per place.",
            "default": true
          },
          "draftReplies": {
            "title": "Draft replies to negative reviews",
            "type": "boolean",
            "description": "Write a reply for each unanswered review of 1-2 stars, in the reviewer's language.",
            "default": true
          },
          "maxReplyDrafts": {
            "title": "Max reply drafts per place",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Newest negative reviews first.",
            "default": 10
          },
          "businessContext": {
            "title": "About your business",
            "type": "string",
            "description": "Optional. Tone and facts for replies, e.g. 'Aesthetic clinic in Madrid, friendly tone, sign as Laura, contact hola@clinica.com'."
          },
          "reportLanguage": {
            "title": "Report language",
            "enum": [
              "es",
              "en"
            ],
            "type": "string",
            "description": "Language of the report and AI insights.",
            "default": "es"
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "auto",
              "anthropic",
              "openai",
              "openrouter",
              "gemini",
              "xai",
              "deepseek",
              "mistral"
            ],
            "type": "string",
            "description": "Which AI writes the insights. Add the matching key below, or leave all keys empty to use the built-in AI (billed per AI event).",
            "default": "auto"
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Leave empty for the default: claude-opus-5-5 on Anthropic, gpt-6.1-terra on OpenAI, anthropic/claude-sonnet-5.5 on OpenRouter. On OpenRouter you can use any model id from openrouter.ai/models."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (optional)",
            "type": "string",
            "description": "Your own key from console.anthropic.com. With your own key (any provider), that provider bills you and AI events are not charged."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Your own key from platform.openai.com/api-keys."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API key (optional)",
            "type": "string",
            "description": "Your own key from openrouter.ai/keys. One key, hundreds of models."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key (optional)",
            "type": "string",
            "description": "Your own key from aistudio.google.com/apikey."
          },
          "xaiApiKey": {
            "title": "xAI (Grok) API key (optional)",
            "type": "string",
            "description": "Your own key from console.x.ai."
          },
          "deepseekApiKey": {
            "title": "DeepSeek API key (optional)",
            "type": "string",
            "description": "Your own key from platform.deepseek.com."
          },
          "mistralApiKey": {
            "title": "Mistral API key (optional)",
            "type": "string",
            "description": "Your own key from console.mistral.ai."
          },
          "alertMode": {
            "title": "Alert mode: only new negative reviews",
            "type": "boolean",
            "description": "Instead of the full report, return only negative reviews that appeared since the last run, with a suggested reply, and send them to your webhook or email. Save this input as a task and schedule it weekly. The first run only saves a baseline.",
            "default": false
          },
          "monitorName": {
            "title": "Alert name",
            "type": "string",
            "description": "Optional. Keeps separate memory for different alert tasks. Empty = based on the places."
          },
          "alertMaxStars": {
            "title": "Negative means up to (stars)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Reviews with this many stars or fewer trigger an alert (Booking scores are converted to 5 stars).",
            "default": 2
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Receives a JSON POST with a 'text' field, so a Slack or Discord incoming webhook works as is (Zapier and Make too)."
          },
          "notifyEmail": {
            "title": "Email",
            "type": "string",
            "description": "Optional. Sends the alert by email."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}