{
  "openapi": "3.0.1",
  "info": {
    "title": "ChatGPT Search Scraper - Answers, Sources & Brand Visibility",
    "description": "Get ChatGPT's full answer to any prompt with every cited source, per-sentence citations, searched websites, product cards with prices and offers, places, entities and follow-ups. Track your brand's mentions, rank, citations and tone across countries, languages and repeated asks.",
    "version": "0.0",
    "x-build-id": "lErsh8PJPhedXamct"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~chatgpt-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-chatgpt-search-scraper",
        "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/zen-studio~chatgpt-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-chatgpt-search-scraper",
        "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/zen-studio~chatgpt-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-chatgpt-search-scraper",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Prompts",
            "type": "array",
            "description": "What to ask ChatGPT, one prompt per line, exactly as a person would type it.<br><br>Examples:<br>• <code>best CRM for small business</code><br>• <code>best noise cancelling headphones 2026</code><br>• <code>is Notion or Obsidian better for note taking</code><br><br>Each prompt returns one answer row (one per country, language and repeat when you set those).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max answers",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most answers to return in total, across all prompts, countries, languages and repeats. Leave empty to get every answer. ChatGPT answers each prompt in about 10 to 30 seconds; several run at once."
          },
          "trackBrands": {
            "title": "Brands to track",
            "type": "array",
            "description": "Optional. One brand per line: its name, then any other names and its website, separated by commas, for example <code>HubSpot, HubSpot CRM, hubspot.com</code>.<br><br>For each brand, every answer reports whether ChatGPT mentioned it, how often, where it first appeared (rank among your brands and position in the text), whether a cited source is on its website, the links that point to it, its product cards, and each sentence that names it with the section and its tone (positive, negative, neutral or mixed). The run summary adds mention and citation rates per brand.<br><br>Put your own brand first, then your competitors.",
            "items": {
              "type": "string"
            }
          },
          "repeats": {
            "title": "Repeats per prompt",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Ask each prompt this many times. ChatGPT's answers vary from one ask to the next; repeating shows how stable your brand's visibility is. Each repeat is one answer row.",
            "default": 1
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Where the prompts appear to come from, as two-letter country codes. Each prompt runs once per country. Leave empty for <code>US</code>.<br><br>Answers, product cards, prices and merchants differ by country.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "US",
                "GB",
                "CA",
                "AU",
                "DE",
                "FR",
                "ES",
                "IT",
                "NL",
                "IE",
                "CH",
                "AT",
                "SE",
                "PL",
                "PT",
                "BR",
                "MX",
                "IN",
                "JP",
                "SG",
                "AE"
              ]
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "The browser language ChatGPT sees, for example <code>en-US</code> or <code>de-DE</code>. Each prompt runs once per language. Leave empty for <code>en-US</code>.<br><br>ChatGPT usually answers in the language of the prompt itself; the browser language changes the interface around it.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "en-US",
                "en-GB",
                "de-DE",
                "fr-FR",
                "es-ES",
                "it-IT",
                "nl-NL",
                "pt-BR",
                "pt-PT",
                "pl-PL",
                "sv-SE",
                "ja-JP",
                "ko-KR",
                "zh-CN"
              ]
            }
          },
          "webSearch": {
            "title": "Ask with web search",
            "type": "boolean",
            "description": "On: ask the way a ChatGPT search link does, so ChatGPT searches the web whenever it decides to. Off: ask the way a plain ChatGPT link does. ChatGPT still decides itself whether to search; <b>webSearchUsed</b> in each row says whether it did.",
            "default": true
          },
          "concurrency": {
            "title": "Parallel prompts",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many prompts ChatGPT answers at the same time. Each answer takes about 10 to 30 seconds.",
            "default": 6
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "type": "string",
            "description": "For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}