{
  "openapi": "3.0.1",
  "info": {
    "title": "LLM Citation Tracker: Top Cited Sources & Placement Gaps",
    "description": "Prompts in (your own LLM keys); ranked domains and URLs that ChatGPT, Claude, Gemini and Perplexity cite, source types and gaps out. From $0.01 per answer.",
    "version": "1.0",
    "x-build-id": "YhEBPW3s76LQnSli9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apricot_blackberry~ai-citation-source-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apricot_blackberry-ai-citation-source-finder",
        "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/apricot_blackberry~ai-citation-source-finder/runs": {
      "post": {
        "operationId": "runs-sync-apricot_blackberry-ai-citation-source-finder",
        "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/apricot_blackberry~ai-citation-source-finder/run-sync": {
      "post": {
        "operationId": "run-sync-apricot_blackberry-ai-citation-source-finder",
        "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,
            "maxItems": 200,
            "type": "array",
            "description": "Questions your buyers ask AI assistants, one per line (1 to 200). Each prompt runs on every selected engine that has an API key. The only required field. Example: best project management software for small teams",
            "items": {
              "type": "string"
            }
          },
          "brandDomain": {
            "title": "Your domain",
            "type": "string",
            "description": "Your website domain without https://, used to tag your own pages as sourceType brand and to find gaps. Leave empty to skip brand tagging. Example: asana.com",
            "default": ""
          },
          "competitorDomains": {
            "title": "Competitor domains",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 competitor website domains, one per line. A gap is a domain cited next to a competitor for a prompt where your domain is never cited. Example: monday.com",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Engines",
            "type": "array",
            "description": "Which AI engines to ask: openai (ChatGPT), anthropic (Claude), gemini (Google Gemini), perplexity. An engine without an API key is skipped with reason NO_KEY and is not charged. Default: all four. Example: [\"openai\",\"gemini\"]",
            "items": {
              "type": "string",
              "enum": [
                "openai",
                "anthropic",
                "gemini",
                "perplexity"
              ],
              "enumTitles": [
                "OpenAI (ChatGPT)",
                "Anthropic (Claude)",
                "Google Gemini",
                "Perplexity"
              ]
            },
            "default": [
              "openai",
              "anthropic",
              "gemini",
              "perplexity"
            ]
          },
          "samplesPerPrompt": {
            "title": "Samples per prompt",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Repeat each prompt this many times per engine, an integer from 1 to 3, because AI answers vary. Total answers (prompts x engines x samples) must be 600 or fewer. Example: 1",
            "default": 1
          },
          "resolveRedirects": {
            "title": "Resolve Gemini links",
            "type": "boolean",
            "description": "Gemini returns vertexaisearch.cloud.google.com redirect links instead of real URLs. When on, each is followed once to the real page and billed as one url-resolved event ($0.0005). Unresolved links keep the domain from the Gemini source title. Example: true",
            "default": true
          },
          "includeConsulted": {
            "title": "Include consulted sources",
            "type": "boolean",
            "description": "Also output pages the engine retrieved while searching but did not cite (rows with cited: false). Example: true",
            "default": true
          },
          "models": {
            "title": "Models",
            "type": "object",
            "description": "Optional JSON object with a model override per engine (keys openai, anthropic, gemini, perplexity). Leave {} for the defaults: gpt-5-mini, claude-sonnet-4-5, gemini-3-flash, sonar. Example: {\"openai\":\"gpt-5-mini\",\"gemini\":\"gemini-3-flash\"}",
            "default": {}
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your OpenAI API key for ChatGPT answers with web search (starts with sk-). Used only for this run, never logged or stored in results; usage is billed to your OpenAI account. Leave empty to skip ChatGPT. Example: sk-..."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "Your Anthropic API key for Claude answers (starts with sk-ant-). Used only for this run, never logged or stored in results. Leave empty to skip Claude. Example: sk-ant-..."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key",
            "type": "string",
            "description": "Your Google AI Studio API key for Gemini answers (starts with AIza). Used only for this run, never logged or stored in results. Leave empty to skip Gemini. Example: AIza..."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "Your Perplexity API key (starts with pplx-). Used only for this run, never logged or stored in results. Leave empty to skip Perplexity. Example: pplx-..."
          },
          "demoMode": {
            "title": "Demo mode",
            "type": "boolean",
            "description": "Replay bundled synthetic sample answers (2 prompts x 4 engines, project management software) with no keys, no network calls and no charges. Your prompts are ignored in demo mode. Rows are marked demo: true.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}