{"id":19593514,"url":"https://github.com/chenelias/cambridge-dictionary-api","last_synced_at":"2025-04-24T00:06:27.112Z","repository":{"id":190981547,"uuid":"683581803","full_name":"chenelias/cambridge-dictionary-api","owner":"chenelias","description":"API for Cambridge Dictionary, written in Node.js.","archived":false,"fork":false,"pushed_at":"2024-06-28T07:25:29.000Z","size":3629,"stargazers_count":82,"open_issues_count":2,"forks_count":18,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T00:06:21.219Z","etag":null,"topics":["api","cambridge-dictionary","cambridge-dictionary-api","cheerio","express","free-dictionary-api","nodejs"],"latest_commit_sha":null,"homepage":"https://dictionary-api.eliaschen.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenelias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-27T03:23:04.000Z","updated_at":"2025-04-21T05:53:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef7b8d43-1995-4517-8a16-fbd6db385ddf","html_url":"https://github.com/chenelias/cambridge-dictionary-api","commit_stats":null,"previous_names":["chenelias/cambridge-dictionary-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenelias%2Fcambridge-dictionary-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenelias%2Fcambridge-dictionary-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenelias%2Fcambridge-dictionary-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenelias%2Fcambridge-dictionary-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenelias","download_url":"https://codeload.github.com/chenelias/cambridge-dictionary-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535103,"owners_count":21446508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cambridge-dictionary","cambridge-dictionary-api","cheerio","express","free-dictionary-api","nodejs"],"created_at":"2024-11-11T08:39:58.198Z","updated_at":"2025-04-24T00:06:27.093Z","avatar_url":"https://github.com/chenelias.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/eliaschen","https://img.buymeacoffee.com/button-api/?text=By"],"categories":[],"sub_categories":[],"readme":"# Cambridge Dictionary API\n\nA simple API for Cambridge Dictionary, built with Node.js.\n\n\u003ca href=\"https://www.buymeacoffee.com/eliaschen\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=By me a coffee\u0026emoji=\u0026slug=eliaschen\u0026button_colour=8c2eff\u0026font_colour=ffffff\u0026font_family=Arial\u0026outline_colour=ffffff\u0026coffee_colour=FFDD00\" /\u003e\u003c/a\u003e\n\n## 🕹️ Manual\n\n### 📚️ dictionary\n\napi/dictionary/`{language}`/`{word}`\n\n#### **language option:**\n\n| option      |         description         |\n| ----------- | :-------------------------: |\n| **`en`**    |        english (us)         |\n| **`uk`**    |        english (uk)         |\n| **`en-cn`** | english-chinese-simplified  |\n| **`en-tw`** | english-chinese-traditional |\n\n**use `/` to test it with UI**\n\n## 🌐 Deploy\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/chenelias/cambridge-dictionary-api/)\n\n## 💻 Running Locally\n\nAfter clone this repository, run the following commands in the repository floder:\n\n```bash\n# install dependencies\npnpm install\n# run\npnpm run dev\n```\n\nThen fetch `http://localhost:3000/api/dictionary/english/hello` to test it\nor use / to test it out with UI.\n\n## 📖 Example\n\n/api/dictionary/`en-tw`/`cook`\n\n```json\n{\n  \"word\": \"cook\",\n  \"pos\": [\"verb\", \"noun\"],\n  \"verbs\": [\n    {\n      \"id\": 0,\n      \"type\": \"Plain form\",\n      \"text\": \"cook\"\n    },\n    {\n      \"id\": 1,\n      \"type\": \"Third-person singular\",\n      \"text\": \"cooks\"\n    },\n    {\n      \"id\": 2,\n      \"type\": \"Past tense\",\n      \"text\": \"cooked\"\n    },\n    {\n      \"id\": 3,\n      \"type\": \"Past participle\",\n      \"text\": \"cooked\"\n    },\n    {\n      \"id\": 4,\n      \"type\": \"Present participle\",\n      \"text\": \"cooking\"\n    },\n    {\n      \"id\": 5,\n      \"type\": \"Singular\",\n      \"text\": \"cook\"\n    },\n    {\n      \"id\": 6,\n      \"type\": \"Plural\",\n      \"text\": \"cooks\"\n    }\n  ],\n  \"pronunciation\": [\n    {\n      \"pos\": \"verb\",\n      \"lang\": \"uk\",\n      \"url\": \"https://dictionary.cambridge.org/us/media/english-chinese-traditional/uk_pron/u/ukc/ukcon/ukconve028.mp3\",\n      \"pron\": \"/kʊk/\"\n    },\n    {\n      \"pos\": \"verb\",\n      \"lang\": \"us\",\n      \"url\": \"https://dictionary.cambridge.org/us/media/english-chinese-traditional/us_pron/c/coo/cook_/cook.mp3\",\n      \"pron\": \"/kʊk/\"\n    },\n    {\n      \"pos\": \"noun\",\n      \"lang\": \"uk\",\n      \"url\": \"https://dictionary.cambridge.org/us/media/english-chinese-traditional/uk_pron/u/ukc/ukcon/ukconve028.mp3\",\n      \"pron\": \"/kʊk/\"\n    },\n    {\n      \"pos\": \"noun\",\n      \"lang\": \"us\",\n      \"url\": \"https://dictionary.cambridge.org/us/media/english-chinese-traditional/us_pron/c/coo/cook_/cook.mp3\",\n      \"pron\": \"/kʊk/\"\n    }\n  ],\n  \"definition\": [\n    {\n      \"id\": 0,\n      \"pos\": \"verb\",\n      \"text\": \"When you cook food, you prepare it to be eaten by heating it in a particular way, such as baking or boiling, and when food cooks, it is heated until it is ready to eat.\",\n      \"translation\": \"做飯，烹調;燒，煮\",\n      \"example\": [\n        {\n          \"id\": 0,\n          \"text\": \"I don't cook meat very often.\",\n          \"translation\": \"我不常煮肉吃。\"\n        },\n        {\n          \"id\": 1,\n          \"text\": \"He cooked us a huge dinner./He cooked a huge dinner for us.\",\n          \"translation\": \"他給我們準備了一頓豐盛的飯菜。\"\n        },\n        {\n          \"id\": 2,\n          \"text\": \"Let the fish cook for half an hour before you add the wine.\",\n          \"translation\": \"先把魚煮半個小時再加入酒。\"\n        }\n      ]\n    },\n    {\n      \"id\": 1,\n      \"pos\": \"noun\",\n      \"text\": \"someone who prepares and cooks food\",\n      \"translation\": \"廚師\",\n      \"example\": [\n        {\n          \"id\": 0,\n          \"text\": \"She's a wonderful cook.\",\n          \"translation\": \"她是位很出色的廚師。\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Support me 🎉\n\nHi there, I'm Elias, a middle school student from Taiwan. This API was initially created for another project that I'm still working on. I have never expected that so many people are  interested in this project, please consider sponsoring me.\\\nYour donations would cover the operating costs of the database and the server for my future projects.\nthanks a lot ❤️.\n\n\u003ca href=\"https://www.buymeacoffee.com/eliaschen\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=By me a coffee\u0026emoji=\u0026slug=eliaschen\u0026button_colour=8c2eff\u0026font_colour=ffffff\u0026font_family=Arial\u0026outline_colour=ffffff\u0026coffee_colour=FFDD00\" /\u003e\u003c/a\u003e\n\n## API Source\n\n- Verbs from [wiktionary](https://www.wiktionary.org/)\n- Other data from [Cambridge Dictionary](https://dictionary.cambridge.org/)\n\nDevelop by Elias ❤️ \\\nContributions are welcome! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenelias%2Fcambridge-dictionary-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenelias%2Fcambridge-dictionary-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenelias%2Fcambridge-dictionary-api/lists"}