Screenshot Any HTML Element with a CSS Selector
Target a specific component, chart, or section — not the whole page. Pass a CSS selector and get a cropped screenshot instantly.
const res = await fetch('https://goscreenapi.com/api/v1/screenshot', {
method: 'POST',
headers: { 'X-API-Key': 'gsc_your_key', 'Content-Type': 'application/json' },
body: JSON.stringify({
url: 'https://stripe.com',
selector: '#pricing', // any CSS selector
format: 'png'
})
});
const { image_url } = await res.json();
Everything you need.
Nothing you don't.
Any CSS Selector
Target by ID, class, data attribute, or any valid CSS selector.
Auto-Crop
Output is cropped to the exact bounding box of the element.
Scroll Into View
Element is scrolled into view before capture automatically.
Wait for Element
Waits for the selector to appear before capturing.
All Formats
PNG, JPEG, WebP output for element screenshots.
AI-Ready Output
Perfect for feeding specific UI components to vision models.
Built for real workflows
From solo developers to enterprise teams — GoScreenAPI fits into any stack.
AI Vision Pipelines
Extract specific UI components for LLM or computer vision analysis.
Chart & Graph Export
Capture data visualizations from dashboards and reports.
Component Testing
Visual regression testing for specific UI components.
Social Sharing
Generate shareable images from specific page sections.
| Parameter | Type | Description |
|---|---|---|
url |
string | Target URL (required) |
selector |
string | CSS selector for the target element |
format |
string | png | jpeg | webp |
wait_for |
string | CSS selector to wait for before capture |
full_page |
boolean | Ignored when selector is set |
device |
string | desktop | mobile | tablet |
Speed. Scale. Simplicity.
Sync mode results in under 3 seconds for most pages.
Production-grade reliability with redundant infrastructure.
Handle high-volume workloads without throttling.
Common questions
Start building with GoScreenAPI
250 free screenshots every month. No credit card required. Production-ready in minutes.