Feature

Element Targeting Screenshots

Capture specific elements on any webpage using CSS selectors. Screenshot only the header, a product card, a chart, or any HTML element you need.

How Element Targeting Works

Use the selector parameter to specify a CSS selector that identifies the element you want to capture. GetScreenshot will find that element and return a screenshot cropped exactly to its boundaries.

This is perfect when you only need a portion of a webpage, like a pricing table, navigation menu, hero section, or data visualization.

API Parameter

selector={CSS selector}

Pass any valid CSS selector. Supports IDs (#hero), classes (.pricing-card), tags (header), and complex selectors.

Example: Capture Product Card

https://api.rasterwise.com/v1/get-screenshot
  ?apikey=YOUR_API_KEY
  &url=https://store.example.com
  &selector=.product-card:first-child

Supported Selector Types

# By ID
selector=#main-content

# By class
selector=.hero-section

# By tag
selector=article

# Complex selector
selector=div[data-testid="chart"]

Common Use Cases

Element targeting is useful for many scenarios

E-commerce Products

Capture individual product cards, pricing tables, or buy buttons for marketing materials and competitive analysis.

Learn more

Charts & Dashboards

Extract specific charts, graphs, or KPI widgets from analytics dashboards for reports and presentations.

Learn more

Social Media Posts

Capture specific tweets, posts, or comments for embedding in articles or monitoring mentions.

Learn more

UI Components

Document specific UI components like navigation bars, footers, or form elements for design systems.

Pricing Tables

Capture competitor pricing tables or your own for comparison pages and sales materials.

Learn more

News & Articles

Capture specific article sections, headlines, or quotes for media monitoring and content curation.

Ready to Capture Specific Elements?

Get started with GetScreenshot's element targeting. Available on all plans.