Wiktionary API

Beginner's Pick Dictionaries / No Auth Required Beginner HTTPS CORS
Free to Use
49 D
Measured Score 0 50 100 Speed 6/30 Consistency 17/20 Security 18/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

Overview

Wiktionary's API gives free access to the entire collaboratively-edited dictionary, covering definitions, pronunciations, etymology, and translations for words in hundreds of languages. No API key or registration is required — you can start making requests immediately using the standard MediaWiki API endpoint. It is one of the largest open dictionary datasets available to developers.

Beginner Tip

Use action=parse&page=WORD&prop=wikitext&format=json to get the raw Wikitext source for a word, or action=query&titles=WORD&prop=revisions for the latest revision. The Wikitext requires parsing, so consider using a dedicated Wiktionary parser library for structured output.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://en.wiktionary.org/w/api.php?action=parse&page=hello&prop=sections&format=json
Result
HTTP 200 · application/json · 4,011 bytes · compressed
Response time
494 ms (median of 3) · fastest 469 ms
Transport
TLSv1.3 · TLS_AES_128_GCM_SHA256 · certificate issued by Let's Encrypt
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
mw-api-ext.eqiad.main-7c8544589d-9ljk2
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
warnings object {2 fields}
parse object {4 fields}

Captured Response

Captured from a real request to https://en.wiktionary.org/w/api.php?action=parse&page=hello&prop=sections&format=json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "warnings": {
    "main": {
      "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice …"
    },
    "parse": {
      "*": "\"prop=sections\" has been deprecated. Please use \"prop=tocdata\" instead."
    }
  },
  "parse": {
    "title": "hello",
    "pageid": 4803,
    "sections": [
      {
        "…": "(9 more fields)"
      }
    ],
    "showtoc": ""
  }
}

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://en.wiktionary.org/w/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

error: missingtitle The page parameter does not match any Wiktionary entry.
Check the exact capitalization; most common words are lowercase. Use action=query&list=search to search for close matches.
Wikitext is hard to parse into structured data The API returns raw Wikitext markup, not clean JSON field values.
Use the Wiktionary REST API at https://en.wiktionary.org/api/rest_v1/ for cleaner data, or use a Wiktionary parsing library.
Incomplete or missing data for non-English words Wiktionary coverage varies by language and relies on volunteer contributions.
Try the language-specific Wiktionary (e.g., fr.wiktionary.org for French) for better coverage of non-English words.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 6/30
Consistency 17/20
Security 18/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 494ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Dictionaries
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →