Introduction
Welcome to the Screenshot API documentation. This guide will help you understand how to use our API to capture high-quality screenshots, extract HTML content, and retrieve favicons from any website.
Overview
Screenshot API is a powerful and reliable service that allows developers to programmatically capture web content. Whether you need to take screenshots, extract HTML, or download favicons, our API provides a simple and efficient solution.
Features
- High-quality Screenshots: Capture pixel-perfect screenshots of any webpage
- HTML Content Extraction: Extract clean HTML content with preserved DOM structure
- Favicon Retrieval: Automatically detect and download website favicons
- Customization Options: Control viewport size, format, and capture settings
- Fast and Reliable: Built for performance and reliability at scale
Example
Here's a quick example of how to capture a screenshot using our API:
javascript
01const apiKey = 'your_api_key';02const url = 'https://example.com';0304fetch('https://api.screenshotapi.io/v1/capture', {05 method: 'POST',06 headers: {07 'Content-Type': 'application/json',08 'Authorization': `Bearer ${apiKey}`09 },10 body: JSON.stringify({11 url,12 output_format: 'png',13 width: 1280,14 height: 800,15 full_page: true16 })17})18.then(response => response.json())19.then(data => console.log(data.screenshot_url));
Next Steps
- Quick Start Guide - Get up and running in minutes
- API Reference - Detailed API documentation
- Best Practices - Learn how to use the API effectively
Ready to Get Started?
Get your API key now and start capturing screenshots in minutes.