{
  "openapi": "3.0.1",
  "info": {
    "title": "Demo Website Generator for Local Businesses",
    "description": "Turn Google Maps leads into ready-to-pitch demo websites with real reviews, photos and a WhatsApp CTA, plus outreach messages.",
    "version": "0.1",
    "x-build-id": "55pZzUe5JHomCcefM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sebastian_elustondo~local-business-demo-site-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sebastian_elustondo-local-business-demo-site-generator",
        "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/sebastian_elustondo~local-business-demo-site-generator/runs": {
      "post": {
        "operationId": "runs-sync-sebastian_elustondo-local-business-demo-site-generator",
        "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/sebastian_elustondo~local-business-demo-site-generator/run-sync": {
      "post": {
        "operationId": "run-sync-sebastian_elustondo-local-business-demo-site-generator",
        "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": {
          "businesses": {
            "title": "Businesses (JSON)",
            "type": "array",
            "description": "List of businesses to build demos for. Each object: <code>{name, category, address, city, country (ISO-2), phone, whatsapp, rating, reviewsCount, reviews:[{author,text,stars,date}], photos:[urls], hours:[{day,hours}], instagram, mapsUrl, description, language}</code>. Only <code>name</code> is mandatory. Field names from popular Google Maps scrapers (title, categoryName, totalScore, imageUrls, phoneUnformatted, openingHours...) are accepted too."
          },
          "datasetId": {
            "title": "Google Maps scraper dataset ID",
            "type": "string",
            "description": "Default dataset ID of a finished run of any Google Maps scraper (for example <code>compass/crawler-google-places</code> or any \"businesses without websites\" leads scraper). Its items are read and mapped automatically."
          },
          "includeBusinessesWithWebsite": {
            "title": "Include businesses that already have a website",
            "type": "boolean",
            "description": "By default, dataset items whose <code>website</code> field is filled are skipped, since they are not \"no website\" leads.",
            "default": false
          },
          "maxBusinesses": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many demos (counts both sources).",
            "default": 50
          },
          "language": {
            "title": "Site language",
            "enum": [
              "auto",
              "es",
              "en",
              "pt"
            ],
            "type": "string",
            "description": "Language of the demo sites and pitch messages. <b>Auto</b> picks Spanish for Spanish-speaking countries, Portuguese for Brazil and Portugal, English otherwise; a per-business <code>language</code> field wins.",
            "default": "auto"
          },
          "agencyName": {
            "title": "Your agency or studio name",
            "type": "string",
            "description": "Shown in the demo footer credit and used in the pitch messages.",
            "default": "Your Agency"
          },
          "senderName": {
            "title": "Sender name",
            "type": "string",
            "description": "First name that signs the pitch messages (\"Hi, I'm ... from ...\")."
          },
          "agencyEmail": {
            "title": "Agency email",
            "type": "string",
            "description": "Optional. Added to the pitch messages as an alternative contact."
          },
          "agencyWebsite": {
            "title": "Agency website",
            "type": "string",
            "description": "Optional. Linked from the demo footer credit."
          },
          "priceLine": {
            "title": "Price line for the pitch",
            "type": "string",
            "description": "Optional free text, for example <code>USD 300 setup + USD 30/month</code>. It is only written into the pitch document (as a note for the call, never in the first message)."
          },
          "takeScreenshots": {
            "title": "Take screenshots",
            "type": "boolean",
            "description": "Render a desktop and a mobile full-page screenshot of every demo (Chromium). Turn off for faster, cheaper runs.",
            "default": true
          },
          "footerCredit": {
            "title": "Footer credit",
            "type": "boolean",
            "description": "Add \"Demo site created by {agency}\" to the footer of every demo.",
            "default": true
          },
          "accentColor": {
            "title": "Accent color override",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "type": "string",
            "description": "Optional hex color (for example <code>#1E7A4C</code>). By default each business category gets its own palette."
          },
          "backgroundColor": {
            "title": "Background color override",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "type": "string",
            "description": "Optional hex color (for example <code>#FAF7F0</code>)."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}