{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Answer Extractor - ChatGPT, Gemini, Claude & Perplexity ✅",
    "description": "Track your brand in AI answers: send buyer questions to ChatGPT, Gemini, Claude and Perplexity and get one row per answer with the full text, brand and competitor mentions, your rank and the sources each AI cites. From $0.008 per answer. No login. CSV, Sheets or API.",
    "version": "0.0",
    "x-build-id": "XR8FvJtJcQYyE1dgx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unseenuser~ai-answer-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unseenuser-ai-answer-extractor",
        "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/unseenuser~ai-answer-extractor/runs": {
      "post": {
        "operationId": "runs-sync-unseenuser-ai-answer-extractor",
        "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/unseenuser~ai-answer-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-unseenuser-ai-answer-extractor",
        "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": [
          "prompts"
        ],
        "properties": {
          "prompts": {
            "title": "Prompts",
            "minItems": 1,
            "type": "array",
            "description": "Buyer-intent prompts to send to each selected engine. Max 500 characters. To get answers in another language, write the prompts in that language.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Engines",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Which engines to query. Default: all four. 1 answer = 1 prompt x 1 engine, and each answer is a billable event.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "claude",
                "gemini",
                "perplexity"
              ],
              "enumTitles": [
                "ChatGPT",
                "Claude",
                "Gemini",
                "Perplexity"
              ]
            },
            "default": [
              "chatgpt",
              "claude",
              "gemini",
              "perplexity"
            ]
          },
          "enableWebSearch": {
            "title": "Enable web search (ChatGPT, Claude, Gemini)",
            "type": "boolean",
            "description": "Turn on web search for ChatGPT, Claude, and Gemini. Triggers the higher-priced answer-with-web-search event for those three engines. Does NOT affect Perplexity (it always browses).",
            "default": false
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Brand to detect in answers (case-insensitive substring match). Required for brand analysis."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Alternate names, acronyms, or domain-based forms of your brand.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 competitor names to detect.",
            "items": {
              "type": "string"
            }
          },
          "ownDomain": {
            "title": "Your domain",
            "type": "string",
            "description": "Your own website domain. ownDomainCited is set to true when any citation host matches it."
          },
          "locationCode": {
            "title": "Country code",
            "enum": [
              "AR",
              "AU",
              "AT",
              "BE",
              "BR",
              "CA",
              "CL",
              "CN",
              "DK",
              "FI",
              "FR",
              "DE",
              "HK",
              "IN",
              "ID",
              "IT",
              "JP",
              "MY",
              "MX",
              "NL",
              "NZ",
              "NO",
              "PH",
              "PL",
              "PT",
              "RU",
              "SA",
              "ZA",
              "KR",
              "ES",
              "SE",
              "CH",
              "TW",
              "TR",
              "GB",
              "US"
            ],
            "type": "string",
            "description": "Country for web search. Sent to ChatGPT and Claude when web search is on, and always to Perplexity. Not sent to Gemini (not supported). Applies only when web search is on (always on for Perplexity). Without web search, answers are not country-specific.",
            "default": "US"
          },
          "chatgptModel": {
            "title": "ChatGPT model",
            "enum": [
              "gpt-4o-mini"
            ],
            "type": "string",
            "description": "Model for ChatGPT (cost-efficient allowlist only).",
            "default": "gpt-4o-mini"
          },
          "claudeModel": {
            "title": "Claude model",
            "enum": [
              "claude-haiku-4-5",
              "claude-haiku-4-5-20251001"
            ],
            "type": "string",
            "description": "Model for Claude (Haiku tier only).",
            "default": "claude-haiku-4-5"
          },
          "geminiModel": {
            "title": "Gemini model",
            "enum": [
              "gemini-2.5-flash-lite",
              "gemini-2.5-flash",
              "gemini-2.0-flash",
              "gemini-1.5-flash",
              "gemini-1.5-flash-8b"
            ],
            "type": "string",
            "description": "Model for Gemini (Flash tier only).",
            "default": "gemini-2.5-flash-lite"
          },
          "perplexityModel": {
            "title": "Perplexity model",
            "enum": [
              "sonar"
            ],
            "type": "string",
            "description": "Model for Perplexity (base sonar only).",
            "default": "sonar"
          },
          "internalCostCapUsd": {
            "title": "Internal safety cap (USD)",
            "minimum": 0.01,
            "type": "number",
            "description": "Internal Publisher-side safety cap per run. Not a buyer setting - use Apify's \"Maximum cost per run\" setting to cap your spend.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}