{
  "openapi": "3.0.1",
  "info": {
    "title": "ChatGPT Answers API: Perplexity, AI Overviews, AI Mode, Copilot",
    "description": "One row per answer: the full answer, every cited source (URL, domain, title, position), engine, model, country and time, from ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews, Google AI Mode and Copilot. Live search by country, bulk questions, consensus, clean JSON.",
    "version": "0.1",
    "x-build-id": "XXOZYZtjkK8qHHhDE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~ai-answers-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-ai-answers-api",
        "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/zaiq~ai-answers-api/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-ai-answers-api",
        "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/zaiq~ai-answers-api/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-ai-answers-api",
        "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": "Questions",
            "type": "array",
            "description": "One question per line, as you would type it into ChatGPT. Each question goes to every assistant you pick.",
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "AI assistants and AI search",
            "type": "array",
            "description": "Pick any mix. ChatGPT, Perplexity, Gemini, Claude and Grok answer through their official APIs; with web search on, each uses its own search (Gemini uses Google Search). Google AI Overview, Google AI Mode and Copilot are read from Google's and Bing's own search pages: no AI usage to pay, and a search they show no answer for comes back as a free row with answer null.",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "claude",
                "grok",
                "google-ai-overview",
                "google-ai-mode",
                "copilot"
              ],
              "enumTitles": [
                "ChatGPT (OpenAI)",
                "Perplexity",
                "Gemini (Google)",
                "Claude (Anthropic)",
                "Grok (xAI)",
                "Google AI Overview",
                "Google AI Mode",
                "Microsoft Copilot (Bing)"
              ]
            },
            "default": [
              "chatgpt",
              "perplexity",
              "gemini",
              "claude"
            ]
          },
          "modelTier": {
            "title": "Models",
            "enum": [
              "fast",
              "flagship"
            ],
            "type": "string",
            "description": "Fast: each company's newest low-cost model. AI usage measured 17 Oct 2026 on a hard pricing question: Perplexity Sonar $0.006, GPT-5.4 mini $0.02-0.03, Claude Haiku 5.5 $0.023, Grok 4.3 $0.049, Gemini 3.8 Flash $0.061 (Google charges per search and it ran about four). Flagship: the newest model each assistant's own app runs, for the answers your customers see: about $0.09 an answer for GPT-6.1 Sol and $0.15-0.23 for Grok 4.7.",
            "default": "fast"
          },
          "webSearch": {
            "title": "Live web search",
            "type": "boolean",
            "description": "On: each assistant searches the web and cites its sources. Off: they answer from what they know (Perplexity always searches).",
            "default": true
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Search as from this country (two-letter code). ChatGPT, Perplexity, Claude and Grok take it; Gemini does not take a location. Google AI Overview, AI Mode and Copilot search from it, from the US when empty. Empty: no location for the assistants."
          },
          "language": {
            "title": "Search language (optional)",
            "type": "string",
            "description": "The interface language Google AI Overview, Google AI Mode and Copilot search in, as a code such as en, de or pt-BR. Empty: the country's own language. The AI assistants answer in the language of the question."
          },
          "consensus": {
            "title": "Consensus report per question",
            "type": "boolean",
            "description": "Compare each question's answers: the consensus answer, what they agree and disagree on, claims only one made, an agreement score and the sites more than one cited. Needs two or more engines; the comparison runs on Gemini Flash through Apify's AI gateway.",
            "default": true
          },
          "instructions": {
            "title": "Instructions (optional)",
            "type": "string",
            "description": "Sent with every question to the AI assistants, e.g. 'Answer in under 100 words', 'Reply as a numbered list' or 'You are a tax adviser in Germany'. Not sent to Google or Copilot: they get the question as a search."
          },
          "maxAnswerTokens": {
            "title": "Longest answer (tokens)",
            "minimum": 300,
            "maximum": 2048,
            "type": "integer",
            "description": "About 0.75 words a token; 2,048 is the most Apify's AI gateway allows. Shorter answers: lower it, or say so in Instructions.",
            "default": 2048
          },
          "consensusLanguage": {
            "title": "Consensus report language",
            "type": "string",
            "description": "The language of the consensus report (the answers stay in the language of the question).",
            "default": "English"
          },
          "fixedModels": {
            "title": "Fixed models (advanced)",
            "type": "object",
            "description": "Pin any OpenRouter model id per assistant instead of the tier's newest, e.g. {\"chatgpt\": \"openai/gpt-6.1-sol\", \"claude\": \"anthropic/claude-sonnet-5.5\"}."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}