# SEO Quick Validator API

> SEO Quick Validator inspects live web pages for on-page SEO errors and tag issues. Pass any URL to inspect title lengths, meta descriptions, H1 headings, viewport and canonical tags, image alt text, and unverified external links.

**Endpoint:** `POST https://api.apiverve.com/v1/seovalidator`  
**Category:** Data Validation  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/seovalidator

## Overview

An SEO validator API for an on-page SEO check of any live URL. It fetches and parses the web page, then evaluates its on-page SEO signals — title, meta description, H1 structure, canonical link, mobile viewport, image alt text and external-link rel attributes — and returns a plain list of issues to fix alongside a structured breakdown of every check.

The Free plan returns the issue list, an issue count, a passed flag and the checks object: title and meta description lengths, H1 count, whether canonical and viewport tags exist, image and link totals, and how many images are missing alt text. That is enough to check meta tags in a CMS publish hook, audit webpage SEO across a sitemap, or fail a deploy that ships a page without a title.

Paid plans add a weighted 0-100 score with an A–F grade, so you can gauge a page's SEO health at a glance and track it over time. They also add two relevance scores, computed with a sentence-embedding model, showing how closely the title and the meta description match what the page's main content is about.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/seovalidator" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://apiverve.com"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the web page to validate the SEO metrics of. url |

## Response fields

- `url` — string · The validated URL that was analyzed for SEO issues
- `passed` — boolean · Whether the URL passed all SEO validation checks
- `issueCount` — number · Total number of SEO issues found on the page
- `issues` — array · Array of SEO issues found (missing alt tags, missing meta tags, multiple H1s, etc.)
- `checks` — object · Structured per-rule breakdown of the on-page SEO signals behind the issue list, exposed as booleans, counts and lengths
  - `checks.hasTitle` — boolean · Whether the page has a non-empty <title> tag in the head
  - `checks.titleLength` — number · Character length of the title (null when absent); ~50-60 characters is the common recommendation
  - `checks.hasMetaDescription` — boolean · Whether the page has a meta description tag
  - `checks.metaDescriptionLength` — number · Character length of the meta description (null when absent); ~150-160 characters is the common recommendation
  - `checks.hasMetaKeywords` — boolean · Whether a meta keywords tag is present (largely deprecated for ranking)
  - `checks.h1Count` — number · Number of H1 tags on the page; exactly one is recommended
  - `checks.hasCanonical` — boolean · Whether the page declares a canonical link tag
  - `checks.hasViewport` — boolean · Whether the page declares a mobile viewport meta tag
  - `checks.imagesTotal` — number · Total number of <img> elements on the page
  - `checks.imagesMissingAlt` — number · Number of images with no alt attribute at all (alt="" is a valid decorative marker and is not counted)
  - `checks.externalLinksTotal` — number · Total number of external (http/https) links on the page. Links to the page's own domain and its subdomains (help.example.com from www.example.com) count as internal
  - `checks.externalLinksMissingRel` — number · Number of external links missing a rel attribute (subdomains of the page's own domain are internal and not counted)
- `seoScore` — number · Composite 0-100 on-page SEO health score, weighted by real ranking impact (title, meta description and H1 weigh most; image-alt and link-rel penalties scale with the proportion of elements affected). Higher is better · (premium)
- `grade` — string · Letter grade derived from the score: A (90+), B (80+), C (70+), D (60+) or F · (premium)
- `titleRelevance` — number · How closely the title tag matches what the page's main content is about, from 0 to 100, scored by a sentence-embedding model. Above about 50 is on-topic; a low score means the title promises something the page does not cover. Null if the page has no title, too little text to judge, or the model was unavailable · (premium)
- `descriptionRelevance` — number · How closely the meta description matches what the page's main content is about, from 0 to 100, scored the same way as titleRelevance. Null if the page has no meta description, too little text to judge, or the model was unavailable · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://apiverve.com",
    "passed": false,
    "issueCount": 6,
    "issues": [
      "Image missing 'alt' attribute: '/assets/img/hero-diagram.png'",
      "Image missing 'alt' attribute: '/assets/img/logo-mark.svg'",
      "External link missing 'rel' attribute: 'https://twitter.com/apiverve'",
      "External link missing 'rel' attribute: 'https://github.com/apiverve'",
      "External link missing 'rel' attribute: 'https://status.apiverve.com'",
      "Missing meta 'keywords' tag in head"
    ],
    "checks": {
      "hasTitle": true,
      "titleLength": 54,
      "hasMetaDescription": true,
      "metaDescriptionLength": 158,
      "hasMetaKeywords": false,
      "h1Count": 1,
      "hasCanonical": true,
      "hasViewport": true,
      "imagesTotal": 8,
      "imagesMissingAlt": 2,
      "externalLinksTotal": 10,
      "externalLinksMissingRel": 3
    },
    "seoScore": 93,
    "grade": "A",
    "titleRelevance": 47.91,
    "descriptionRelevance": 51.65
  }
}
```

## Use cases

- **CMS Publishing Check** — Before publishing a blog post, CMS editors verify that title tags, meta descriptions, and image alt text meet basic standards.
- **Staging Site Audits** — When deploying a site update, QA engineers test generated landing pages to catch missing canonical tags and duplicate H1 headings.
- **Agency Client Onboarding** — Marketing agencies inspect client websites to list total issue counts and flag external links lacking security rel attributes.
- **Ecommerce Catalog Monitoring** — To keep product catalogs discoverable, ecommerce platforms scan merchant pages to detect missing image descriptions and absent viewport configurations.

## SDKs

- **npm** — `npm install @apiverve/seovalidator` (https://www.npmjs.com/package/@apiverve/seovalidator)
- **PyPI** — `pip install apiverve-seovalidator` (https://pypi.org/project/apiverve-seovalidator/)
- **NuGet** — `dotnet add package APIVerve.API.SEOValidator` (https://www.nuget.org/packages/APIVerve.API.SEOValidator)
- **Source** — https://github.com/apiverve/seovalidator-api

## More

- Full reference: https://docs.apiverve.com/ref/seovalidator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
