{"id":46495098,"url":"https://github.com/overmiind/reversoapi","last_synced_at":"2026-03-06T12:00:34.894Z","repository":{"id":341913982,"uuid":"308630576","full_name":"Overmiind/ReversoAPI","owner":"Overmiind","description":"Reverso context API for .NET","archived":false,"fork":false,"pushed_at":"2026-03-03T21:59:13.000Z","size":27,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-04T01:18:17.967Z","etag":null,"topics":["api","net","reverso","reverso-api","reverso-context","reverso-context-api","sharp","translation","translator"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Overmiind.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-30T12:55:57.000Z","updated_at":"2026-03-03T21:59:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Overmiind/ReversoAPI","commit_stats":null,"previous_names":["overmiind/reversoapi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Overmiind/ReversoAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Overmiind%2FReversoAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Overmiind%2FReversoAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Overmiind%2FReversoAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Overmiind%2FReversoAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Overmiind","download_url":"https://codeload.github.com/Overmiind/ReversoAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Overmiind%2FReversoAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","net","reverso","reverso-api","reverso-context","reverso-context-api","sharp","translation","translator"],"created_at":"2026-03-06T12:00:19.108Z","updated_at":"2026-03-06T12:00:34.879Z","avatar_url":"https://github.com/Overmiind.png","language":"C#","readme":"# ReversoAPI\n[![NuGet Downloads](https://img.shields.io/nuget/v/ReversoApiClient)](https://www.nuget.org/packages/ReversoApiClient/1.0.0)\n\nUnofficial Reverso Context client for .NET.\n\n## Quick Start\n\n```csharp\nusing ReversoApi;\nusing ReversoApi.Models;\nusing ReversoApi.Models.Requests;\n\nusing var client = new ReversoClient();\n\nvar result = await client.TranslateAsync(new TranslateRequest\n{\n    Word = \"influence\",\n    Sentence = \"They all wanted to influence the decision.\",\n    From = Language.En,\n    To = Language.Ru\n});\n```\n\n## Public API\n\n### `TranslateAsync(TranslateRequest)`\nThis method automatically chooses which Reverso API to call:\n- If input is 1 word: uses word translation API.\n- If input is a short segment (2-3 words): uses segment translation API.\n- If input is more than 3 words: uses text translation API.\n\nInput selection:\n- If `Word` is provided, decision is based on `Word`.\n- If `Word` is empty, decision is based on `Sentence`.\n- In word mode, `Sentence` is used as context.\n\nResponse shape depends on translation type:\n- Word/segment translations return data in `Sources`.\n- Text translations return data in `Translation`.\n\n### `TranslateSegmentAsync(TranslateRequest)`\nExperimental feature.\n\nThis method uses another Reverso API variant and is usually better for words and short segments.\n\nRequirements:\n- `Word` is required\n- `Sentence` is required\n- `WordPos` defaults to `\"0\"`\n\nExample:\n\n```csharp\nusing var client = new ReversoClient();\n\nvar segment = await client.TranslateSegmentAsync(new TranslateRequest\n{\n    Word = \"translation\",\n    Sentence = \"Enjoy cutting-edge AI-powered translation from Reverso in 25+ languages\",\n    WordPos = \"30\",\n    From = Language.En,\n    To = Language.Ru\n});\n```\n\n## Request Model\n\n`TranslateRequest`:\n- `Word` (optional)\n- `Sentence` (optional)\n- `WordPos` (optional, default `\"0\"`)\n- `From` (required)\n- `To` (required)\n\nValidation:\n- at least one of `Word` or `Sentence` must be provided\n- `WordPos` cannot be empty\n\n## Response Model\n\n`TranslateResponse`:\n- `Kind` (`Word`, `Segment`, `Sentence`)\n- `Input`\n- `Translation` (text mode)\n- `Sources` (word/segment modes)\n- `DirectionFrom`, `DirectionTo`, `IsDirectionChanged` (text mode)\n- `Success`, `Error`, `Message`\n\n## Tests\n\nRun all tests:\n\n```bash\ndotnet test\n```\n\nCurrent tests include:\n- unit tests for request validation and direction formatting\n- integration tests for:\n  - `TranslateAsync` word mode\n  - `TranslateAsync` segment mode\n  - `TranslateAsync` sentence/text mode\n  - `TranslateSegmentAsync`\n\n## Disclaimer\nThis code is completely free to use. Its operation is provided as-is and is not guaranteed.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovermiind%2Freversoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovermiind%2Freversoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovermiind%2Freversoapi/lists"}