{
  "openapi": "3.0.1",
  "info": {
    "title": "Buyer Prompt Generator for AI Search (GEO)",
    "description": "Turn any website into the real questions buyers ask ChatGPT, Perplexity and Gemini. Get a balanced prompt set (discovery, comparison, alternatives, pricing, local) in English and Malay for AI visibility tracking (GEO).",
    "version": "0.0",
    "x-build-id": "OUP3bzYSX0Uw9yYs0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shariful-labs~buyer-prompt-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shariful-labs-buyer-prompt-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/shariful-labs~buyer-prompt-generator/runs": {
      "post": {
        "operationId": "runs-sync-shariful-labs-buyer-prompt-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/shariful-labs~buyer-prompt-generator/run-sync": {
      "post": {
        "operationId": "run-sync-shariful-labs-buyer-prompt-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": [
          "category"
        ],
        "properties": {
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Required. What the business sells, in the words buyers use, e.g. \"accounting software\", \"dental clinic\", \"CRM\". This is the most important input: every question is built around it."
          },
          "websiteUrl": {
            "title": "Website URL",
            "type": "string",
            "description": "Optional but recommended. The brand's website. The Actor reads the home page and a few key pages (features, products, pricing) to find the brand name, features and the jobs customers use it for."
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Optional. Detected from the website if empty."
          },
          "audience": {
            "title": "Target audience",
            "type": "string",
            "description": "Optional. Who buys it, e.g. \"small businesses\", \"freelancers\", \"parents\"."
          },
          "market": {
            "title": "Market (country or region)",
            "type": "string",
            "description": "Optional. Adds the market to questions, e.g. \"Malaysia\" gives \"What is the best accounting software in Malaysia?\"."
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Competitor names. Used for comparison (\"X vs Y\") and alternatives (\"alternatives to X\") questions.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Optional. Adds local questions such as \"best accounting software in Penang\".",
            "items": {
              "type": "string"
            }
          },
          "useCases": {
            "title": "Use cases / jobs to be done",
            "type": "array",
            "description": "Optional. Things buyers want to get done, written as actions, e.g. \"send e-invoices to LHDN\", \"track my expenses\". Extra ones are also detected from the website.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Languages for the questions. English (en) and Malay (ms) are supported.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "ms"
              ],
              "enumTitles": [
                "English",
                "Malay (Bahasa Malaysia)"
              ]
            },
            "default": [
              "en"
            ]
          },
          "maxPrompts": {
            "title": "Maximum prompts",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "How many prompts to return. You pay per prompt returned.",
            "default": 50
          },
          "includeBrandedPrompts": {
            "title": "Include questions that name the brand",
            "type": "boolean",
            "description": "Adds questions like \"Is Acme good?\" and \"Acme vs Rival\". Turn off to get only unbranded questions, which test whether AI recommends the brand on its own.",
            "default": true
          },
          "maxPagesToCrawl": {
            "title": "Pages to read",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pages of the website to read.",
            "default": 8
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Optional. With your own key, an AI model also writes more natural, varied questions based on the website. Without a key, the Actor uses proven question templates. Your key is stored encrypted and only used for this run."
          },
          "openaiModel": {
            "title": "OpenAI model",
            "type": "string",
            "description": "Model used when an OpenAI key is given.",
            "default": "gpt-5.4-mini"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Only needed if the website blocks automated visits.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}