Go to example tasks

CSS Selector Extractor (any page, any field)

Give it URLs and CSS selectors and it returns exactly what those selectors match — text, HTML, an attribute or a match count — one row per URL, no browser required.

Try for free
Web Scraper — CSS Selector & Data Extractor
Web Scraper — CSS Selector & Data Extractorwebdatatools/css-selector-extractor
URL
Final URL
HTTP status code
Content type
+6 fields
Text
Number
Boolean
List
Object

Input

URLs:https://example.com+1
Selectors
name:title+1
selector:h1+1
type:text+1
First match only:true
Max matches per selector:20
Trim whitespace:true
Max concurrency:5
Proxy mode:auto
Proxy configuration:{2 fields}

Output fields

URL
Final URL
HTTP status code
Content type
Extracted fields
Match counts
HTML size (bytes)
Used proxy
Error
Scraped at

How it works

Sign up on Apify or log in

The Web Scraper — CSS Selector & Data Extractor Actor is ready to run with the inputs already set for "CSS Selector Extractor (any page, any field)". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "CSS Selector Extractor (any page, any field)" task

The Web Scraper — CSS Selector & Data Extractor Actor will start running based on the input automatically. You can also change all the input fields, like URLs, selectors, and more, to match your specific use case.

Receive the "CSS Selector Extractor (any page, any field)" 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, final url, HTTP status code, 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 "CSS Selector Extractor (any page, any field)" task via API.

Image

Integrate "CSS Selector Extractor (any page, any field)" into your workflow

Connect "CSS Selector Extractor (any page, any field)" 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