{"id":20014772,"url":"https://github.com/pepebecker/pinyin-rest","last_synced_at":"2025-05-04T22:31:20.525Z","repository":{"id":57324542,"uuid":"88681089","full_name":"pepebecker/pinyin-rest","owner":"pepebecker","description":"Rest API to convert Chinese characters to Pinyin and convert between Pinyin with tone marks and Pinyin with tone numbers.","archived":false,"fork":false,"pushed_at":"2019-08-10T17:13:58.000Z","size":149,"stargazers_count":34,"open_issues_count":4,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T12:51:46.664Z","etag":null,"topics":["api","cangjie","chinese","hanzi","mandarin","pinyin","rest"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pinyin-rest","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/pepebecker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-18T23:59:40.000Z","updated_at":"2024-12-13T13:31:03.000Z","dependencies_parsed_at":"2022-08-31T19:03:16.503Z","dependency_job_id":null,"html_url":"https://github.com/pepebecker/pinyin-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepebecker%2Fpinyin-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepebecker","download_url":"https://codeload.github.com/pepebecker/pinyin-rest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252231160,"owners_count":21715473,"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","cangjie","chinese","hanzi","mandarin","pinyin","rest"],"created_at":"2024-11-13T07:43:53.565Z","updated_at":"2025-05-04T22:31:20.257Z","avatar_url":"https://github.com/pepebecker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinyin REST\n\n[![dependency status](https://img.shields.io/david/pepebecker/pinyin-rest.svg)](https://david-dm.org/pepebecker/pinyin-rest)\n[![dev dependency status](https://img.shields.io/david/dev/pepebecker/pinyin-rest.svg)](https://david-dm.org/pepebecker/pinyin-rest#info=devDependencies)\n[![MIT-licensed](https://img.shields.io/github/license/pepebecker/pinyin-rest.svg)](https://opensource.org/licenses/MIT)\n[![chat on gitter](https://badges.gitter.im/pepebecker.svg)](https://gitter.im/pepebecker)\n\n## Install\n\n```shell\nnpm install pinyin-rest\n```\n\n## `GET /pinyin/...`\n\n### Examples\n\n```shell\nGET: https://api.pinyin.pepe.asia/pinyin/我的猫喜欢喝牛奶\n=\u003e {\n     \"text\": \"wǒ de māo xǐhuan hē niúnǎi\",\n     \"data\": [\"wǒ \", [\"de\",  \"dī\",  \"dí\",  \"dì\"], \" māo xǐhuan \", [\"hē\", \"hè\"], \" niúnǎi\"]\n   }\n```\n\n```shell\nGET: https://api.pinyin.pepe.asia/pinyin/wo3 xi3huan1 he1 cha2\n=\u003e {\n     \"text\": \"wǒ xǐhuān hē chá\",\n     \"data\": \"wǒ xǐhuān hē chá\"\n   }\n```\n\n```shell\nGET: https://api.pinyin.pepe.asia/pinyin/woxihuanhecha?split=true\n=\u003e {\n     \"text\": \"wo xi huan he cha\",\n     \"data\": [\"wo\", \"xi\", \"huan\", \"he\", \"cha\"]\n   }\n```\n\n## `GET /definition/...`\n\n### Example\n\n```shell\nGET: https://api.pinyin.pepe.asia/definition/的\n=\u003e {\n     \"de5\": [\n       \"of\",\n       \"~'s (possessive particle)\",\n       \"(used after an attribute)\",\n       \"(used to form a nominal expression)\",\n       \"(used at the end of a declarative sentence for emphasis)\"\n     ],\n     \"di1\": [\n       \"see 的士[di1 shi4]\"\n     ],\n     \"di2\": [\n       \"really and truly\"\n     ],\n     \"di4\": [\n       \"aim\",\n       \"clear\"\n     ]\n   }\n```\n\n## `GET /hanzi/...`\n\n### Example\n\n```shell\nGET: https://api.pinyin.pepe.asia/hanzi/苹果\n=\u003e {\n     \"traditional\": \"蘋果\",\n     \"simplified\": \"苹果\",\n     \"data\": {\n       \"ping2 guo3\": {\n         \"mandarin\": \"píng guǒ\",\n         \"definitions\": [\n           \"apple\"\n         ],\n         \"classifiers\": {\n           \"ge4\": {\n             \"traditional\": \"個\",\n             \"simplified\": \"个\",\n             \"mandarin\": \"gè\",\n             \"definition\": \"classifier for people or objects in general\"\n           },\n           \"ke1\": {\n             \"traditional\": \"顆\",\n             \"simplified\": \"颗\",\n             \"mandarin\": \"kē\",\n             \"definition\": \"classifier for small spheres, pearls, corn grains, teeth, hearts, satellites etc\"\n           }\n         }\n       }\n     }\n   }\n```\n\n## Related\n\n- [`pinyin-utils`](https://github.com/pepebecker/pinyin-utils)\n- [`pinyin-split`](https://github.com/pepebecker/pinyin-split)\n- [`find-hanzi`](https://github.com/pepebecker/find-hanzi)\n- [`hsk-words`](https://github.com/pepebecker/hsk-words)\n- [`cedict`](https://github.com/pepebecker/cedict)\n- [`mdbg`](https://github.com/pepebecker/mdbg)\n- [`pinyin-or-hanzi`](https://github.com/pepebecker/pinyin-or-hanzi)\n- [`hanzi-to-pinyin`](https://github.com/pepebecker/hanzi-to-pinyin)\n- [`pinyin-convert`](https://github.com/pepebecker/pinyin-convert)\n- [`pinyin-api`](https://github.com/pepebecker/pinyin-api)\n- [`pinyin-bot-core`](https://github.com/pepebecker/pinyin-bot-core)\n- [`pinyin-telegram`](https://github.com/pepebecker/pinyin-telegram)\n- [`pinyin-messenger`](https://github.com/pepebecker/pinyin-messenger)\n- [`pinyin-line`](https://github.com/pepebecker/pinyin-line)\n- [`pinyin-chrome`](https://github.com/pepebecker/pinyin-chrome)\n- [`pinyin-cli`](https://github.com/pepebecker/pinyin-cli)\n- [`hanzi-cli`](https://github.com/pepebecker/hanzi-cli)\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/pepebecker/pinyin-rest/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepebecker%2Fpinyin-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepebecker%2Fpinyin-rest/lists"}