all templates
APIs & Data

Dictionary Lookup

Look up any word and read its definitions — nested JSON, unpacked.

Type a word, get its pronunciation and definitions grouped by part of speech. The data comes back as arrays inside objects inside arrays, so this is your lesson in reading real, nested JSON.

What's inside

  • Definitions grouped by part of speech
  • Reading deeply nested JSON, step by step
  • Handles "word not found" (404) cleanly
  • Shows examples where the API provides them
  • Free API, no key required

Quickstart

$ curl -LO https://devai.io/downloads/dictionary-lookup.zip$ unzip dictionary-lookup.zip && cd dictionary-lookup$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as the zip ships it.

loading…
Download .zip
loading tree…

about this tutorial

A devai.io starter tutorial — navigating nested data without getting lost.