# Shortlist BYOK: AI Visibility with Your Own API Keys (`raiselabs/shortlist-byok`) Actor

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.

- **URL**: https://apify.com/raiselabs/shortlist-byok.md
- **Developed by:** [Burak Fenercioglu](https://apify.com/raiselabs) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 answer (your api key)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### AI visibility tracking with your own API keys

**Shortlist BYOK** asks ChatGPT, Claude, Gemini, Perplexity, Meta's Muse and Grok the questions your buyers ask, using **your own API keys**, and tells you whether your brand is on the AI's shortlist, who beats you, and which sources the AI trusts.

It's an **AI visibility tracker** for answer engine optimization (**AEO**), generative engine optimization (**GEO**) and LLM SEO: rank tracking for AI search, measured in the answers themselves. BYOK ("bring your own key") is built for **agencies, SEO teams and developers** who already pay for AI APIs and want to run AI brand monitoring at scale for **$0.03 per answer**.

**Add your keys, type your brand, click Start.**

- **Shortlist Score (0–100)** for each AI engine, with the formula published below
- **Competitor leaderboard**, plus the prompts where a competitor appears and you don't
- **Most-cited sources**, so you know where to earn coverage for generative search
- **Shortlist Map**: how AI positions each brand, with strengths and weaknesses
- **Week-over-week changes** when you track a brand or client on a schedule
- **Use any keys you have.** Two or three keys are fine. Shortlist asks only the engines you have keys for and never fails because one is missing.
- **Official APIs only.** No scraping of chat apps, so runs don't break.
- **Agent-ready.** Call it from Claude or any MCP client through Apify's MCP server.

#### Pricing

You pay your AI providers directly for the answers, at your own rates. We charge for the tracking, scoring and report:

| Event | What it covers | Price |
|---|---|---|
| **Answer** | One successful answer from any engine, on your key | **$0.03** |
| **Report** | Quick Start questions, Shortlist Map, lens reading and the HTML report, once per run | **$0.30** |
| **Suggest questions only** | The 20 questions and competitors, ready to edit | Free |
| **Re-score a past run** | Adds brands to saved answers, with no new engine calls | Free |

Example: 20 questions on 5 engines = 100 answers × $0.03 + $0.30 = **$3.30**, plus what your providers charge you. Failed answers (for example a rejected key) are never charged. If none of your keys returns an answer, there's no report and no report charge.

Don't want to manage keys? [Shortlist](https://apify.com/raiselabs/shortlist) includes the AI providers' costs in one price per question.

#### Your API keys

| Engine | Key field | Where to get one |
|---|---|---|
| Claude | `anthropicApiKey` | console.anthropic.com |
| ChatGPT | `openaiApiKey` | platform.openai.com |
| Gemini | `geminiApiKey` | aistudio.google.com |
| Perplexity | `perplexityApiKey` | perplexity.ai/settings/api |
| Muse (Meta AI) | `metaApiKey` | Meta's developer platform |
| Grok (and X Pulse) | `xaiApiKey` | console.x.ai |

**How your keys are handled**

- Every key field is an Apify **secret input**: it is stored encrypted and is hidden in the Console and the API.
- Shortlist uses each key only to ask that engine your questions. Keys are **never written** to the log, the dataset, any key-value store, the report or status messages, and provider error text is cleaned of anything that looks like a key.
- Answers are never shared between accounts: BYOK doesn't use a shared answer cache.
- Your Anthropic key, when you add one, also runs Quick Start (writing the questions) and the Shortlist Map. Without it, Shortlist runs those steps on its own key, included in the $0.30 report price. That key is never used to answer your questions.
- Tip: create a separate key per tool with a spending limit at the provider, and save your keys once in an Apify **Task** so scheduled runs reuse them.

#### Two ways to use it

| You want to know… | Enter | You get |
|---|---|---|
| **"Does AI recommend *my* brand (or my client's)?"** | `{ "brand": "Salesforce" }` (optionally with a market, e.g. `"category": "marketing automation for B2B"`) | Your Shortlist Score per engine, your rank against 4 rivals, the prompts where a rival wins, and the sources AI cites |
| **"Who does AI recommend in this market?"** | `{ "category": "CRM" }` and no brand | A leaderboard of the 8 brands AI recommends most in that market, per engine |

Shortlist writes **20 realistic buyer questions** for the market. In brand mode they never name you, so the test stays neutral. It then asks every engine you have a key for each question.

#### Report lenses

| Lens | Put in "Market to check" | You get |
|---|---|---|
| **Shortlist** (default) | a market, e.g. `CRM` | who AI recommends, in what order, with strengths and weaknesses |
| **Live quadrant** | a market | the Shortlist Map as the main view; with a `trackingId`, each run shows how every brand moved |
| **Live reviews** | a product category, e.g. `AI coding assistants` | a verdict, best-for, pros, cons and an AI rating (1–5) per product and engine |
| **AI forecast** | a question about a future event | the probability each engine's answers give each outcome, and how much the engines disagree |
| **AI self-preference** | a use case, e.g. `writing and debugging code` | whether each AI ranks its own maker's model higher than the other AIs do |

With your xAI key, every run that includes Grok also gets **X Pulse**: what people said on X about each brand this week.

#### What you get

- **Dataset:** one row per prompt × engine, with the full answer, whether you were mentioned, your rank, every brand mentioned and every cited source. The last row is the run summary, including an estimate of what your providers charged for the run.
- **`SUMMARY`** in the key-value store: scores per engine, the leaderboard, the most-cited domains, and the prompts where you're absent.
- **`REPORT`** in the key-value store: a one-page HTML report you can share with a client.

#### How the Shortlist Score works (v1)

1. **Each answer:** you score `1 ÷ your rank` among the tracked brands (1st = 1.0, 2nd = 0.5, 3rd = 0.33), or 0 if you're not mentioned. When the answer is a numbered list, rank is your list position. Otherwise it's the order in which brands are first mentioned.
2. **Each engine:** the average of its answers × 100.
3. **Overall:** the average of the engine scores, each weighted equally.

#### Track brands every week (agencies)

1. Save your input and keys as a **Task** per client and set `trackingId` (e.g. `pipedrive-us`).
2. Add an Apify **Schedule** for that Task (e.g. every Monday).
3. Each run compares itself with the previous run that used the same `trackingId`, and adds a chart-ready row to the `shortlist-byok-trends` dataset in your account.

#### Good to know

- **Fixed settings.** Each engine runs with web search on and the same models as Shortlist (Claude Opus 5.5, gpt-6-luna, gemini-4-hydrogen, Perplexity's default, muse-spark-1.3, grok-4.7), so results are comparable across runs and accounts. Your key needs access to these models.
- **A consistent, repeatable sample.** Answers come from each engine's official API. They can differ from what a given person sees in the consumer chat apps, which personalize answers.
- **Rate limits are yours.** Shortlist retries on rate limits, but a new key with a low limit may answer fewer questions. Failed answers aren't charged.
- **Keep personal data out of prompts.** Shortlist measures brands and products.

# Actor input Schema

## `mode` (type: `string`):

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` (type: `string`):

How Shortlist reads the answers. Every lens has the same price; it changes the questions it writes and the report you get.

## `brand` (type: `string`):

The brand to measure (e.g. "Salesforce"). Leave empty to see who AI recommends in the market instead.

## `category` (type: `string`):

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` (type: `string`):

Optional niche inside the market (e.g. "customer service productivity").

## `engines` (type: `array`):

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.

## `anthropicApiKey` (type: `string`):

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` (type: `string`):

platform.openai.com. Used for ChatGPT answers (Responses API with web search). Stored encrypted by Apify; never logged, saved or shown in results.

## `geminiApiKey` (type: `string`):

aistudio.google.com. Used for Gemini answers with Google Search grounding. Stored encrypted by Apify; never logged, saved or shown in results.

## `perplexityApiKey` (type: `string`):

perplexity.ai/settings/api. Used for Perplexity answers (Agent API). Stored encrypted by Apify; never logged, saved or shown in results.

## `metaApiKey` (type: `string`):

Used for Muse (Meta AI) answers. Stored encrypted by Apify; never logged, saved or shown in results.

## `xaiApiKey` (type: `string`):

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` (type: `array`):

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".

## `competitors` (type: `array`):

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).

## `outcomes` (type: `array`):

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.

## `prompts` (type: `array`):

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.

## `promptCount` (type: `integer`):

Only used when you leave Buyer prompts empty.

## `brandAliases` (type: `array`):

Other spellings that count as a mention (e.g. "Pipedrive CRM").

## `brandDomains` (type: `array`):

Your websites (e.g. "pipedrive.com"). Used to spot links to you and citations of your own pages.

## `trackingId` (type: `string`):

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` (type: `integer`):

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).

## `country` (type: `string`):

Two-letter country code passed to engines that support location (e.g. US, GB, DE).

## `language` (type: `string`):

Language for written prompts (e.g. en, de, fr).

## `rescoreDatasetId` (type: `string`):

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.

## Actor input object example

```json
{
  "mode": "full",
  "lens": "shortlist",
  "brand": "Pipedrive",
  "engines": [
    "claude",
    "openai",
    "gemini",
    "perplexity",
    "muse",
    "grok"
  ],
  "promptCount": 20,
  "repeats": 1,
  "country": "US",
  "language": "en"
}
```

# Actor output Schema

## `report` (type: `string`):

One-page Shortlist report with the Shortlist Map.

## `summary` (type: `string`):

Scores, leaderboard, map and insights.

## `answers` (type: `string`):

One row per prompt and engine. Export as JSON, CSV or Excel from the dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "full",
    "brand": "Pipedrive"
};

// Run the Actor and wait for it to finish
const run = await client.actor("raiselabs/shortlist-byok").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "full",
    "brand": "Pipedrive",
}

# Run the Actor and wait for it to finish
run = client.actor("raiselabs/shortlist-byok").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "full",
  "brand": "Pipedrive"
}' |
apify call raiselabs/shortlist-byok --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,raiselabs/shortlist-byok"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RP5Y3UGr0tCuAxd7H/builds/nmk3omFKMgbwqSir0/openapi.json
