{"id":28939074,"url":"https://github.com/candy12t/go-deepl","last_synced_at":"2026-01-12T14:45:41.267Z","repository":{"id":216983678,"uuid":"740295650","full_name":"candy12t/go-deepl","owner":"candy12t","description":"Unofficial DeepL API client for Go.","archived":false,"fork":false,"pushed_at":"2024-02-03T06:35:21.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T20:08:15.793Z","etag":null,"topics":["api-client","deepl","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/candy12t.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T03:41:38.000Z","updated_at":"2024-01-13T15:24:36.000Z","dependencies_parsed_at":"2024-02-03T07:30:20.480Z","dependency_job_id":null,"html_url":"https://github.com/candy12t/go-deepl","commit_stats":null,"previous_names":["candy12t/go-deepl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/candy12t/go-deepl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candy12t%2Fgo-deepl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candy12t%2Fgo-deepl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candy12t%2Fgo-deepl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candy12t%2Fgo-deepl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candy12t","download_url":"https://codeload.github.com/candy12t/go-deepl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candy12t%2Fgo-deepl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386699,"owners_count":23150865,"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-client","deepl","go"],"created_at":"2025-06-23T00:01:42.423Z","updated_at":"2026-01-12T14:45:41.253Z","avatar_url":"https://github.com/candy12t.png","language":"Go","funding_links":[],"categories":["Awesome DeepL"],"sub_categories":["Client Libraries \u0026 SDKs"],"readme":"# go-deepl\n\nUnofficial DeepL API client for Go.\n\n## Install\n\n```\ngo get -u github.com/candy12t/go-deepl@latest\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/candy12t/go-deepl\"\n)\n\nfunc main() {\n\tauthkey := os.Getenv(\"DEEPL_AUTH_KEY\")\n\tclient := deepl.NewClient(authkey)\n\n\ttranslatetext, err := client.TranslateText(context.Background(), []string{\"Hello world\"}, \"JA\", deepl.TranslateOption{SourceLang: \"EN\"})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tb, err := json.Marshal(translatetext)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(string(b))\n}\n```\n\n## References\n\n- [DeepL API](https://www.deepl.com/en/docs-api)\n\n## APIs\n\n### Translate Text\n\n- [x] POST /v2/translate\n\n### Translate Documents\n\n- [x] POST /v2/document\n- [x] POST /v2/document/{document_id}\n- [x] POST /v2/document/{document_id}/result\n\n### Manage Glossaries\n\n- [x] GET /v2/glossary-language-pairs\n- [x] POST /v2/glossaries\n- [x] GET /v2/glossaries\n- [x] GET /v2/glossaries/{glossary_id}\n- [x] DELETE /v2/glossaries/{glossary_id}\n- [x] GET /v2/glossaries/{glossary_id}/entries\n\n### General\n\n- [x] GET /v2/usage\n- [x] GET /v2/languages\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandy12t%2Fgo-deepl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandy12t%2Fgo-deepl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandy12t%2Fgo-deepl/lists"}