Text Rewriting API
API endpoint → https://api.seoreviewtools.com/ai-content-rewriter-1-2/
Price: 1 credits per request
Description: Automatically rewrite content using AI
Query string parameters
Name | Parameter | Description |
---|---|---|
Content format | &content_format= | Optional: content format examples: Blog post, Product description, Video script, .. example: Blog post |
Language | &hl= | Optional: Language to translate text (full list of the available languages) example: Spanish |
Writing style | &style= | Optional: Writing style examples: Formal, Conversational, Persuasive, Creative, … example: Creative |
Tone of voice | &tone= | Optional: Content tone examples: Assertive, Humorous, Motivating, Informal , ….. example: Assertive |
Audience | &audience | Optional: Content audience examples: Copywriters, Electricians, Students, Experts ….. example: Copywriters |
API key | &key= | Your private API key |
Post fields
Name | Description |
---|---|
data |
The data post field is used to post the content as a string to the API. example: ‘Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac tortor nec justo ornare molestie….’ |
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, $curlData){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $toolRequestUrl);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $curlData);
$html = curl_exec($ch);
$curlInfo = curl_getinfo($ch);
return($html);
}
// Content to rewrite
$data = "Keyword difficulty is a SEO metric designed to help you understand how difficult it is to rank for a specific keyword. Multiple factors including organic search competition, backlinks and domain authority are analysed to calculate the keyword difficulty score for a particular search query.";
// API key
$apiKey = "YOUR API KEY";
// language (optional: can be used to translate content)
$language = 'English';
// audience (optional)
$audience = 'Copywriters|Content creators';
// content format (optional)
$content_format = 'blog';
// writing style (optional)
$style = 'Persuasive';
// tone of voice (optional)
$tone = 'Assertive';
$toolRequestUrl = "https://api.seoreviewtools.com/ai-content-rewriter-1-2/?hl=".$language."&audience=".$audience."&content_format=".$content_format."&style=".$style."&tone=".$tone."&key=".$apiKey;
$dataJson = curlFunction($toolRequestUrl, $data);
header("Content-type: application/json");
echo ($dataJson);
?>
JSON response example
Ready to start testing the Text Rewriting API endpoint? Get your API Key →