# SeoFix for AI agents

SeoFix gives you (the agent) what Google sees about a website: a technical SEO audit, what people
type into Google in any country and language, and which of those searches have no page on the site.
No API key is needed during the preview. Be polite: max ~10 audits per 10 minutes per client.

Base URL: https://seofix.app

## 1. Audit a site

POST https://seofix.app/api/v1/audit
Content-Type: application/json

{ "url": "example.com", "seeds": ["what the site sells", "in the customers' words"] }

- `url` (required): the site's homepage. Scheme optional.
- `seeds` (optional, max 8): short phrases describing what the business sells, in the site's language.
  READ THE SITE FIRST and pass good seeds: they decide which Google searches are checked.
  Without seeds SeoFix guesses from the page title, which is much weaker.

Returns JSON: `score` (0–100), `checks[]` (id, status pass|warn|fail, variant, data),
`pages` (URLs in sitemap), `searches` ({ seed, hl, gl, items[{ query, covered }] }).
`covered: false` = no page on the site seems to answer that search: candidates for new pages.

Example:
curl -X POST https://seofix.app/api/v1/audit -H "content-type: application/json" -d '{"url":"example.com","seeds":["coffee subscription"]}'

## 2. Keywords in any market

POST https://seofix.app/api/v1/keywords
{ "seeds": ["emergency plumber"], "gl": "US", "hl": "en" }

- `gl`: country (ISO 3166-1 alpha-2, e.g. DE, PL, JP). `hl`: language (e.g. de, pl, ja).
Returns real Google autocomplete suggestions per seed, two levels deep.

## 3. Suggested workflow

1. Read the user's site. Write 3–6 seeds: what they sell, in their customers' words and language.
2. POST /api/v1/audit with those seeds.
3. Fix every check with status "fail", then "warn" (each has an id; explain fixes in plain words).
4. For searches with `covered: false`, propose one page per search: title, URL slug, H1, a 2-sentence
   answer and an outline. Ask the user before publishing anything.

## Errors

Errors return { "error": code, "params": {...} } with HTTP 4xx/5xx. Codes: invalid_url, not_public,
timeout, unreachable, blocked, http_error, rate_limited, missing_url, missing_seeds, server.

MCP server: coming soon.
