Enforce Minimum Word Count
Prevent thin content by requiring a minimum number of words per page.
The Problem
Thin content is the #1 killer of pSEO programs. Google’s site-wide quality signals mean a batch of 200-word stub pages can drag down your entire domain. This assertion catches pages that fall below your content threshold before they ship.
The Hard Way
Fetch each page, strip HTML tags, count words. Simple in theory, but doing it at deployment speed across 500+ URLs requires infrastructure you shouldn’t have to maintain.
The SEODiff Way
One API call. Results in under 2 seconds.
POST https://seodiff.io/api/v1/agent/evaluate
{"urls": ["https://example.com/guide/topic-1"], "assertions": [{"rule": "min_word_count", "value": 500}]}| Parameter | Type | Example |
|---|---|---|
value | integer | 500 |
Code Examples
Copy-paste examples in your preferred language:
cURL
See the full evaluation example in cURL →
Python
See the full evaluation example in Python →
Node.js
See the full evaluation example in Node.js →
Go
See the full evaluation example in Go →
PHP
See the full evaluation example in PHP →
Related Assertions
no_placeholders
Find template variables like {{city}} or [TBD] that leaked into production HTML.
max_token_bloat
Detect when boilerplate overwhelms useful content for LLM crawlers.
Use in CI/CD
Add this assertion to your deployment pipeline. Works with any CI platform:
🐙 GitHub Actions
Block bad deployments with automated SEO checks in your GitHub Actions CI/CD pipeline.
🦊 GitLab CI
Add automated SEO quality gates to your GitLab CI/CD pipelines.
▲ Vercel
Automatically validate SEO on every Vercel preview deployment before promoting to production.