Keywords
Content Scoring
Score any content for SEO quality, readability, and keyword optimization.
POST
$0.01/call/v1/seo/content/scoreUsage
const res = await fetch('https://api.yepapi.com/v1/seo/content/score', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://myblog.com/nextjs-guide',
keyword: 'nextjs tutorial',
}),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/content/score \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://myblog.com/nextjs-guide", "keyword": "nextjs tutorial"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
url | string | Yes | URL of the page to score | — |
keyword | string | Yes | Target keyword to optimize for | — |
Response
{
"ok": true,
"data": {
"overallScore": 72,
"readability": 85,
"keywordUsage": 65,
"headingStructure": 80,
"metaTitle": {
"score": 90,
"value": "Complete Next.js Tutorial for Beginners",
"length": 42
},
"metaDescription": {
"score": 60,
"value": "Learn Next.js...",
"length": 14
},
"wordCount": 2450,
"recommendations": [
"Add target keyword to meta description",
"Include more heading variations (H3, H4)",
"Add internal links to related content"
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.overallScore | number | Overall SEO content score (0-100) |
data.readability | number | Readability score (0-100) |
data.keywordUsage | number | Keyword usage and density score (0-100) |
data.headingStructure | number | Heading hierarchy and structure score (0-100) |
data.metaTitle | object | Meta title analysis |
data.metaTitle.score | number | Meta title optimization score (0-100) |
data.metaTitle.value | string | The actual meta title text |
data.metaTitle.length | number | Character length of the meta title |
data.metaDescription | object | Meta description analysis |
data.metaDescription.score | number | Meta description optimization score (0-100) |
data.metaDescription.value | string | The actual meta description text |
data.metaDescription.length | number | Character length of the meta description |
data.wordCount | number | Total word count of the page content |
data.recommendations | string[] | Actionable SEO improvement suggestions |