{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Brand Visibility Tracker — Mentions & Citations",
    "description": "Measure brand mentions and official-domain citations in real AI answers, compare results over time and keep a transparent model/query-specific history.",
    "version": "1.1",
    "x-build-id": "I7mC5TzLNCZmtip9a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/travelmonitorlab~ai-brand-visibility-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-travelmonitorlab-ai-brand-visibility-tracker",
        "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/travelmonitorlab~ai-brand-visibility-tracker/runs": {
      "post": {
        "operationId": "runs-sync-travelmonitorlab-ai-brand-visibility-tracker",
        "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/travelmonitorlab~ai-brand-visibility-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-travelmonitorlab-ai-brand-visibility-tracker",
        "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": [
          "brand",
          "domain"
        ],
        "properties": {
          "brand": {
            "title": "Brand name",
            "type": "string",
            "description": "Exact brand or company name to find in the answer text.",
            "default": "Adaga solutions"
          },
          "domain": {
            "title": "Official domain",
            "type": "string",
            "description": "Official domain without protocol, for example adagasolutions.lu. Subdomains of this domain count as official citations.",
            "default": "adagasolutions.lu"
          },
          "queries": {
            "title": "Questions to ask",
            "maxItems": 10,
            "type": "array",
            "description": "One to ten prompts used for the visibility measurement. Keep the same prompts between runs for meaningful deltas.",
            "items": {
              "type": "string"
            },
            "default": [
              "What is Adaga solutions in Luxembourg?"
            ]
          },
          "model": {
            "title": "OpenRouter model (legacy single-model input)",
            "type": "string",
            "description": "Single model used when models is empty. Kept for backward compatibility. Choose a fixed model for comparable history; paid models require provider credits.",
            "default": "openrouter/free"
          },
          "models": {
            "title": "Models to compare",
            "maxItems": 3,
            "type": "array",
            "description": "Optional list of one to three OpenRouter models. Every query is sent to every model for each requested sample. When empty, the legacy model field is used. Maximum 30 answers per run.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "runsPerPrompt": {
            "title": "Samples per query and model",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Repeat every query/model pair one to three times to measure operational variability. The total queries × models × samples must not exceed 30 answers. Keep sample numbers stable for comparable history.",
            "default": 1
          },
          "competitors": {
            "title": "Competitors to compare",
            "maxItems": 5,
            "type": "array",
            "description": "Optional list of up to five competitors. Each item needs a name and may include a domain. Used for first-mention rank and share of voice in the measured answers.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Competitor name",
                  "description": "Exact competitor brand name to measure."
                },
                "domain": {
                  "type": "string",
                  "title": "Competitor domain",
                  "description": "Optional official competitor domain used for citation matching."
                }
              },
              "required": [
                "name"
              ]
            },
            "default": []
          },
          "apiKey": {
            "title": "OpenRouter API key",
            "type": "string",
            "description": "Secret key required only for real measurements. Never printed or stored in the dataset. Leave empty only when dryRun is true."
          },
          "maxTokens": {
            "title": "Maximum answer tokens",
            "minimum": 200,
            "maximum": 4000,
            "type": "integer",
            "description": "Upper bound per answer. Reasoning models may need at least 1,000 tokens to produce a final answer.",
            "default": 1500
          },
          "dryRun": {
            "title": "Technical dry run",
            "type": "boolean",
            "description": "Return a clearly marked technical sample without calling an AI provider or charging events. This is not a visibility result.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}