# Use the .NET client

Use the .NET client on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

VirusTotalAnalyzer

PowerShell module that intearacts with the VirusTotal service using a VirusTotal API (free)

[View on GitHub](https://github.com/EvotecIT/VirusTotalAnalyzer) [Visit Website](#) [Releases](https://github.com/EvotecIT/VirusTotalAnalyzer/releases/tag/VirusTotalAnalyzer-v1.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/VirusTotalAnalyzer)

Stars**90**

Forks**11**

Open issues**0**

PowerShell Gallery downloads**57877**

Release**v1.0.0**

Language: C# Updated: 2026-11-23

Curated Examples

Use VirusTotalAnalyzer from C# with an environment-provided API key.

This pattern is useful when VirusTotal lookups are part of an application or automation service.

It is adapted from `VirusTotalAnalyzer.Examples/GetFileReportExample.cs`.

## Example

```csharp
using VirusTotalAnalyzer;

var apiKey = Environment.GetEnvironmentVariable("VT_API_KEY");
using IVirusTotalClient client = VirusTotalClient.Create(apiKey);

var report = await client.GetFileReportAsync("44d88612fea8a8f36de82e1278abb02f");

Console.WriteLine(report?.Id);
```

## What this demonstrates

- using the .NET client directly
- keeping the API key out of source
- starting with a known public test hash

## Source

- [GetFileReportExample.cs](https://github.com/EvotecIT/VirusTotalAnalyzer/blob/master/VirusTotalAnalyzer.Examples/GetFileReportExample.cs)

<!-- PowerForge markdown artifact sha256:139657B7E4AC320FC95BFC9F9AC758D0AFED0EC8F1BE7B814D92F605B168A533 -->
