{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Citation Finder: ChatGPT, Perplexity & AI Overviews Sources",
    "description": "Which sites ChatGPT, Perplexity and Google AI Overviews cite, your citation share vs each rival, every answer where a rival is cited and you are not, and a scored list of sites to get onto. Reads AI scraper rows, a Sheet or your questions. $0.002 per answer. Agent-ready: x402, MCP.",
    "version": "0.1",
    "x-build-id": "6PbUGBEcL6TVbpMK7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nerolabs~ai-citation-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nerolabs-ai-citation-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/nerolabs~ai-citation-finder/runs": {
      "post": {
        "operationId": "runs-sync-nerolabs-ai-citation-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/nerolabs~ai-citation-finder/run-sync": {
      "post": {
        "operationId": "run-sync-nerolabs-ai-citation-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",
        "properties": {
          "brandDomain": {
            "title": "Your website",
            "type": "string",
            "description": "Your brand's website, e.g. attio.com. Used to tell when an AI answer cites you and to find the answers where a rival shows up and you do not. Leave empty to just count every cited site."
          },
          "brandName": {
            "title": "Your brand name",
            "type": "string",
            "description": "How your brand is written in answers, e.g. Attio. Defaults to the first part of the domain. Used to spot answers that name you without citing you."
          },
          "competitorDomains": {
            "title": "Rivals",
            "type": "array",
            "description": "Up to 25 rivals, each as a domain (hubspot.com) or 'Name (domain)' such as 'HubSpot (hubspot.com)'. An answer that cites or names a rival but not you is a gap.",
            "items": {
              "type": "string"
            }
          },
          "datasetIds": {
            "title": "Datasets",
            "type": "array",
            "description": "One or more datasets from apify/chatgpt-search-scraper, apify/perplexity-search-scraper, apify/google-ai-overviews-scraper, apify/google-ai-mode-scraper, hyperbach/ai-search-answers, the Copilot, Gemini and other AI answer scrapers, Nero Labs AI Visibility Tracker or Perplexity Search API. Mix them freely; the assistant is detected per row. In an integration set it to [\"{{resource.defaultDatasetId}}\"]."
          },
          "fileUrl": {
            "title": "File or Google Sheet URL",
            "type": "string",
            "description": "A public link to a CSV, Excel, JSON or JSON Lines file: scraper rows, or your own sheet with a question column, an assistant column and a cited URL column (one link per row is fine). A normal Google Sheets link works when shared as 'Anyone with the link can view'."
          },
          "fileFormat": {
            "title": "File format",
            "enum": [
              "auto",
              "csv",
              "tsv",
              "json",
              "jsonl",
              "xlsx"
            ],
            "type": "string",
            "description": "Leave on 'Detect automatically' unless the link has no file extension.",
            "default": "auto"
          },
          "sheetName": {
            "title": "Excel sheet name",
            "type": "string",
            "description": "Which sheet to read from an Excel workbook. Defaults to the first sheet."
          },
          "data": {
            "title": "Answer rows",
            "type": "array",
            "description": "Rows as JSON for a quick run or an AI agent call, e.g. [{\"query\": \"best CRM for startups\", \"assistant\": \"chatgpt\", \"text\": \"...\", \"sources\": [{\"url\": \"https://...\", \"title\": \"...\"}]}], or raw scraper rows."
          },
          "defaultAssistant": {
            "title": "Assistant for unlabelled rows",
            "enum": [
              "auto",
              "chatgpt",
              "perplexity",
              "google_ai_overview",
              "google_ai_mode",
              "gemini",
              "claude",
              "copilot",
              "grok"
            ],
            "type": "string",
            "description": "Which assistant to credit when a row has no assistant column and its shape does not tell. The three Apify scrapers and the Nero Labs tools are detected automatically.",
            "default": "auto"
          },
          "queries": {
            "title": "Questions (no rows? ask them now)",
            "type": "array",
            "description": "Optional. Up to 50 questions buyers ask, e.g. 'best CRM for startups'. They are asked live on Perplexity by nerolabs/perplexity-search-api on your account (its own price, about $0.02 to $0.025 an answer plus this Actor's $0.002), then analysed with any rows given above.",
            "items": {
              "type": "string"
            }
          },
          "queriesModel": {
            "title": "Perplexity model for questions",
            "enum": [
              "sonar",
              "sonar-pro"
            ],
            "type": "string",
            "description": "Used only with Questions.",
            "default": "sonar"
          },
          "country": {
            "title": "Country for questions",
            "type": "string",
            "description": "Optional two-letter country code for Questions, e.g. US or GB, so answers lean local."
          },
          "maxQuerySpendUsd": {
            "title": "Spending cap for questions (USD)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "The most the question run may charge your account. Apify requires at least $0.50.",
            "default": 2
          },
          "rootDomains": {
            "title": "Group subdomains",
            "type": "boolean",
            "description": "Count blog.hubspot.com and knowledge.hubspot.com as hubspot.com (www, m and amp are always folded). Turn off to see each subdomain separately.",
            "default": true
          },
          "ignoreDomains": {
            "title": "Ignore these sites",
            "type": "array",
            "description": "Sites to leave out of every count, e.g. your own other domains or google.com.",
            "items": {
              "type": "string"
            }
          },
          "minAnswers": {
            "title": "Only sites cited in at least (answers)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Leave out sites cited in fewer answers than this.",
            "default": 1
          },
          "maxDomains": {
            "title": "Most sites to write",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Cap on cited-site rows, best first.",
            "default": 5000
          },
          "outputRows": {
            "title": "Rows to write",
            "enum": [
              "domains",
              "gaps",
              "pages"
            ],
            "type": "string",
            "description": "What goes in the dataset. The gap list is always saved as GAPS and the summary as OUTPUT in the key-value store, whichever you pick.",
            "default": "domains"
          },
          "exportFormats": {
            "title": "Also save as a file",
            "type": "array",
            "description": "Also save the written rows as CSV or Excel in the key-value store (charged once per file).",
            "items": {
              "type": "string",
              "enum": [
                "csv",
                "xlsx"
              ],
              "enumTitles": [
                "CSV",
                "Excel (xlsx)"
              ]
            }
          },
          "maxItems": {
            "title": "Most answers to analyse",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on answers read per run (each is charged once). Empty = up to 100,000."
          },
          "watchName": {
            "title": "Remember runs under this name",
            "type": "string",
            "description": "Optional. Give the same name on every scheduled run (e.g. 'attio-weekly') and each run shows new sites, sites that dropped out and how your share and each rival's share changed since the last run. Stored on your own Apify account."
          },
          "resetWatch": {
            "title": "Start the memory again",
            "type": "boolean",
            "description": "Forget earlier runs under this name.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}