Go to example tasks

Screenshot one element of a web page

Capture just one part of a page by CSS selector, for example a pricing table, header or chart, instead of the whole page.

Try for free
Website Screenshot API
Website Screenshot APIadhistory/website-screenshot-api
URL
Page title
HTTP
Screenshot
+4 fields
Text
Number
Boolean
List
Object

Input

URLs to screenshot(required):https://news.ycombinator.com
Only this element (CSS selector):#hnmain

Output fields

URL
Page title
HTTP
Screenshot
Device
Format
Bytes
Captured

How it works

Sign up on Apify or log in

The Website Screenshot API Actor is ready to run with the inputs already set for "Screenshot one element of a web page". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Screenshot one element of a web page" task

The Website Screenshot API Actor will start running based on the input automatically. You can also change all the input fields, like URLs to screenshot and only this element (css selector), to match your specific use case.

Receive the "Screenshot one element of a web page" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, page title, HTTP, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Screenshot one element of a web page" task via API.

Image

Integrate "Screenshot one element of a web page" into your workflow

Connect "Screenshot one element of a web page" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The element screenshot task takes any CSS selector, such as #pricing or .chart. The first matching element is captured.

The element screenshot task costs $1 per 1,000 screenshots.

Each screenshot from the element screenshot task is stored in the run's key-value store, and the dataset row has a direct screenshotUrl link you can open or share.