본문으로 건너뛰기
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL

Show HN: Free Dictionary API – Wiktionary data, no API key required

Article URL: https://api.suvankar.cc/docs/dictionary Comments URL: https://news.ycombinator.com/item?id=50494578 Points: 1 # Comments: 0

번역 서비스가 일시 중지되어 원문을 표시합니다.

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. Overview 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. Quick start 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. Get definitions Retrieve definitions and meaning data for an English word. Query parameters Example response { "word": "happy", "meanings": [ { "partOfSpeech": "adjective", "senses": [ { "glosses": [ "feeling or showing pleasure and contentment" ] } ] } ] } Search words Retrieve a paginated list of words matching a prefix. Get translations Retrieve translation data for a word, optionally filtered by part of speech. Word of the day Retrieve the word-of-the-day entry. Rate limits 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.

자료 출처

원문 읽기 ↗

관련 주제

← 전체 소식 이어 읽기