ChatGPT Scraper API
API endpoint → https://api.seoreviewtools.com/chatgpt-scraper/
Example API call → https://api.seoreviewtools.com/chatgpt-scraper/?prompt=What are the most popular SEO blogs&location=united states&hl=English&key=YOUR-API-KEY
Price: 1 credits per request
Description: Extract the full HTML of ChatGPT answers directly through the API to monitor brand citations for popular prompts.
Query string parameters
Name | Parameter | Description |
---|---|---|
Question | &Question= |
Enter the prompt or question for ChatGPT to answer. example: What are the most popular SEO blogs |
Language | &hl= |
The language → full list example: English |
Location | &location= |
The geographical location → full list example: United States |
API key | &key= | Your private API key |
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
*/
// API key
$apiKey = 'YOUR-API-KEY';
// Keyword
$prompt = "What are the most popular SEO blogs";
// Location
$location = "United States";
// Language
$language = "English";
// specific API url
$apiRequestUrl = 'https://api.seoreviewtools.com/chatgpt-scraper/?prompt='.urlencode($keyword).'&location='.$location.'&hl='.$language.'&key='.$apiKey;
// get data from API
$jsonReposnse = file_get_contents($apiRequestUrl);
// convert JSON to PHP array
$dataArray = json_decode($jsonReposnse, true);
// check if API call is success or failed
// (just some basic validation)
// API call fail
if ($dataArray['status'] !== 'ok'){
// return error message
echo 'Error message: '.$dataArray['error message'];
// API call success
} else {
// print data
print_r($dataArray);
}
?>
JSON response example
Ready to start testing the ChatGPT Scraper API endpoint? Get your API Key →
Trusted by →
