{
  "openapi": "3.0.1",
  "info": {
    "title": "Shortlist BYOK: AI Visibility with Your Own API Keys",
    "description": "AEO and GEO AI visibility tracker with your own API keys: ask ChatGPT, Claude, Gemini, Perplexity, Muse and Grok your buyers' questions and get a 0-100 score, competitor ranking and cited sources. $0.03 per answer. For agencies and developers.",
    "version": "0.1",
    "x-build-id": "nmk3omFKMgbwqSir0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/raiselabs~shortlist-byok/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-raiselabs-shortlist-byok",
        "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/raiselabs~shortlist-byok/runs": {
      "post": {
        "operationId": "runs-sync-raiselabs-shortlist-byok",
        "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/raiselabs~shortlist-byok/run-sync": {
      "post": {
        "operationId": "run-sync-raiselabs-shortlist-byok",
        "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": {
          "mode": {
            "title": "What do you want?",
            "enum": [
              "full",
              "suggest",
              "rescore"
            ],
            "type": "string",
            "description": "Answers are asked with your own API keys, so your AI providers bill you for them directly. We charge $0.03 per successful answer and $0.30 per report."
          },
          "lens": {
            "title": "Report lens",
            "enum": [
              "shortlist",
              "quadrant",
              "reviews",
              "forecast",
              "selfpref"
            ],
            "type": "string",
            "description": "How Shortlist reads the answers. Every lens has the same price; it changes the questions it writes and the report you get.",
            "default": "shortlist"
          },
          "brand": {
            "title": "Your brand",
            "type": "string",
            "description": "The brand to measure (e.g. \"Salesforce\"). Leave empty to see who AI recommends in the market instead."
          },
          "category": {
            "title": "Market to check",
            "type": "string",
            "description": "The market whose buyer questions we ask (e.g. \"CRM\"). Optional with a brand: we use your brand's main market. Required without a brand. For the AI forecast lens, put the forecast question here."
          },
          "subMarket": {
            "title": "Submarket",
            "type": "string",
            "description": "Optional niche inside the market (e.g. \"customer service productivity\")."
          },
          "engines": {
            "title": "AI engines",
            "type": "array",
            "description": "Shortlist asks only the engines you picked AND have a key for. Engines without a key are skipped, never failed. $0.03 per successful answer on any engine.",
            "items": {
              "type": "string",
              "enum": [
                "claude",
                "openai",
                "gemini",
                "perplexity",
                "muse",
                "grok"
              ],
              "enumTitles": [
                "Claude",
                "ChatGPT (OpenAI)",
                "Gemini",
                "Perplexity",
                "Muse (Meta AI)",
                "Grok (xAI)"
              ]
            },
            "default": [
              "claude",
              "openai",
              "gemini",
              "perplexity",
              "muse",
              "grok"
            ]
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (Claude)",
            "type": "string",
            "description": "console.anthropic.com. Used for Claude answers, and for Quick Start and the Shortlist Map when given. Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (ChatGPT)",
            "type": "string",
            "description": "platform.openai.com. Used for ChatGPT answers (Responses API with web search). Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key",
            "type": "string",
            "description": "aistudio.google.com. Used for Gemini answers with Google Search grounding. Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "perplexityApiKey": {
            "title": "Perplexity API key",
            "type": "string",
            "description": "perplexity.ai/settings/api. Used for Perplexity answers (Agent API). Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "metaApiKey": {
            "title": "Meta API key (Muse)",
            "type": "string",
            "description": "Used for Muse (Meta AI) answers. Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "xaiApiKey": {
            "title": "xAI API key (Grok)",
            "type": "string",
            "description": "console.x.ai. Used for Grok answers and X Pulse (what people said on X this week). Stored encrypted by Apify; never logged, saved or shown in results."
          },
          "extraBrands": {
            "title": "Also check these brands",
            "type": "array",
            "description": "Brands to score in addition to the ones Shortlist finds, e.g. a challenger that isn't in the top list. One per line, as \"Name\" or \"Name | domain.com\".",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "One per line, as \"Name\" or \"Name | domain.com\". Leave empty and Shortlist finds the 4 rivals that come up most (or the 8 leading brands when you only enter a market).",
            "items": {
              "type": "string"
            }
          },
          "outcomes": {
            "title": "Forecast outcomes",
            "type": "array",
            "description": "Only for the AI forecast lens. One outcome per line (e.g. candidates). Leave empty for a yes/no question, or to let Shortlist list the likely outcomes.",
            "items": {
              "type": "string"
            }
          },
          "prompts": {
            "title": "Buyer prompts",
            "type": "array",
            "description": "The questions buyers ask AI. Leave empty and Shortlist writes 20 for your brand, or use 'Suggest questions only' first to review and edit them.",
            "items": {
              "type": "string"
            }
          },
          "promptCount": {
            "title": "Number of prompts to write",
            "minimum": 3,
            "maximum": 100,
            "type": "integer",
            "description": "Only used when you leave Buyer prompts empty.",
            "default": 20
          },
          "brandAliases": {
            "title": "Other names for your brand",
            "type": "array",
            "description": "Other spellings that count as a mention (e.g. \"Pipedrive CRM\").",
            "items": {
              "type": "string"
            }
          },
          "brandDomains": {
            "title": "Your domains",
            "type": "array",
            "description": "Your websites (e.g. \"pipedrive.com\"). Used to spot links to you and citations of your own pages.",
            "items": {
              "type": "string"
            }
          },
          "trackingId": {
            "title": "Tracking ID",
            "type": "string",
            "description": "Set a stable ID (e.g. \"pipedrive-us\") to compare every run with the previous run that used it. Use it with a saved Task and a weekly Schedule."
          },
          "repeats": {
            "title": "Repeats per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "AI answers vary between calls. Ask each prompt more than once to measure how stable your visibility is. Each repeat counts as separate answers ($0.03 each, plus your provider cost).",
            "default": 1
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code passed to engines that support location (e.g. US, GB, DE).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for written prompts (e.g. en, de, fr).",
            "default": "en"
          },
          "rescoreDatasetId": {
            "title": "Re-score a past run (free): run or dataset ID",
            "type": "string",
            "description": "Paste the run ID or dataset ID of an earlier Shortlist run to score its saved answers again, for example with new brands in Also check these brands. No AI engine is asked and there's no charge."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}