{"id":49538906,"url":"https://github.com/scanii/scanii-dotnet","last_synced_at":"2026-05-02T13:11:28.379Z","repository":{"id":31278204,"uuid":"127429410","full_name":"scanii/scanii-dotnet","owner":"scanii","description":".NET interface to the scanii.com content processing service","archived":false,"fork":false,"pushed_at":"2025-07-20T21:56:20.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-23T20:26:37.332Z","etag":null,"topics":["client","csharp","dotnet","malware","nuget-package","scanii"],"latest_commit_sha":null,"homepage":"https://scanii.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scanii.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-03-30T13:07:17.000Z","updated_at":"2026-04-23T18:18:06.000Z","dependencies_parsed_at":"2023-01-14T18:42:13.176Z","dependency_job_id":null,"html_url":"https://github.com/scanii/scanii-dotnet","commit_stats":null,"previous_names":["scanii/scanii-dotnet"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/scanii/scanii-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanii%2Fscanii-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanii%2Fscanii-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanii%2Fscanii-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanii%2Fscanii-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scanii","download_url":"https://codeload.github.com/scanii/scanii-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanii%2Fscanii-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32350243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["client","csharp","dotnet","malware","nuget-package","scanii"],"created_at":"2026-05-02T13:11:27.713Z","updated_at":"2026-05-02T13:11:28.373Z","avatar_url":"https://github.com/scanii.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scanii-dotnet\n\n.NET client for the [Scanii](https://scanii.com) content processing API.\n\n## Installation\n\n```\ndotnet add package Scanii --version 7.1.0\n```\n\n## SDK Principles\n\n1. **Light.** Zero runtime dependencies, stdlib only.\n2. **Up to date.** Always current with the latest Scanii API.\n3. **Integration-only.** Wraps the REST API — retries, concurrency, and batching are the caller's responsibility.\n\n## Quickstart\n\n```csharp\nusing Scanii;\n\nvar client = ScaniiClients.CreateDefault(\"your-api-key\", \"your-api-secret\");\nvar result = await client.Process(\"/path/to/file.pdf\");\nif (result.Findings.Count == 0)\n    Console.WriteLine(\"Content is safe!\");\nelse\n    Console.WriteLine($\"Findings: {string.Join(\", \", result.Findings)}\");\n```\n\n## API Reference\n\nFull API documentation: \u003chttps://scanii.github.io/openapi/v22/\u003e\n\nAll methods are on `IScaniiClient`, created via `ScaniiClients.CreateDefault`.\n\n| Method | Description |\n|---|---|\n| `Process(path/stream, callback?, metadata?)` | Synchronous file scan |\n| `ProcessAsync(path/stream, callback?, metadata?)` | Server-side async scan, returns pending result |\n| `ProcessFromUrl(url, callback?, metadata?)` | Synchronous scan of a remote URL (v2.2 preview) |\n| `Fetch(url, callback?, metadata?)` | Server-side fetch-and-scan of a remote URL |\n| `Retrieve(id)` | Retrieve a previous scan result |\n| `RetrieveTrace(id)` | Retrieve processing event trace; returns `null` on 404 (v2.2 preview) |\n| `CreateAuthToken(timeoutSeconds)` | Mint a short-lived auth token |\n| `RetrieveAuthToken(id)` | Inspect an auth token |\n| `DeleteAuthToken(id)` | Revoke an auth token |\n| `Ping()` | Health check |\n\n## Regional Endpoints\n\n```csharp\n// Default (auto-routed)\nvar client = ScaniiClients.CreateDefault(key, secret);\n\n// Regional\nvar client = ScaniiClients.CreateDefault(key, secret, target: ScaniiTarget.Eu1);\n```\n\n| Target | Endpoint |\n|---|---|\n| `ScaniiTarget.Auto` | `https://api.scanii.com` |\n| `ScaniiTarget.Us1` | `https://api-us1.scanii.com` |\n| `ScaniiTarget.Ca1` | `https://api-ca1.scanii.com` |\n| `ScaniiTarget.Eu1` | `https://api-eu1.scanii.com` |\n| `ScaniiTarget.Eu2` | `https://api-eu2.scanii.com` |\n| `ScaniiTarget.Ap1` | `https://api-ap1.scanii.com` |\n| `ScaniiTarget.Ap2` | `https://api-ap2.scanii.com` |\n\n## Error Handling\n\n```csharp\ntry\n{\n    var result = await client.Process(\"/path/to/file\");\n}\ncatch (ScaniiAuthException)\n{\n    // HTTP 401 — bad credentials\n}\ncatch (ScaniiRateLimitException)\n{\n    // HTTP 429 — rate limit hit\n}\ncatch (ScaniiException ex)\n{\n    // other API errors\n}\n```\n\n## Local Testing with scanii-cli\n\n```bash\ndocker run -d --name scanii-cli -p 4000:4000 ghcr.io/scanii/scanii-cli:latest server\n```\n\n```csharp\nvar client = ScaniiClients.CreateDefault(\"key\", \"secret\",\n    target: new ScaniiTarget(\"http://localhost:4000\"));\n```\n\n## License\n\nApache 2.0. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanii%2Fscanii-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscanii%2Fscanii-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanii%2Fscanii-dotnet/lists"}