Which indexes are green, amber or red, and what to do today.
Optimises for the index, not the interface. For every index of the project (the global ones — Google, Bing, Brave, Perplexity, xAI, Apple, Meta — and the regional ones the markets in indexgap.json or --market give a share: Yandex, Naver, Seznam, Staan, Baidu) it checks four facts: a console export in the run (--indexed, or the markets block of a --doctor JSON), the index's main bot allowed by robots.txt, the bot in the logs (--logs, the ai_crawlers section of --doctor, or --visits: a JSON list of rows {date, bot, index, url, status}, or an object with them in rows, as indexgap crawlers --import-format writes it), and measured answers (--cite). Green when every applicable fact is there, red when none is or the bot is blocked in robots.txt or by the CDN (bot_probe and bot-blocked-cdn from the doctor JSON), amber in between; each index that is not green gets one action for today. Findings index-uncovered and no-measure. --portfolio prints the table for every project of a portfolio JSON, whose projects take the fields markets, indexed, doctor, cite, visits and logs; indexgap portfolio shows the same as an "indexes green/total" column. The interface → index registry is indexgap/data/engines_map.json. --json prints data, --strict fails on a red index. No network.
usage: indexgap engines [-h] [--config CONFIG] [--portfolio portfolio.json]
[--market RU,KZ] [--site SITE] [--robots ROBOTS]
[--indexed engine=file.csv]
[--doctor indexgap-doctor.json] [--logs access.log]
[--visits crawler-visits.json]
[--cite indexgap-cite.json] [--json] [--strict]
options:
-h, --help show this help message and exit
--config CONFIG path to indexgap.json; by default looked up in the
current directory
--portfolio portfolio.json
portfolio JSON: a table for each project
--market RU,KZ markets: country codes or groups (ARAB, GCC), comma-
separated, may be repeated; by default "markets" from
indexgap.json
--site SITE the full site address; taken from indexgap.json by
default
--robots ROBOTS the site's robots.txt; by default looked up next to
the pages
--indexed engine=file.csv
a console export, as for doctor; repeat for several
consoles
--doctor indexgap-doctor.json
doctor JSON: connected consoles, AI bots from logs,
--probe-bots and bot-blocked-cdn
--logs access.log server access log, as for doctor --logs
--visits crawler-visits.json
crawler visits JSON: rows {date, bot, index, url,
status}, for example from indexgap crawlers --import-
format
--cite indexgap-cite.json
an indexgap cite measurement: which interfaces are
measured
--json print the coverage as JSON
--strict non-zero exit code when any index is red — for CI