Rewrite a section to cover what is missing
https://seolyticize.com /api/v1/tools/rewrite_section Rewrites (mode rewrite) or extends (mode extend) one section of a page so it covers the terms, entities and questions the content score finds missing, keeping the section's own voice and the client's. Give missingTerms and questions yourself, or the whole draft (draft as Markdown, or url) to have them taken from a fresh score_content run. Returns the new Markdown and which asked-for terms it now uses and still misses, as we count them. Answers 'work these terms into this section'. A paid Claude call; scoring a draft also costs what score_content does.
Parameters
Idempotency-KeystringheaderRequest body
application/json
clientIdstringrequiredkeywordstringrequiredsectionstringrequiredmodestringmissingTermsstring[]questionsstring[]draftstringurlstringinstructionsstringlocationCodeintegerlanguageCodestringmaxCostMicrosintegerdryRunboolean{
"clientId": "string",
"keyword": "string",
"section": "string",
"mode": "rewrite",
"missingTerms": [
"string"
],
"questions": [
"string"
],
"draft": "string",
"url": "string",
"instructions": "string",
"locationCode": null,
"languageCode": null,
"maxCostMicros": 0,
"dryRun": true
}Code samples
cURL
curl -X POST "https://seolyticize.com/api/v1/tools/rewrite_section" \
-H "Authorization: Bearer $SEOLYTICIZE_API_KEY" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"clientId":"string","keyword":"string","section":"string","mode":"rewrite","missingTerms":["string"],"questions":["string"],"draft":"string","url":"string","instructions":"string","locationCode":null,"languageCode":null,"maxCostMicros":0,"dryRun":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
data, and its meta.Example
{
"data": {},
"meta": {
"requestId": "string",
"costMicros": 0,
"cached": true,
"cachedFrom": "string",
"dataAsOf": "string",
"sources": [
"string"
],
"partial": true,
"next": [
{
"tool": "string",
"args": {},
"why": "string"
}
],
"nextCursor": "string",
"dryRun": true
}
}Schema
datarequiredmetaobjectrequiredShow child parameters
requestIdstringrequiredcostMicrosintegerrequiredcachedbooleanrequiredcachedFromstringdataAsOfstringsourcesstring[]partialbooleanrequirednextobject[]requiredShow child parameters
toolstringargsobjectwhystringnextCursorstringdryRunbooleanX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerX-Request-IdstringExample
{
"error": "string",
"code": "string",
"next": "string",
"requestId": "string"
}Schema
errorstringrequiredcodestringnextstringrequestIdstringX-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/rewrite_section
WWW-AuthenticatestringSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-ResetintegerRetry-AfterintegerSame as 400 · POST /api/v1/tools/rewrite_section
X-RateLimit-LimitintegerX-RateLimit-RemainingintegerX-RateLimit-Resetinteger