Capture screenshots in .NET
Add screenshot and scrolling GIF capabilities to your .NET applications with HttpClient. No Selenium, no headless browsers to manage.
Installation
- 1Use .NET 5+ (includes HttpClient and WebUtility)
- 2Get your API key from the dashboard
- 3Set the X-KEY header in your HTTP requests
Authentication
Include your API key in the X-KEY header with every request:
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-KEY", "your-api-key");.NET Screenshot Example
Capture a screenshot or create a scrolling GIF animation with a simple GET request:
curl "https://api.scrnpix.com/screenshot?url=https%3A%2F%2Fexample.com&width=1280&height=720&format=png" \ -H "X-KEY: your-api-key" \ -o screenshot.png
curl "https://api.scrnpix.com/animate?url=https%3A%2F%2Fexample.com&scroll_duration=3000&scroll_easing=ease-in-out" \ -H "X-KEY: your-api-key" \ -o animation.gif
Response Format
On success, the API returns the image binary data directly in the response body.
| Status Code | 200 OK |
| Content-Type | image/png, image/jpeg, or image/gif |
| Body | Binary image data (byte[]) |
| Error Response | Error message with 4xx/5xx status |
Key Features
Zero Setup
No need to install Selenium or manage headless Chrome. Just use the HttpClient included in .NET 5+.
Production Ready
Built on Cloudflare Workers with global edge network. Handles concurrency and browser lifecycle automatically.
.NET Integration
Modern async/await pattern. Integrates seamlessly with ASP.NET Core, Blazor, Azure Functions, or any .NET framework.
Rich Features
Custom viewport sizes, full page capture, PNG/JPEG formats, scrolling GIFs with 15 easing functions.
Frequently Asked Questions
Do I need to install any browser dependencies for .NET?
No. Scrnpix runs browsers on our infrastructure. You only need .NET 5+ with HttpClient to make HTTP calls.
Can I use this with ASP.NET Core or Azure Functions?
Yes. Scrnpix works with any .NET framework — ASP.NET Core, Blazor, Azure Functions, or plain C# applications.
How do I handle errors in .NET?
Check the response status code. A 200 status means success with image bytes in the body. 4xx errors indicate invalid params or auth issues, 5xx errors are server-side.
What .NET version is required?
.NET 5+ is recommended for modern HttpClient support. The API is a simple HTTP GET request.
Ready to capture screenshots in .NET?
Get your API key and start rendering screenshots in seconds. Free tier includes 50 screenshots per month.
Start Free