返回资讯中心
外部精选
软件工程
#开发者实时流

开发者推出免费词典 API,基于 Wiktionary 数据且无需 API 密钥

来源标题:Show HN: Free Dictionary API – Wiktionary data, no API key required

开发者发布免费 Dictionary API,基于 Wiktionary 数据提供英文单词释义、词表、翻译和每日一词。所有端点使用 HTTPS 并返回 JSON,无需 API 密钥,但请求受速率限制。用 curl 即可直接发起首次请求,无需 SDK。

Hacker News 最新suvankar_m2026/11/14 · 今天5 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Look up English words and access definitions, word lists, translations, and a word of the day. Responses are JSON and no API key is required.

All endpoints use HTTPS and return JSON. No API key is required. Use the quick start below to make your first request, or jump to an endpoint for its path, parameters, and examples. Requests are subject to rate limits to help protect service availability.

Make your first request with curl. No SDK or API key is required.

curl 'https://api.suvankar.cc/dictionaryapi/v1/definitions/en/happy?compact=true'

Example response (abbreviated):

{ "word": "happy", "meanings": [...] }

Try it out

Look up an English word and inspect the live JSON response.

Uses the public Dictionary API through this site's hostname.

GET Get definitions

Retrieve definitions and meaning data for an English word.

{ "word": "happy", "meanings": [ { "partOfSpeech": "adjective", "senses": [ { "glosses": [ "feeling or showing pleasure and contentment" ] } ] } ] }

GET Search words

Retrieve a paginated list of words matching a prefix.

Retrieve translation data for a word, optionally filtered by part of speech.

The API enforces per-client-IP rate limits. Limits are applied separately to the general dictionary endpoints and the Word of the Day endpoint.

Rate limits use a token-bucket algorithm with greedy token refill. Tokens replenish continuously over the configured one-minute interval, rather than all at once at the end of each minute.

Design clients to stay within these limits. Avoid tight retry loops; if a request is rate-limited, wait before retrying.

Requests may return standard HTTP error responses, including 400 for invalid requests, 404 when a resource is not found, and 500 for an unexpected server error.

Endpoint details are based on the API repository's published endpoint notes. Confirm response schemas against the live service before treating examples as exhaustive.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →