AI Content Optimization API – Content input


Price: 1 credits per request


Description: Discover how well an article is structured for AI answers and LLM retrieval (GEO). Designed for content publishers and content creating environments (custom CMS, news sites or e-commerce platforms).

Query string parameters

Name Parameter Description
Key &key= Your private API key

JSON POST object (required)

Use JSON to post the data to the API.

JSON POST structure:

content_input Description
title_tag The web page title
meta_description A brief summary of the web page
body_content The body content including HTML formatting (paragraph tags, headings, tables, images, links and more …)

Code example

{
  "content_input": {
    "title_tag": "Example document title",
    "meta_description": "Example document Meta Description",
    "body_content": "<h1>Example document Heading</h1><p>Example content including HTML formatting ... </p>"
  }

Response elements

Category Name
content citability ↴  
  readability
  freshness
  top-of-page content
  faq content
  table of contents
  in-content tags
meta data ↴  
  title tag
  meta description
semantic structure ↴  
  headings
  table and list elements
  content depth
  links
media ↴  
  images and video

AI Content Score interpretation

This overview shows how you should interpret the AI content score, returned by the API.

Score Description
75% – 100% The content is well optimized for AI.
51% – 74% The content needs work to improve its visibility potential in AI
0% – 50% The content is poorly optimized for AI

Feedback classes

The element specific feedback classes are designed to help you structure and visually style the output for the end users.

Feedback class name Description
positive Element is optimized for AI
negative Element is NOT optimized for AI
couldhave Element can be further optimized for AI

Tool: AI Content Optimization Checker


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$data){
    
$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$data);
    
$html curl_exec($ch);
    
$curlInfo curl_getinfo($ch);
    return(
$html);
}    

// Title tag
$title_tag 'AI Visibility Tool 3.1 - SEO Review Tools';    
// Meta description        
$meta_description '';

// Content to check
$body_content '
<article>
  <h2>AI Visibility Checker.</h2>

  <blockquote>
    <p>
      <strong>Update</strong>: Additional visibility metrics are 
      <a href="#visibility_metrics"><strong>Now available -> </strong></a>
    </p>
  </blockquote>

  <p>
    The AI Brand Visibility tool is designed to analyze and compare how different AI models perceive your brand and associated product/services. Discover how popular LLMs look at your brand including: brand awareness, credibility and competitors. Generate a report to evaluate your visibility in Google Gemini, ChatGPT and Perplexity to see how you perform compared to your competitors in AI powered search.
  </p>

  <p>
    <noscript>
      <img src="https://www.seoreviewtools.com/wp-content/uploads/AI-brand-report-1.2.png" alt="AI Brand Report - SEO Review" />
    </noscript>
    <img src="https://www.seoreviewtools.com/wp-content/uploads/AI-brand-report-1.2.png" alt="AI Brand Report - SEO Review">
  </p>

  <blockquote>
    <p>
      The AI Brand Visibility report is powered by our latest 
      <a href="https://www.seoreviewtools.com/ai-visibility-api/">
        <strong>AI brand research APIs -></strong>
      </a>
    </p>
  </blockquote>

  
 </article>

'




$body_content mb_convert_encoding($body_content'UTF-8''UTF-8');


$data = [
    
'content_input' => [
        
'title_tag' => $title_tag
        
'meta_description' => $meta_description,  
        
'body_content' => trim($body_content)
    ]
];



// Encode data array to JSON
$data json_encode($dataJSON_PRETTY_PRINT JSON_UNESCAPED_UNICODE);

// API key 
$apiKey 'YOUR-API-KEY';

$toolRequestUrl "https://api.seoreviewtools.com/ai-content-optimization/?content=1&key=".urlencode($apiKey);

$aiDataJson curlFunction($toolRequestUrl$data);

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

cURL code example

curl -X POST "https://api.seoreviewtools.com/ai-content-optimization/?content=1&key=YOUR-API-KEY" \
     -H "Content-Type: application/json" \
     -d '{
          "content_input": {
            "title_tag": "AI Visibility Tool 3.1 - SEO Review Tools",
            "meta_description": "",
            "body_content": "<article><h2>AI Visibility Checker.</h2><p>The AI Brand Visibility tool is designed to analyze brand awareness...</p></article>"
          }
        }'

Python code example

# 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

import requests
import json

# 1. Configuration & Data
api_key = 'YOUR-API-KEY'
title_tag = 'AI Visibility Tool 3.1 - SEO Review Tools'
meta_description = ''

# Content to check
body_content = """
<article>
  <h2>AI Visibility Checker.</h2>
  <blockquote>
    <p>
      <strong>Update</strong>: Additional visibility metrics are 
      <a href="#visibility_metrics"><strong>Now available -> </strong></a>
    </p>
  </blockquote>
  <p>
    The AI Brand Visibility tool is designed to analyze and compare how different AI models perceive your brand...
  </p>
  <p>
    <img src="https://www.seoreviewtools.com/wp-content/uploads/AI-brand-report-1.2.png" alt="AI Brand Report - SEO Review">
  </p>
  <blockquote>
    <p>
      The AI Brand Visibility report is powered by our latest 
      <a href="https://www.seoreviewtools.com/ai-visibility-api/">
        <strong>AI brand research APIs -></strong>
      </a>
    </p>
  </blockquote>
 </article>
"""

# 2. Structure the payload
# Python dictionaries map perfectly to PHP associative arrays
payload = {
    'content_input': {
        'title_tag': title_tag,
        'meta_description': meta_description,
        'body_content': body_content.strip()
    }
}

# 3. API URL (Note the content=1 flag)
tool_request_url = f"https://api.seoreviewtools.com/ai-content-optimization/?content=1&key={api_key}"

try:
    # 4. Perform the POST request
    # Using json=payload automatically sets Content-Type to application/json
    # and handles json.dumps() for you.
    response = requests.post(tool_request_url, json=payload, verify=True)

    # 5. Output the result
    if response.status_code == 200:
        # Parse the JSON response
        result = response.json()
        print(json.dumps(result, indent=4))
    else:
        print(f"HTTP Error: {response.status_code}")
        print(response.text)

except requests.exceptions.RequestException as e:
    print(f"Connection Error: {e}")

JSON response example







Trusted by →

clients