indexgap cite

command

Measure whether AI search cites and recommends you.

Asks Perplexity, the OpenAI Responses API, Gemini, Grok, Claude (Messages API web search), DeepSeek, Qwen, GLM, Doubao, Mistral, Alice AI (Yandex AI Studio) and Brave Answers (cited answers from the Brave Search index, BRAVE_ANSWERS_API_KEY) a set of real user questions and counts how often your domain comes back among the sources. The only command that needs API keys, and it sends nothing without an explicit flag. --provider brave records positions in the Brave Search top 20 (yours, the competitors' from brand.json, third-party pages, which --targets writes with source=brave); it is a search results page, not an AI answer, and is reported apart from citations. --brave-site shows how many pages Brave returns for site:. --import-answers reads answers collected elsewhere — a folder of pasted app answers (engine folders include gigachat, quark, reddit and the AI browser assistants comet, neon, dia, leo, genspark, fellou, aria, duckai and kagi), an open-geo run artifact or a canonry results export — and scores them against prompts.csv and brand.json: brands named, own citations, and the recommended and loss lists an agent fills in, kept on re-runs. API, app and browser answers are never merged. --facts checks prices and percentages in the answers against the site, --targets writes the third-party pages the answers cite. The report shows where AI takes its sources in your niche — video, forums, social, review sites, media, reference, government, competitors, your own site — counted only from the collected answers. --baseline compares with a previous measurement of the same prompt set and calls a change notable only when an exact Fisher test separates it from noise. --provider all asks every provider that has a key and names the skipped ones in one line; the result is one table across providers. Every answer and row in the cite JSON carries collected_via (api, app_paste or browser): pasted answers are app_paste unless the folder is named with browser (answers-browser/) or has a meta.json with collected_via; older JSON without the field is read as api for a measurement and app_paste for an import. --common-crawl checks the domain in the latest Common Crawl index (not-in-common-crawl).

Usage

usage: indexgap cite [-h] [--domain DOMAIN] [--site SITE] [--brand BRAND]
                     [--prompts PROMPTS] [--prompt PROMPT] [--dataset DATASET]
                     [--keyword KEYWORD] [--limit LIMIT]
                     [--provider {all,brave,brave-answers,claude,deepseek,doubao,gemini,glm,mistral,openai,perplexity,qwen,xai,yandex}]
                     [--runs RUNS] [--send] [--out OUT]
                     [--baseline old-cite.json] [--against new-cite.json]
                     [--import-answers answers/] [--facts] [--root ROOT]
                     [--targets targets.csv] [--brave-site example.com]
                     [--common-crawl [example.com]] [--fetch] [--online]

options:
  -h, --help            show this help message and exit
  --domain DOMAIN       the domain to look for in the sources
  --site SITE           the full site address; taken from indexgap.json by
                        default
  --brand BRAND         the brand name — looked for in the answer text
  --prompts PROMPTS     file of questions, one per line
  --prompt PROMPT       a question; repeatable
  --dataset DATASET     take the questions from the keyword set
  --keyword KEYWORD     the keyword column in the dataset
  --limit LIMIT         how many questions to take from the keyword set
  --provider {all,brave,brave-answers,claude,deepseek,doubao,gemini,glm,mistral,openai,perplexity,qwen,xai,yandex}
                        who to ask; by default everyone whose key was found.
                        all does the same and adds one line naming the
                        providers skipped for lack of a key. brave gives
                        positions in Brave Search results (BRAVE_API_KEY) and
                        is only used when named
  --runs RUNS           runs per question: the answer is not deterministic,
                        one is not enough
  --send                actually ask; without it this is a dry run
  --out OUT
  --baseline old-cite.json
                        a previous measurement: show what changed and which of
                        it is not noise
  --against new-cite.json
                        compare --baseline with an existing measurement,
                        sending nothing
  --import-answers answers/
                        score answers collected elsewhere: an
                        answers/<engine>/<id>.md folder (engine folders:
                        chatgpt, claude, gemini, perplexity, copilot, alice,
                        gigachat, deepseek, qwen, quark, reddit, comet, neon,
                        dia, leo and the others listed by `indexgap prompts
                        pack`), an open-geo v1 artifact, a canonry v1 export
                        or indexgap cite JSON; repeatable. Needs --prompts
                        prompts.csv and --brand
  --facts               check prices and percentages in the answers against
                        the site: --root with the build, --dataset, or --fetch
                        with --site
  --root ROOT           the site's build folder for --facts
  --targets targets.csv
                        write the pages the answers cite, without your own and
                        the competitors' sites; with --provider brave, the
                        third-party pages in the Brave top 20 (source=brave)
  --brave-site example.com
                        how many of the site's pages Brave shows for a site:
                        query (up to 10 requests; needs BRAVE_API_KEY and
                        --send)
  --common-crawl [example.com]
                        whether the domain is in the latest Common Crawl
                        index: two or three free requests to
                        index.commoncrawl.org, no key; the domain comes from
                        the value, --domain or indexgap.json
  --fetch               download the cited pages: for --targets, --facts and
                        the cited-not-named finding. Without it nothing
                        touches the network
  --online              turn on every network read of this command: --fetch.
                        Writes nothing to outside services — only --send does
                        that

The rest of the pipeline

← maps · ctr-gap →