Wordnik API

The Wordnik API provides access to definitions, etymologies, examples, and related words for a specified word from Wordnik, an online English dictionary and language resource. Wordnik, a nonprofit organization, is an online English dictionary and language resource that provides dictionary and thesaurus content.

Base URL

"https://openapi-idk8.onrender.com/"

Fetch Word Information Endpoint

GET `/wordnik/:word`

Description: Retrieves the definitions, etymologies, examples, and related words for a specified word from Wordnik.

URL Parameters

  • word (required): The word for which the information is to be fetched.

Sample Request

GET `https://openapi-idk8.onrender.com/wordnik/science`

Sample Response


{
  "api_info": {
    "api_name": "Wordnik",
    "description": "Wordnik, a nonprofit organization, is an online English dictionary and language resource that provides dictionary and thesaurus content. Some of the content is based on print dictionaries such as the Century Dictionary, the American Heritage Dictionary, WordNet, and GCIDE.",
    "author": "OpenAPI"
  },
  "word": "science",
  "definitions": [
    {
      "source": "from The American Heritage® Dictionary of the English Language, 5th Edition.",
      "definitions": [
        {
          "partOfSpeech": "noun",
          "text": "The observation, identification, description, experimental investigation, and theoretical explanation of phenomena."
        },
        {
          "partOfSpeech": "noun",
          "text": "Such activities restricted to a class of natural phenomena."
        },
        {
          "partOfSpeech": "noun",
          "text": "A systematic method or body of knowledge in a given area."
        },
        {
          "partOfSpeech": "noun",
          "text": "Archaic  Knowledge, especially that gained through experience."
        }
      ]
    },
    {
      "source": "from The Century Dictionary.",
      "definitions": [
        {
          "partOfSpeech": "noun",
          "text": "A so-called system of healing, which aims at a cnre of all physical ailments by educating the mind of the patient in certain directions. The mind is supposed to be trained to exclnde every idea of the existence of any real discomfort, on the ground that all such discomfort is the result of abnormal mental conditions; the mind being properly trained to ignore the body, no discomfort exists, since the mind does not admit it. The system has many variations, but in general is, evidently, a form of mind-cure or faith-cure."
        },
        {
          "partOfSpeech": "noun",
          "text": "Knowledge;comprehension or understanding of facts or principles."
        },
        {
          "partOfSpeech": "noun",
          "text": "Knowledge gained by systematic observation, experiment, and reasoning; knowledge coördinated, arranged, and systematized; also, the prosecution of truth as thus known, both in the abstract and as a historical development."
        },
        {
          "partOfSpeech": "noun",
          "text": "Knowledge regarding any special group of objects, coördinated, arranged, and systematized; what is known concerning a subject, systematically arranged; a branch of knowledge: as, the science of botany, of astronomy, of etymology, of metaphysics; mental science; physical science; in a narrow sense, one of the physical sciences, as distinguished from mathematics, metaphysics, etc."
        },
        {
          "partOfSpeech": "noun",
          "text": "Art derived from precepts or based on principles; skill resulting from training; special, exceptional, or preëminent skill."
        },
        {
          "partOfSpeech": "noun",
          "text": "Trade; occupation."
        },
        {
          "partOfSpeech": "noun",
          "text": "Synonyms and Art, Science. See art."
        }
      ]
    },
    {
      "source": "from the GNU version of the Collaborative International Dictionary of English.",
      "definitions": [
        {
          "partOfSpeech": "noun",
          "text": "Knowledge; knowledge of principles and causes; ascertained truth of facts."
        },
        {
          "partOfSpeech": "noun",
          "text": "Accumulated and established knowledge, which has been systematized and formulated with reference to the discovery of general truths or the operation of general laws; knowledge classified and made available in work, life, or the search for truth; comprehensive, profound, or philosophical knowledge."
        },
        {
          "partOfSpeech": "noun",
          "text": "Especially, such knowledge when it relates to the physical world and its phenomena, the nature, constitution, and forces of matter, the qualities and functions of living tissues, etc.; -- called also natural science, and physical science."
        },
        {
          "partOfSpeech": "noun",
          "text": "Any branch or department of systematized knowledge considered as a distinct field of investigation or object of study."
        },
        {
          "partOfSpeech": "noun",
          "text": "Art, skill, or expertness, regarded as the result of knowledge of laws and principles."
        },
        {
          "partOfSpeech": "noun",
          "text": "See under Comparative, and Inductive."
        },
        {
          "partOfSpeech": "transitive verb",
          "text": "rare  To cause to become versed in science; to make skilled; to instruct."
        }
      ]
    },
    {
      "source": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
      "definitions": [
        {
          "partOfSpeech": "noun",
          "text": "uncountable  Knowledge derived from scientific disciplines, scientific method, or any systematic effort."
        },
        {
          "partOfSpeech": "verb",
          "text": "transitive  To cause to become versed in science; to make skilled; to instruct."
        },
        {
          "partOfSpeech": "noun",
          "text": "Obsolete spelling of scion."
        }
      ]
    },
    {
      "source": "from WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.",
      "definitions": [
        {
          "partOfSpeech": "noun",
          "text": "a particular branch of scientific knowledge"
        },
        {
          "partOfSpeech": "noun",
          "text": "ability to produce solutions in some problem domain"
        }
      ]
    }
  ],
  "etymologies": [
    "[Middle English, knowledge, learning, from Old French, from Latin scientia, from sciēns, scient-, present participle of scīre, to know; see  skei- in Indo-European roots.]",
    "See scion.",
    "From Anglo-Norman, Old French science, from Latin scientia (\"knowledge\"), from sciens, the present participle stem of scire (\"know\")."
  ],
  "examples": [
    {
      "text": "The past dead ends of science may not be relevant for a science class, but they are quite relevant for a *history of science* or *philosophy of science* class, as a corrective to the notion that science is a linear progression of successful theories.",
      "source": "An Atheist Defends Intelligent-Design Creationism - The Panda's Thumb  2010",
      "sourceUrl": "http://pandasthumb.org/archives/2010/01/an-atheist-defe.html"
    },
    {
      "text": "The past dead ends of science may not be relevant for a science class, but they are quite relevant for a *history of science* or *philosophy of science* class, as a corrective to the notion that science is a linear progression of successful theories.",
      "source": "An Atheist Defends Intelligent-Design Creationism - The Panda's Thumb  2010",
      "sourceUrl": "http://pandasthumb.org/archives/2010/01/an-atheist-defe.html"
    },
    {
      "text": "We should remember at the outset that the nomad or minor science evoked in A Thousand Plateaus is not the Royal or major science that makes up the entirety of what Deleuze and Guattari call ˜science™ in What is Philosophy?.",
      "source": "Gilles Deleuze Smith, Daniel 2008",
      "sourceUrl": "http://plato.stanford.edu/archives/fall2009/entries/deleuze/"
    },
    {
      "text": "This chapter also draws largely, especially upon geological and chemical science, and affords another illustration of what, I trust, Mr. Stephens's book will more and more impress upon our working farmers, that _skilful practice is applied science_.",
      "source": "Blackwood's Edinburgh Magazine — Volume 53, No. 330, April 1843 Various",
      "sourceUrl": "http://www.gutenberg.org/dirs/1/1/7/4/11745/11745-8.txt"
    },
    {
      "text": "Personally the science of autosuggestion -- for I consider it as entirely a _science -- _has rendered me great services; but truth compels me to declare that if I continue to interest myself particularly in it, it is because I find in it the means of exercising true charity.",
      "source": "Maîtrise de soi-même par l'autosuggestion consciente. English Emile Cou�� 1891",
      "sourceUrl": "http://www.gutenberg.org/dirs/2/7/2/0/27203/27203-8.txt"
    },
    {
      "text": "_We have science, and the applications of science_, which are united together as the tree and its fruit. '",
      "source": "Six Lectures on Light Delivered In The United States In 1872-1873 John Tyndall 1856",
      "sourceUrl": "http://www.gutenberg.org/dirs/1/4/0/0/14000/14000-8.txt"
    },
    {
      "text": "The statesman endeavoured to show that we ought not to be surprised at this result, because _in our day the reign of theoretic science yielded place to that of applied science_.",
      "source": "Six Lectures on Light Delivered In The United States In 1872-1873 John Tyndall 1856",
      "sourceUrl": "http://www.gutenberg.org/dirs/1/4/0/0/14000/14000-8.txt"
    },
    {
      "text": "But when the Committee of Inquiry sits at last, and the business begins to assume a systematic form, even the science of that ideal good, that exemplar and pattern of good, which men have been busy on so long, -- the _science_ of it, -- is put down as 'wanting,' and the",
      "source": "The Philosophy of the Plays of Shakspere Unfolded Delia Bacon 1835",
      "sourceUrl": "http://www.gutenberg.org/dirs/etext05/8shak10.txt"
    },
    {
      "text": "I've seen what they teach in \"computer science\" and can safely tell you that you don't know enough about the * current working state of computer science* by leaps and bounds.",
      "source": "Techdirt  2009",
      "sourceUrl": "http://news.techdirt.com/articles/20090417/1603504545.shtml"
    },
    {
      "text": "As I said, just with religion, science can be subverted by politicians and fools such as yourself that ignore the ’science’ eg. consequences of their actions.",
      "source": "Think Progress » Bush Administration Has Pressured Half Of Gov’t Scientists To Downplay Global Warming  2007",
      "sourceUrl": "http://thinkprogress.org/2007/01/30/scientists-warming/"
    }
  ],
  "relatedWords": {
    "synonyms": [
      "academic discipline",
      "academic specialty",
      "applied science",
      "area",
      "arena",
      "art",
      "body of knowledge",
      "branch",
      "concern",
      "craft",
      "department of knowledge",
      "discipline",
      "domain",
      "electrobiology",
      "electrochemistry",
      "electrokinetics",
      "electromechanics",
      "electrometallurgy",
      "electrometry",
      "electronics",
      "electrooptics",
      "electrophysics",
      "electrostatics",
      "electrotechnics",
      "electrotechnology",
      "erudition",
      "expertise",
      "field",
      "field of inquiry",
      "field of study",
      "galvanism",
      "information",
      "instruct",
      "knowledge",
      "learning",
      "literature",
      "lore",
      "magnetics",
      "mechanics",
      "mechanism",
      "method",
      "natural science",
      "ology",
      "proficiency",
      "province",
      "pure science",
      "realm",
      "scholarship",
      "skill",
      "social science",
      "specialty",
      "sphere",
      "study",
      "subject",
      "system",
      "technic",
      "technical know-how",
      "technical knowledge",
      "technical skill",
      "technicology",
      "technics",
      "technique",
      "technology",
      "thermionics",
      "wisdom"
    ],
    "rhymes": [
      "alliance",
      "appliance",
      "compliance",
      "defiance",
      "noncompliance",
      "pseudoscience",
      "reliance"
    ],
    "variants": [
      "natural science",
      "physical science"
    ],
    "crossReferences": [
      "absolute science",
      "active science",
      "applied science",
      "articulation of a science",
      "concrete science",
      "direct science",
      "disputative science",
      "domestic science",
      "engineering",
      "historical science",
      "inductive science",
      "knowledge",
      "liberal science",
      "lucrative science",
      "material science",
      "mental science",
      "moral science",
      "natural science",
      "nautical science",
      "occult sciences",
      "physical science",
      "political",
      "practical science",
      "professional science",
      "simple science",
      "speculative science",
      "technology",
      "the dismal science",
      "the exact sciences",
      "the gay science",
      "the science",
      "the seven liberal sciences"
    ]
  },
  "sourceUrl": "https://www.wordnik.com/words/science"
}

Usage Example

To use the API, make a GET request to the `/wordnik/:word` endpoint with the required URL parameter:

fetch('https://openapi-idk8.onrender.com/wordnik/science')
    .then(response => response.json())
    .then(data => console.log(data));

Error Handling

400 Bad Request: Returned when the required URL parameter is missing.

{
  "error": "Word parameter is required"
}

404 Not Found: Returned when no results are found for the specified word.

{
  "error": "No results found for word \"science\""
}

500 Internal Server Error: Returned when an error occurs while fetching or processing data.

{
  "error": "An error occurred while fetching data"
}