Skip to content

Run your first SEO audit

View as Markdown

Start with one URL you want to inspect. Sonjoo checks the fetched page and reports findings, supporting evidence, and which rules it could measure. Install Sonjoo before following either path below.

  1. Start sonjoo serve --no-open and open http://127.0.0.1:7360/.
  2. Enter the target URL and clear Crawl linked pages for a single-page audit. To audit a fixed set of pages, select URL list and paste URLs or import a CSV.
  3. Select Run audit. Open Fix queue to see what to address first and Rule coverage to see what Sonjoo measured.

Replace the example URL with a page you want to audit. This command writes a JSON export and keeps the run out of saved audit history. Check the exit code reference if your shell reports a failure.

Terminal window
sonjoo audit https://example.com/ --no-save --format json --output audit.json

To reproduce a known failure, run the fixture from a Sonjoo repository checkout in a separate terminal. It uses Python 3 and listens on loopback.

Terminal window
python3 tests/fixtures/sites.py --port 18765

In an empty working directory, run this title-only audit. Its score threshold is zero so you can inspect the finding independently of the gate.

Terminal window
target="${SONJOO_DOCS_TARGET:-http://127.0.0.1:18765}"
cat > title-only.toml <<'TOML'
[rules]
enable = ["core-title-present"]
TOML
sonjoo audit "$target/healthy?remove-title=1" --config title-only.toml --no-save \
--fail-under 0 --format json --output audit.json

Under categoryResults[].results[], find ruleId: "core-title-present". The row has status: "fail", details.found: false, and a details.pageUrl that ends with /healthy?remove-title=1. The fixture intentionally serves the page without a <title> element. The rule appears in reportSummary.fixQueue with one affected URL.

Continue to Read findings and coverage to see how to interpret more complex reports.