Endpoints for internal link suggestions and broken link checking.
GET /seoforge/v1/links/suggest/{post_id}
Get internal link suggestions based on keyword matching. PRO only.
bash
curl -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/seoforge/v1/links/suggest/42json
[
{
"id": 15,
"title": "WordPress Performance Optimization",
"url": "https://example.com/wordpress-performance/",
"type": "post",
"relevance": 35
},
{
"id": 28,
"title": "Best SEO Plugins for WordPress",
"url": "https://example.com/best-seo-plugins/",
"type": "post",
"relevance": 22
}
]POST /seoforge/v1/links/auto-insert/{post_id}
AI-powered automatic internal link insertion into post content. PRO only.
bash
curl -X POST -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/seoforge/v1/links/auto-insert/42json
{
"success": true,
"message": "Internal links inserted.",
"new_score": 82
}GET /seoforge/v1/links/broken/{post_id}
Check for broken links in a specific post. PRO only.
bash
curl -u "admin:ABCD 1234 EFGH 5678 IJKL 9012"
https://example.com/wp-json/seoforge/v1/links/broken/42json
[
{
"url": "https://example.com/deleted-page/",
"status": 404,
"anchor_text": "old reference link"
},
{
"url": "https://defunct-site.com/resource",
"status": 0,
"anchor_text": "external resource"
}
]A status of 0 means the request timed out or the domain could not be resolved.
—