Examples Using Your API Key
JSON
Direct Browser URL
https://dictionaryapi.com/api/v3/references/learners/json/test?key=667b8f54-bd8a-4517-a53d-59ffe963e123b
PHP
<?php
// This function grabs the definition of a word in JSON format.
function grab_json_definition ($word, $ref, $key) {
$uri = "https://dictionaryapi.com/api/v3/references/" . urlencode($ref) . "/json/" . urlencode($word) . "?key=" . urlencode($key);
return file_get_contents($uri);
};
$jdef = grab_json_definition("test", "learners", "667b8f54-bd8a-4517-a53d-59ffe963e123b");
?>