{
  "openapi": "3.0.1",
  "info": {
    "title": "ChatGPT Scraper – Answers & Named Entities by Country",
    "description": "Send prompts to chatgpt.com and get every answer back as structured JSON — the answer as Markdown plus the entities ChatGPT named. Ask from 54 countries, run prompts concurrently, and see whether ChatGPT mentions you. No OpenAI API key, no ChatGPT account, no browser.",
    "version": "0.1",
    "x-build-id": "4HxTdxokojMmZdpI3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rl1987~chatgpt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rl1987-chatgpt-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/rl1987~chatgpt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rl1987-chatgpt-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/rl1987~chatgpt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rl1987-chatgpt-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": [
          "prompts"
        ],
        "properties": {
          "prompts": {
            "title": "Prompts",
            "minItems": 1,
            "type": "array",
            "description": "Prompts to send to ChatGPT, one conversation each, max 4096 characters. Every prompt uses the country and follow-up set below.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "",
              "us",
              "gb",
              "ca",
              "au",
              "ie",
              "nz",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "at",
              "ch",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "pt",
              "gr",
              "ro",
              "lt",
              "lv",
              "ee",
              "ua",
              "tr",
              "ru",
              "il",
              "ae",
              "sa",
              "za",
              "ng",
              "eg",
              "in",
              "pk",
              "id",
              "my",
              "sg",
              "th",
              "vn",
              "ph",
              "jp",
              "kr",
              "cn",
              "hk",
              "tw",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe"
            ],
            "type": "string",
            "description": "Answer as if browsing from this country — it routes the proxy exit node, which is what ChatGPT actually sees. Needs a proxy to have any effect.",
            "default": ""
          },
          "additionalPrompt": {
            "title": "Second prompt",
            "type": "string",
            "description": "Optional second prompt asked after each prompt. Each prompt is answered independently — the model does not see the first answer — so write this so it stands alone. Only the second prompt's answer is saved."
          },
          "requireSources": {
            "title": "Require sources",
            "type": "boolean",
            "description": "Mark a result as failed when the answer cites no web sources. Meaningful on the web-search surfaces (<b>Auto</b>, the default, and <b>mobile</b>); on the answer-only <b>backend-anon</b> surface every row would fail.",
            "default": false
          },
          "backend": {
            "title": "ChatGPT surface",
            "enum": [
              "auto",
              "mobile",
              "backend-anon"
            ],
            "type": "string",
            "description": "Which ChatGPT surface to scrape. <b>Auto</b> (default) uses ChatGPT's Android-app anonymous API, which <b>runs web search and returns cited sources</b> (<code>citations</code>/<code>search_sources</code>) with no account and no login, and falls back to the answer-only surface if the mobile one has a bad moment. <b>mobile</b> forces that Android web-search API (fails the prompt instead of falling back). <b>backend-anon</b> is the fast answer-only web surface (no web search). The Actor never signs in.",
            "default": "auto"
          },
          "maxRetries": {
            "title": "Max retries per prompt",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a prompt (with a fresh session) before giving up. Each retry is a fresh proxy exit plus doubling backoff, so on a run where the edge is blocking it is mostly wasted compute — kept low on purpose.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Max concurrent prompts",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many prompts to answer at once. Each one gets its own session and proxy exit node, so raising this shortens a run roughly proportionally. Lower it to 1 if a provider starts rate limiting you.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Strongly recommended. <b>Datacenter</b> is the default and is the faster, more reliable choice here - measured 2026-11-10, datacenter answered 40 of 40 <code>chat-requirements</code> probes, and 50 consecutive requests on one pinned exit, against residential's 37 of 40, at roughly half the latency. Datacenter exits are <b>US-only</b> on this account, so a <b>country</b> other than <code>us</code> is served over residential automatically. Throughput is not pool-limited: measured 2026-11-10, 200 prompts at concurrency 20 answered <b>200 of 200</b> on datacenter with 2 retries, flat across the whole run.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}