# SEO and AI search

Pagebee checks the pages of your website the way search engines and AI assistants read them, tells you what to fix first and how, and counts the visitors they send you. Each website has an SEO tab, and your agent can run the same checks over MCP.

## Running an audit

Open a website, then **SEO**. Type a path on the site's domain (or leave it as `/` for the home page) and choose **Run audit**. In a few seconds Pagebee:

1. Fetches the page as a crawler that runs no JavaScript would, following up to five redirects.
2. Reads the site's `robots.txt`, its sitemap (from robots.txt, `/sitemap.xml` or `/sitemap_index.xml`) and `/llms.txt`.
3. Runs 30 checks and scores the page out of 100, overall and for search, AI answers and sharing.

A site can audit pages on its own domain, its `www` and its production hostname rules, up to 30 times an hour. The latest 50 audits are kept, so you can reopen an earlier one and see the score change after a fix. Audits don't count as events.

To check a site that isn't in Pagebee, use the [free checker](/tools/seo-checker). It runs the same checks and keeps nothing.

## The checks

**Search:** the page loads with a 200, HTTPS, redirect chains, noindex in the page or the `X-Robots-Tag` header, whether `robots.txt` lets Googlebot in, the title, meta description, canonical, one H1, heading order, the `lang` attribute, the mobile viewport, image alt text, link text, how fast the HTML arrives, `robots.txt` itself and the sitemap.

**AI answers:** whether the text is in the HTML or drawn by JavaScript, whether the AI search crawlers may read the page, which training crawlers you block, JSON-LD structured data, an Organization or Person with `sameAs` links, question headings, lists, tables and FAQs, how much the page says, a published or updated date, a named author or publisher, and `llms.txt`.

**Sharing:** Open Graph title, description and image, the X card, and the site icon.

Each check is weighed by impact (high 3, medium 2, low 1). A pass earns its weight, a warning half, a failure nothing. Notes, like the training crawlers you block, don't count.

### AI crawlers

Two kinds of AI crawler read your site, and the audit treats them differently.

| Answer crawlers (blocking them fails the check) | Training crawlers (listed as a note) |
| --- | --- |
| `OAI-SearchBot`, `ChatGPT-User` (ChatGPT) | `GPTBot` (OpenAI) |
| `Claude-SearchBot`, `Claude-User` (Claude) | `ClaudeBot` (Anthropic) |
| `PerplexityBot`, `Perplexity-User` (Perplexity) | `Google-Extended` (Gemini) |
| `Bingbot` (Bing, which ChatGPT search and Copilot draw on) | `Applebot-Extended` (Apple) |
| `DuckAssistBot` (DuckDuckGo) | `CCBot` (Common Crawl), `Meta-ExternalAgent` |

Answer crawlers fetch a page to answer someone's question and link back to it. Training crawlers collect pages to train models; blocking them is your choice and doesn't remove you from AI search. Pagebee reads `robots.txt` as crawlers do: a crawler obeys its own group, or `*` when none names it, and the longest matching rule wins.

## Fixing with your agent

Open any check to see why it matters and how to fix it. **Copy for your agent** copies a prompt for that fix; **Copy all fixes for your agent** copies every open one, most urgent first. Paste it into Claude Code, Cursor or any coding agent working in the site's repo.

Over MCP, any key or sign-in (read, support or dev) has two tools:

| Tool | What it does |
| --- | --- |
| `audit_seo` | Audits a page (`page` is a path or a URL on the site's domain; the home page by default). Returns the scores, `to_fix` most urgent first with what was found and how to fix it, and the titles of the passing checks |
| `get_seo_audits` | The latest audit in full and the scores of earlier ones, newest first |

A typical loop: "Why aren't we showing up in ChatGPT? Fix what you can." The agent runs `audit_seo`, changes `robots.txt`, the head tags and the structured data, deploys, and runs `audit_seo` again.

## Visitors from search and AI

Beside the checklist, the SEO tab shows the visitors search engines and AI assistants sent in the dashboard's period, their share of all visitors, which assistants sent them (ChatGPT, Claude, Perplexity, Gemini, Copilot and others) and the pages they landed on. These are your ordinary cookieless numbers, filtered to the `Organic search` and `AI assistants` channels. Your agent can ask the same with `get_top`:

```json
{ "site_id": "…", "dimension": "referrer", "filters": [{ "dimension": "channel", "op": "is", "value": "AI assistants" }] }
```

## The free checker's API

The checker on pagebee.ai calls a public endpoint you can call too. No key; limited to 5 checks a minute and 30 an hour per network.

```bash
curl https://api.pagebee.ai/v1/seo/check \
  -H "Content-Type: application/json" \
  -d '{"url": "example.com/pricing"}'
```

It answers with `scores`, `checks` (each with `id`, `category`, `status` of `pass`, `warn`, `fail` or `info`, `priority`, `effort`, `summary`, `why`, `fix` and sometimes `found`), `final_url`, `status_code` and `fetch_ms`.

## Limits

- The audit reads the HTML the server sends. Content added by JavaScript after load isn't seen, on purpose: AI crawlers don't see it either.
- Speed is the time for the HTML to reach Pagebee's server in Europe, not a full page load in a browser.
- It doesn't track keyword rankings, backlinks, or how often AI answers mention you.
- Only public pages can be checked. Addresses that resolve to private networks are refused.
