Element Capture — GoScreenAPI

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.

250 free screenshots/month No credit card required REST API · JSON
javascript
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();
Features

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.

Use Cases

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.

API Reference

Key Parameters

Full reference at goscreenapi.com/docs

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
Why GoScreenAPI

Speed. Scale. Simplicity.

< 3s
Avg. response time

Sync mode results in under 3 seconds for most pages.

99.9%
Uptime SLA

Production-grade reliability with redundant infrastructure.

150 req/min
Rate limit (Pro)

Handle high-volume workloads without throttling.

FAQ

Common questions

Yes. Pass any CSS selector in the selector parameter. The output is cropped to that element's bounding box.
GoScreenAPI automatically scrolls the element into view before capturing.
Yes. Use the wait_for parameter with a CSS selector to wait until that element appears in the DOM.
Yes. Full JS execution means React, Vue, and Angular components render before capture.
Yes. PNG output from element capture is ideal for feeding to GPT-4 Vision, Claude, or other vision models.

Start building with GoScreenAPI

250 free screenshots every month. No credit card required. Production-ready in minutes.