Content Coverage API – Content Input


Price: 2 credits per request


Submit your content to the Content Coverage API before publishing to optimize it for SEO / AI search and identify key content improvements.

Query string parameters

Name Parameter Description
Key &key= Your private API key

JSON-encoded content (required)

Provide the content that you want to analyse in JSON format to the API. For more information see the code examples. Minimum content requirements for successful analysis, at least 1300 characters / ≈ 200 words. 

Response elements

 

Name Type Description
input_type string Either URL or Content
input_character_count integer Total number of input characters (including spaces)
potential_improvements integer Total number of discovered improvements
total_questions integer The total number of relevant fan-out queries
summary object Object with totals per status type
↴ covered integer Sum fully addressed queries
↴ partially_covered integer Sum partially addressed queries
↴ not_covered integer Sum content gaps
data object Object containing data for each query
↴ number integer Query number
↴ query string Fan-out query
↴ status string Status of the Fan-out query (Covered, Partially covered, Not covered)
↴ feedback string Actionable feedback to address potential content gaps
↴ status string Status of the Fan-out query (Covered, Partially covered, Not covered)
↴ class string Class corresponding with the query fan-out status

Status options

Name Description
data → status Covered
  Partially covered
  Not covered

Class options

Name Description
data → class positive
  couldhave
  negative

PHP code example

<?php                    

/*
    API documentation for SEO Review Tools.
    API info: https://www.seoreviewtools.com/seo-api/
    API documentation: https://api.seoreviewtools.com/documentation/
    LinkedIn: https://www.linkedin.com/company/seo-review-tools
*/


function curlFunction ($toolRequestUrl$content_input){
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL$toolRequestUrl);
    
curl_setopt($chCURLOPT_HEADER0);
    
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    
curl_setopt($chCURLOPT_POST1);
    
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse); 
    
curl_setopt($chCURLOPT_SSL_VERIFYHOST,false); 
    
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    
curl_setopt($ch,CURLOPT_POSTFIELDS$content_input);
    
$html curl_exec($ch);
    
$curlInfo curl_getinfo($ch);
    return(
$html);
}    


// Content to check
$content_input 
<h2>Check page headings, with the HTML Headings tool.</h2>
<p>Headings are used to structure the textual content of a web page and are an important on-page SEO factor. The most important heading is the H1 heading followed by the H2 and H3. There are six levels of headings available from H1 to H6.</p>
<p>The H1 heading should contain the main subject of a page. Use only one H1 on a web page.</p>
<blockquote>
<p><strong>TIP</strong>: now also available as <a class="btn btn-desult btn-bdr-black" href="https://api.seoreviewtools.com/documentation/content-apis/headings-api/">API end-point →</a></p>
</blockquote>
<img class="alignleft reviewed  size-thumbnail " src="https://www.seoreviewtools.com/wp-content/uploads/ann-smart.jpg" alt="Ann Smarty" /><img class="tlogo" src="https://www.seoreviewtools.com/wp-content/uploads/internet-marketing-ninjas.png" alt="internet marketing ninjas" />
<p>Ann Smarty featured this tool as part of her blog post: <a class="external" href="https://www.singlegrain.com/content-marketing-strategy-2/how-and-why-to-create-an-effective-content-structure-for-better-ranking/" target="_blank" rel="nofollow noopener noreferrer">How (and Why) to Create an Effective Content Structure for Better Ranking</a><br />“To quickly see your (or your competitor’s) on-page subheads, use this handy tool which extracts HTML headings from any web page. ...extract subheadings from any page and read through them to make sure they make sense even without the full context, flow well and provide a good outline of your on-page content.”</p>
<p><strong>Ann Smarty</strong> — Internet Marketing Ninjas</p>
<p><img class="aligncenter img-responsive" src="https://www.seoreviewtools.com/wp-content/uploads/ann-smarty-mention.png" alt="Ann Smarty Twitter" /></p>
'


// remove tabs and spaces
$content_input preg_replace('/\s+/S'" "$content_input);

// Encode data array to JSON
$content_input json_encode($content_input);

// API key 
$apiKey "YOUR API KEY";


$toolRequestUrl "https://api.seoreviewtools.com/contentcoverage/?content=1?content=1&key=".$apiKey;


$seoDataJson curlFunction($toolRequestUrl$content_input);

header("Content-type: application/json");
echo(
$seoDataJson);                                        
?>  






Trusted by →

clients