{"id":16833150,"url":"https://github.com/john-theo/google-translate-server","last_synced_at":"2025-10-24T05:07:08.135Z","repository":{"id":40509806,"uuid":"255975611","full_name":"john-theo/google-translate-server","owner":"john-theo","description":"[DEPRECATED]  Free Google Translate API. Very lightweight and easy to use.","archived":false,"fork":false,"pushed_at":"2022-12-12T12:00:19.000Z","size":39,"stargazers_count":151,"open_issues_count":3,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T18:01:02.097Z","etag":null,"topics":["api","deprecated","docker","express","google-translate","google-translate-api","javascript","nodejs","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/john-theo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-15T16:30:08.000Z","updated_at":"2025-02-10T05:30:00.000Z","dependencies_parsed_at":"2022-06-29T16:08:56.648Z","dependency_job_id":null,"html_url":"https://github.com/john-theo/google-translate-server","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/john-theo%2Fgoogle-translate-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-theo%2Fgoogle-translate-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-theo%2Fgoogle-translate-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-theo%2Fgoogle-translate-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/john-theo","download_url":"https://codeload.github.com/john-theo/google-translate-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841223,"owners_count":20356446,"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","deprecated","docker","express","google-translate","google-translate-api","javascript","nodejs","server"],"created_at":"2024-10-13T11:52:32.487Z","updated_at":"2025-10-24T05:07:03.098Z","avatar_url":"https://github.com/john-theo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Translate Server\n\n![No Maintenance Intended](http://unmaintained.tech/badge.svg) ![](https://img.shields.io/badge/deprecated-red) ![](https://img.shields.io/badge/language-nodejs-orange.svg) [![](https://img.shields.io/badge/docker-ready-orange)](https://hub.docker.com/r/johndope/google-translate-server) [![](https://img.shields.io/docker/pulls/johndope/google-translate-server.svg)](https://hub.docker.com/r/johndope/google-translate-server) ![](http://img.shields.io/badge/license-MIT-lightgrey)\n\n## !!!DEPRECATED!!!\n\nAfter a lot of \"googling\", I'm sorry to confirm that similar approaches are **NO LONGER WORKING** now. And you **HAVE TO** own a Google Developer account for the simple task.\n\n**BUT!** DO try out the [DeepL API](https://www.deepl.com/en/docs-api/)! As far as my uses cases are concerned, it works a lot better than Google Translate! Everyone end up here comes for the same reason, and I hope DeepL can be a better successor for you!\n\n---\n\nA express.js server wrapper for [google-translate-cn-api\n](https://www.npmjs.com/package/google-translate-cn-api)\n\nUse Google Translate API **WITHOUT a Google account**!\n\n## Features\n\n- **Updated**, use Google Translate Web API;\n- **Open Source**, **FREE** forever;\n- **Cross Language**, simple REST API, basic url request in any language;\n- **Fast**, choose your local Google Translate domian (eg. https://translate.google.cn/);\n- **Auto Correction**;\n- **ZERO Config**, `docker` ready, start service in 1 minute.\n\n## Example\n\n### Request\n\n```shell\ncurl http://localhost:30031/?text=I spea Dutch!\u0026to=zh-cn\n```\n\n### Response\n\n```json\n{\n  \"text\": \"我说荷兰语！\",\n  \"from\": {\n    \"language\": {\n      \"didYouMean\": false,\n      \"iso\": \"en\"\n    },\n    \"text\": {\n      \"autoCorrected\": false,\n      \"value\": \"I speak Dutch!\",\n      \"didYouMean\": true\n    }\n  },\n  \"raw\": \"\"\n}\n```\n\n## Use docker `Recommended`\n\n```shell\ndocker run -it --rm -p 30031:30031 -e \"DOMAIN=cn\" johndope/google-translate-server\n```\n\n## Run directly\n\n### Install\n\n```shell\nnpm i\n```\n\n### Usage\n\n```shell\n# start with default port 30031\nnpm start\n\n# specify port\nyarn start -- -p 30032\n\n# specify domain\n# eg: translate.google.cn\n# default: translate.google.com\nyarn start -- -d cn\n```\n\n## Use docker-compose\n\n```shell\n# start with default port 30031\ndocker-compose up\n\n# specify port\nPORT=30032 docker-compose up\n\n# specify domain\nDOMAIN=cn docker-compose up\n```\n\n## Client Example\n\n### curl\n\n```shell\ncurl http://localhost:30031/?text=hello\u0026to=zh-cn\n```\n\n### python\n\n```python\nimport requests\nfrom urllib.parse import urlencode\n\nprint(requests.get('http://localhost:30031/?'+urlencode({\n    'text': 'I spea Dutch!',  # this input will trigger auto-suggestion\n    'from': 'en',  # leave blank to auto detect\n    'to': 'zh-cn',\n    # 'raw': 'true',  # response contains unparsed response\n    # 'domain': 'cn'  # change google translate domain, overrides default domain\n})).json())\n```\n\nMore details about query parameters: [google-translate-api](https://www.npmjs.com/package/google-translate-api) and [google-translate-cn-api](https://www.npmjs.com/package/google-translate-cn-api).\n\nIt's worth mention that, with `google-translate-cn-api`, you can now specify something like `domain: 'cn'` in the parameter to use your local `Google Translate` domain. Mode details can be found [here](https://github.com/lqqyt2423/google-translate-cn-api/blob/HEAD/example.js#L29-L31).\n\n## Credit\n\n- [google-translate-api](https://github.com/matheuss/google-translate-api)\n- [google-translate-cn-api](https://github.com/lqqyt2423/google-translate-cn-api)\n\n## Repository\n\n**Github:** [John-Theo/google-translate-server](https://github.com/John-Theo/google-translate-server)\n\n**Docker Hub:** [johndope/google-translate-server](https://hub.docker.com/r/johndope/google-translate-server/)\n\n## License\n\nThis application comes with **ABSOLUTELY NO WARRANTY**, to the extent permitted by applicable law.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-theo%2Fgoogle-translate-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohn-theo%2Fgoogle-translate-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-theo%2Fgoogle-translate-server/lists"}