10. Links API | SEO Forge - Rank Higher with AI-Powered SEO
Download Log in

10. Links API

Developer Guide

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/42
Response (200 OK):
json
[
    {
        "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/42
Response (200 OK):
json
{
    "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/42
Response (200 OK):
json
[
    {
        "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.

Forge AI Assistant Online

Hi! I'm the SEO Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs