{
  "openapi": "3.0.1",
  "info": {
    "title": "Local SEO Site Generator for Any Niche + City",
    "description": "Generates a complete local-SEO static-site package for any niche + city: original home/services/about/FAQ copy, LocalBusiness JSON-LD, meta tags, sitemap.xml and a citations outline — fresh LLM copy per run, no invented business identity. One run = one ready-to-host site.",
    "version": "0.1",
    "x-build-id": "HNvv6kuWn1McwPd2T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gp005~local-service-site-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gp005-local-service-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/gp005~local-service-site-generator/runs": {
      "post": {
        "operationId": "runs-sync-gp005-local-service-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/gp005~local-service-site-generator/run-sync": {
      "post": {
        "operationId": "run-sync-gp005-local-service-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",
        "required": [
          "niche",
          "city"
        ],
        "properties": {
          "niche": {
            "title": "Niche / trade",
            "minLength": 2,
            "maxLength": 60,
            "type": "string",
            "description": "The local service trade the website is for, e.g. plumber, roofer, electrician, HVAC, dentist, landscaper. Used to scope all copy and the schema.org business type."
          },
          "city": {
            "title": "City",
            "minLength": 2,
            "maxLength": 80,
            "type": "string",
            "description": "The primary service city, e.g. Austin, Tampa, Seattle. Appears in headings, meta tags and the LocalBusiness service area."
          },
          "stateCode": {
            "title": "State / region",
            "maxLength": 40,
            "type": "string",
            "description": "State or region code, e.g. TX, FL, WA, or a country for non-US (optional)."
          },
          "serviceList": {
            "title": "Service list (optional)",
            "maxItems": 25,
            "type": "array",
            "description": "Exact services to feature, e.g. [\"drain cleaning\", \"water heater repair\", \"leak detection\"]. When empty, the generator proposes 5-8 typical services for the niche in that city.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 80
            }
          },
          "businessName": {
            "title": "Business name (optional)",
            "maxLength": 120,
            "type": "string",
            "description": "Real business name to place into headings, JSON-LD and citation placeholders. Leave empty to ship [BUSINESS NAME] placeholders instead — the generator never invents one."
          },
          "businessPhone": {
            "title": "Business phone (optional)",
            "maxLength": 30,
            "type": "string",
            "description": "Real contact phone, e.g. (512) 555-0142. Left empty, [PHONE] placeholders are emitted instead."
          },
          "businessEmail": {
            "title": "Business email (optional)",
            "maxLength": 120,
            "type": "string",
            "description": "Real contact email. Left empty, [EMAIL] placeholders are emitted instead."
          },
          "streetAddress": {
            "title": "Street address (optional)",
            "maxLength": 160,
            "type": "string",
            "description": "Real street address for the LocalBusiness schema. Left empty, [ADDRESS] placeholders are emitted instead."
          },
          "businessHours": {
            "title": "Opening hours (optional)",
            "maxLength": 160,
            "type": "string",
            "description": "Real opening hours, e.g. Mon-Fri 8:00-18:00. Left empty, [HOURS] placeholders are emitted instead."
          },
          "websiteUrl": {
            "title": "Existing website URL (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "If the business already has a domain, include it so canonical URLs, sitemap and JSON-LD use real links instead of [YOUR-DOMAIN]."
          },
          "tone": {
            "title": "Copy tone",
            "enum": [
              "professional",
              "friendly",
              "expert"
            ],
            "type": "string",
            "description": "Voice of the generated copy.",
            "default": "professional"
          },
          "llmModel": {
            "title": "LLM model",
            "maxLength": 100,
            "type": "string",
            "description": "Model slug for copy generation on your endpoint. Defaults to openai/gpt-4o-mini; the openai/ prefix is stripped for native OpenAI endpoints. Use your provider's own slug with a custom llmBaseUrl.",
            "default": "openai/gpt-4o-mini"
          },
          "llmApiKey": {
            "title": "LLM API key — bring your own (required)",
            "type": "string",
            "description": "REQUIRED for a successful run: your own OpenAI-compatible API key (OpenAI, OpenRouter, Groq, Together, local gateway). Copy generation runs on this key and you pay the provider directly. The Apify-managed LLM proxy is disabled for this Actor, so a run without a key returns a structured error item naming the missing key instead of a package. Stored as a secret input; never written to the dataset or logs."
          },
          "llmBaseUrl": {
            "title": "LLM base URL (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "OpenAI-compatible base URL used together with llmApiKey, e.g. https://api.openai.com/v1 (the default) or https://openrouter.ai/api/v1. Ignored when llmApiKey is empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}