Black SEO Analyzer

v26.11.18
io.github.sethblack/bseoa Checked 31 minutes ago Published 13 days ago

Technical SEO audits: check a page or crawl a whole site, locally or hosted.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

account_status

Report this account's plan and usage live: whether hosted audits are active, the page budget used and remaining in the rolling 30 days and when it resets, how long crawl sessions are kept, and the licenses on the account. Call it when a tool returned trial_expired, no_hosted_addon or quota_exceeded, when the user says their plan has changed, or when they ask what their plan includes. Read-only: it never changes the account.

check_page

Audit one URL immediately and return its SEO issues (schema bseoa.issue/v1: key, category, severity, message, fix_hint, docs_url). This is the fast path and the right first call for "what is wrong with this page?" - it fetches a single page and never follows links. Prefer it over start_crawl whenever the user asked about one specific page rather than a whole site, and that includes a site's homepage or bare domain ("check https://example.com/ for SEO problems") when the user did not ask for a crawl, a site audit or a number of pages. Does not count against the account's page budget; limited to…

ParameterTypeDescription
url *stringAbsolute URL of the page to audit, including the scheme (https://...).
spabooleanRender JavaScript with a headless browser before auditing. Slower; only needed for single-page apps whose content is not in the served HTML.

compare_crawls

Compare two crawls of the same site and report which issues are new in the later crawl, which were fixed, and how many persist. Use it to answer "did my changes help?" or "what regressed since the last deploy?", and to gate a release: only the new_issues list represents a regression, so a pre-existing backlog never counts against a change. Get both session ids from list_crawls; base_session is the earlier crawl.

ParameterTypeDescription
base_session *stringSession id of the earlier ("before") crawl.
compare_session *stringSession id of the later ("after") crawl.

crawl_status

Report the progress of a crawl started by start_crawl: state ("queued", "running", "finished" or "failed"), the crawl session_id to read results from, the pages stored so far, and the error text if it failed. Poll every few seconds; a queued crawl starts as soon as the worker is free. Do not call issues_summary or query_issues for that crawl until state is "finished", or you will read a partial result.

ParameterTypeDescription
job_id *stringThe job id returned by start_crawl.

issues_summary

Summarize a crawl: total issue count, counts by severity and by category, and every distinct issue key with how many pages it affects plus up to five example URLs. Always call this before query_issues - it is small, it tells you which keys are worth drilling into, and it is what you should base a prioritized fix plan on. Omit session_id to summarize the account's most recent crawl.

ParameterTypeDescription
session_idstring | nullCrawl session id from list_crawls. Omit to use the most recent crawl in the database.

list_crawls

List the crawl sessions stored for this account, newest last, with their session_id, start URL, start and end times, and page count. Single-page checks made with check_page are not crawls and are not listed. Call this first when the user refers to "the last crawl" or when you need a session_id for issues_summary, query_issues, page_report or compare_crawls. A session with no end time is still running or was interrupted.

page_report

Report everything recorded about one crawled URL: status code, redirect target, title and meta description, Open Graph tags, word count, link and asset counts, headings, TTFB, Web Vitals score, and the full issue list for that page. Use it after query_issues or issues_summary when you need the context behind a specific page's issues. It never returns the page's HTML source; to inspect markup, fetch the URL yourself.

ParameterTypeDescription
url *stringThe exact page URL as it appears in the crawl, including the scheme.
session_idstring | nullCrawl session id from list_crawls. Omit to use the most recent crawl.

query_issues

List individual issues from a crawl, filtered by severity, issue key, category or URL prefix, as bseoa.issue/v1 records with the affected URL, the localized message, a fix hint and a docs link. Returns at most 100 issues per call: when the response has a non-null next_offset there are more, so call again with offset set to that value. Narrow with min_severity or key from issues_summary rather than paging through everything.

ParameterTypeDescription
categorystring | nullOnly return issues in this category, e.g. "metadata", "links", "images".
keystring | nullOnly return issues with this exact key, e.g. "metadata.missing_meta_description". Get keys from issues_summary.
limitinteger | nullHow many issues to return. Capped at 100 per call.
min_severitystring | nullOnly return issues at this severity or above: "low", "medium", "high", or "critical".
offsetinteger | nullZero-based index of the first issue to return. Pass the `next_offset` from the previous response to page through a large result set.
session_idstring | nullCrawl session id from list_crawls. Omit to use the most recent crawl.
url_prefixstring | nullOnly return issues for URLs starting with this prefix, e.g. "https://example.com/blog/".

search_docs

Search Black SEO Analyzer's own documentation and return the matching sections with their URLs. Use it for questions about bseoa itself: what a tool, command, flag or setting does, crawl limits and the page budget, licenses and the hosted plan, installing or configuring the CLI, GUI or connector, or what an issue key means (pass issue_key for that issue's reference page with its fix). Pass query for a question, issue_key for one issue, or neither to list the documentation pages. Works whatever the account's hosted status; does not count against the page budget; limited to 30 calls a minute.

ParameterTypeDescription
issue_keystring | nullAn issue key exactly as an issue reports it, for example metadata.missing_meta_description: returns that issue's reference page with its fix. Takes precedence over query.
max_resultsinteger | nullHow many sections to return for a query: 5 by default, at most 10.
querystring | nullThe user's question or a few keywords, for example "does hosted render JavaScript", "max pages", "what does the hosted plan include". Leave it out to list the documentation pages.

serp_preview

Fetch each URL and report how its title and meta description will look in a search result: character length, pixel width, whether the engine will truncate it, and the Open Graph and Twitter Card fallbacks. Use it when the user asks how a page "looks in Google" or is rewriting titles and descriptions - it is about the snippet, not the page's other SEO problems, which check_page covers. At most 50 URLs per call; does not count against the page budget; limited to 30 calls a minute.

ParameterTypeDescription
urls *arrayAbsolute URLs to preview. At most 50 per call.
enginestring | nullSearch engine whose truncation rules to apply: "google" (default) or "bing".

start_crawl

Queue a crawl of a whole site and return a job_id immediately; a worker runs the crawl and the pages count against the account's rolling 30-day page budget. Use it only when the user asks to crawl or audit a site, or names a number of pages; a request to check a single URL, even a homepage, is check_page, and never start a crawl alongside check_page unasked. Pass the max_pages the user named. One crawl per account runs at a time. Poll crawl_status with the job_id until state is "finished", then read the results with issues_summary and query_issues. max_pages defaults to 500 and is capped at 20…

ParameterTypeDescription
url *stringAbsolute URL to start crawling from, including the scheme.
audit_profilestring | nullWhich analyzers to run: "full" (default), "standard", "core", "critical", or "quick". Use "quick" or "critical" when the user wants a fast answer rather than a complete audit.
max_pagesinteger | nullMaximum number of pages to fetch. Defaults to 500. Raise it only when the user has asked for a full-site audit and accepts a longer run.
spabooleanRender JavaScript with a headless browser. Much slower; use only for single-page apps.