$api_server = "https://api.refyn.org/refyn_api.php";// The Default SaaS Server
$ip = $_SERVER['REMOTE_ADDR']; // Your IP Location
$siteurl = "https://refyn.org"; // Your Registration Server
$apikey = "1TREfc13kNggm566"; // The API Key You Received After Registration
$link_search = "https://refyn.org/refyn/keyword/"; // The Landing Page for the Suggestions
$r = "spellcheck"; // Call Function
$q = "chokolate"; // The Search Query (keyword)
//$q = "good+boy"; // Use '+' For Multiple Words
https://api.refyn.org/refyn_api.php?ip=32.12.45.677&siteurl=https://comfyplane.com&apikey=1TREfc13kNggm566&r=spellcheck&q=chokolate
{"result":"chocolate"}
https://api.refyn.org/refyn_api.php?ip=32.12.45.677&siteurl=https://comfyplane.com&apikey=1TREfc13kNggm566&r=spellcheck&q=tylenol
{"result":["analgesic","mild","pain","inflammation",
"antipyretic","Datril","Tylenol","Panadol",
"Phenaphen","Tempra","Anacin","III",
"trademarks","brands","tablets","trademark"],"Total":16}
$spell_suggestions = file_get_contents($remote_API_server.'?siteurl='.$home_url.'&apikey='.
$api_key.'&r=spellcheck&q='.urlencode($search_keyword));
$all_suggestion = json_decode($spell_suggestions, true);
// Get only the 1st suggestion
$spellResult = $all_suggestion['result'][$search_keyword][0];
R | Use For | Return JSON | Type |
---|---|---|---|
ai | Get Artificial Inteligent Insights |
|
Rows: Array Total: Integer |
tryalso | Fuzzy AI Search (Suggestions) |
|
Tryalso: String comma separated line_of_cats: HTML Total: Integer Definition: String |
soundex_match | Find Sound Like Words |
|
String |
logs | Get WordPress Post ID by Keyword |
|
Integer |
reverselogs | Get WordPress Post ID by Soundex |
|
Integer |
trytosearch | Search Refyn DB (Not AI) |
|
Trytosearch: HTML String SEO: String Selected: String |
spellcheck | Fix Typos with Azure Cognitive AI Enable |
|
String |
yahoo_translate | Get Yahoo's Translation (To English) |
|
Array |
yahoo_translate_extra | Get Yahoo Results |
|
Array |
history | Aggregated Data & SEO Bait Page |
|
Array |
scrap | Get Google Results |
|
3D Array |
like | Search Refyn DB %LIKE% |
|
KW: String SEO: String KW user selected: String |
{"result":"0"}
We found that 99% of the errors are due to wrong syntax, apikey or siteurl.
DEBUG MODE: ON