# Web Scraper (Any Website) (`neuro-scraper/web-scraper`) Actor

Web Scraper SD - Web Scraper is a no-code data extraction tool that extracts any fields from any website with CSS selectors or XPath: list and detail pages, pagination by link selector, one row per page or per item, attributes and lists.

- **URL**: https://apify.com/neuro-scraper/web-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Web Scraper (Any Website)

The Web Scraper (Any Website) collects public Web data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the Web Scraper (Any Website) your input, start it and get structured Web data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

### Web Scraper - extract any website with CSS selectors, no code

Web Scraper turns any website into a dataset. Give it start URLs and the fields you want as CSS
selectors or XPath; it follows the links you choose (pagination, detail pages) and returns one row per
page or one row per repeated item. No code, no login, robots.txt respected.

#### Field syntax

| You write | You get |
|---|---|
| `"price": ".price_color"` | the text of the first match |
| `"link": "h3 a@href"` | an attribute (links and images are made absolute) |
| `"tags": ".tag[]"` | every match as a list |
| `"images": "img@src[]"` | every attribute value as a list |
| `"born": "xpath://span[@class='born']/text()"` | an XPath result |

#### Input

| Field | Default | Notes |
|---|---|---|
| Start URLs | - | category, search or listing pages |
| Item selector | - | e.g. `article.product_pod`: each match is one row; empty = one row per page |
| Fields to extract | title, h1 | the syntax above |
| Link selector | - | e.g. `li.next a` (pagination), `h3 a, li.next a` (detail pages + pagination); empty = every in-scope link |
| Max crawl depth | 1 | 0 = only the start URLs |
| Extract only on pages matching | - | URL globs; other pages are used only to find links |
| Crawl scope / include / exclude globs | same domain | |
| Max rows / max pages | 100 / 50 | |
| Respect robots.txt | on | |
| Proxy | Apify datacenter | RESIDENTIAL for sites that block datacenter IPs |

Every row also carries `url`, `itemIndex` (item mode), `pageTitle`, `depth` and `scrapedAt`.

#### Measured (2026-10-03, see TEST_REPORT.md)

- 80 products from 4 paginated pages in 7 seconds; 25 quotes with tag lists from 3 pages in 6 seconds.
- Detail pages only (via a URL glob): 5 product pages with XPath fields in 7 seconds.
- An invalid selector stops the run at once with a message naming the field.

#### Limits

- No browser: text that a page builds with JavaScript is not there to select.
- Anti-bot pages are reported and skipped, never solved.

#### Example

```json
{"startUrls": [{"url": "https://books.toscrape.com/"}], "itemSelector": "article.product_pod",
 "fields": {"title": "h3 a@title", "price": ".price_color", "detailUrl": "h3 a@href"},
 "linkSelector": "li.next a", "maxCrawlDepth": 3}
```

### Input

Every option of the Web Scraper (Any Website), as it appears in the input form and the API:

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array | `[{"url": "https://books.toscrape.com/"}]` | Pages to start from, e.g. a category or search results page. |
| `itemSelector` | string | `"article.product_pod"` | CSS selector of a repeated element (a product card, a list row). Each match becomes one row and the fields are read inside it. Empty = one row per page. |
| `fields` | object | `{"title": "h3 a@title", "price": ".price` | {"field name": "selector"}. CSS ("h1", ".price") or "xpath:<expression>". Add "@attribute" to read an attribute ("a@href", "img@src" - links are made absolute) and "\[]" for every match as a list (".tag\[]"). |
| `linkSelector` | string | `"li.next a"` | CSS selector of the links to follow, e.g. "li.next a" for pagination or "h3 a, li.next a" for detail pages plus pagination. Empty = follow every link inside the crawl scope. |
| `maxCrawlDepth` | integer | `1` | How many link steps from the start URLs to follow. 0 = only the start URLs. |
| `pageUrlGlobs` | array | `""` | URL globs (e.g. "https://books.toscrape.com/catalogue/\*/index.html"). Other pages are only used to find links. |
| `crawlScope` | string | `"sameDomain"` | Which links count as inside the site when no link selector is given. |
| `includeUrlGlobs` | array | `""` | Follow only links matching these globs (replaces the scope). |
| `excludeUrlGlobs` | array | `""` | Never follow links matching these globs. |
| `maxItems` | integer | `100` | Stop after this many rows. |
| `maxPages` | integer | `50` | Stop after loading this many pages. |
| `respectRobotsTxt` | boolean | `true` | Skip pages the site's robots.txt disallows (recommended). |
| `requestDelayMs` | integer | `800` | Politeness delay per site. |
| `maxConcurrency` | integer | `2` | Pages loaded at the same time (across sites). |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify datacenter proxy by default; choose RESIDENTIAL for sites that block datacenter IPs. |

### Why use the Web Scraper (Any Website)

The Web Scraper (Any Website) is a Web scraper and Web data extractor for anyone who needs public Web data as clean data. The Web Scraper (Any Website) handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the Web Scraper (Any Website) for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the Web Scraper (Any Website) runs on Apify with one click or one API call.
- Pay per result: the Web Scraper (Any Website) charges only for rows delivered - no monthly Web API fee.
- Complete fields: the Web Scraper (Any Website) returns every public field, with a stable schema for automation.
- Integrations: connect the Web Scraper (Any Website) to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### Web Scraper (Any Website) use cases

- Market research: the Web Scraper (Any Website) collects Web data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the Web Scraper (Any Website) on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the Web Scraper (Any Website) gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the Web Scraper (Any Website) keeps a fresh copy of Web data through an Apify schedule and a webhook.
- Analytics and dashboards: send the Web Scraper (Any Website) output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the Web Scraper (Any Website) returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the Web Scraper (Any Website) turns public Web data into a dataset you can diff run by run.
- Automation workflows: connect the Web Scraper (Any Website) to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the Web Scraper (Any Website) from the Apify Console, or call it from code. The Web Scraper (Any Website) returns its dataset as JSON, CSV or Excel. With the Apify API you can run the Web Scraper (Any Website) from Python or Node.js, wait for it to finish and read the rows, which makes the Web Scraper (Any Website) easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the Web Scraper (Any Website) on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the Web Scraper (Any Website). Follow the run log while the Web Scraper (Any Website) collects public Web data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the Web Scraper (Any Website) to keep your Web data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the Web Scraper (Any Website) with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller Web Scraper (Any Website) runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each Web Scraper (Any Website) run adds to your Web data over time.
- Filter early: use the input filters of the Web Scraper (Any Website) so you only pay for the Web data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every Web Scraper (Any Website) result straight to Google Sheets, a CRM or a database.
- Watch the run log: the Web Scraper (Any Website) writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### Web Scraper (Any Website) FAQ

#### Can I schedule it?

Yes. Apify schedules run the Web Scraper (Any Website) hourly, daily or weekly, and a webhook can notify your system when new Web data is ready.

#### Can I send the data to my CRM?

Yes. Push Web Scraper (Any Website) rows to HubSpot, Salesforce, Pipedrive or any CRM through Zapier, Make or a webhook - a common setup for an agency or B2B sales team.

#### Do I need a Web account or login?

No. The Web Scraper (Any Website) works with no login and no cookies. It reads only public data, the same data any visitor can see.

#### How fast is it?

The Web Scraper (Any Website) runs requests in parallel and rotates proxy sessions automatically, so a typical run of a few hundred items finishes in minutes.

#### What does this Web scraper do?

The Web Scraper (Any Website) collects public Web data and returns it as a structured dataset. It is web scraping without code: you set the input, start the Web Scraper (Any Website) and download JSON, CSV, Excel or XLSX.

#### What is the best Web scraper for data?

The Web Scraper (Any Website) is built for exactly this job: public Web data, complete fields, no login, pay per result and a clean export to JSON, CSV or Excel.

#### Can I run it for many inputs at once?

Yes. Give the Web Scraper (Any Website) a list of inputs in one run; each row says which input it came from, so one Web Scraper (Any Website) run can cover a whole list.

#### What happens if a run is interrupted?

The Web Scraper (Any Website) saves its progress, so a resurrected or restarted run continues where it stopped instead of paying for the same rows again.

#### Can I use it through the API?

Yes. Start the Web Scraper (Any Website) and read its dataset through the Apify API from Python, Node.js or any HTTP client, or call it from Zapier, Make and n8n.

#### Does it work with proxies?

Yes. The Web Scraper (Any Website) uses Apify Proxy by default and you can pick the proxy group or country in the input.

#### Is it legal to scrape Web?

The Web Scraper (Any Website) collects only publicly available data. If results contain personal data, process it under GDPR or the rules that apply to you, and only for a legitimate purpose.

#### How do I get more results?

Raise the maximum items, add more inputs (keywords, URLs or profiles), or run the Web Scraper (Any Website) several times on a schedule. Results are de-duplicated.

#### Which formats can I download?

The Web Scraper (Any Website) dataset downloads as JSON, CSV, Excel (XLSX), XML, RSS or an HTML table, and the Apify API returns the same Web Scraper (Any Website) data page by page.

#### Why is a field empty in my results?

The Web Scraper (Any Website) fills every field Web publishes for that item. When Web does not show a value - for example a figure the owner hid - the field stays empty rather than being guessed.

#### Do you offer custom scrapers?

Yes. If you need a field or a filter the Web Scraper (Any Website) does not have yet, contact Neuro Scraper through the Apify Store page and we can extend the Web Scraper (Any Website) for you.

#### Can it replace the official Web API?

For public data, yes. The Web Scraper (Any Website) gives you Web data through the Apify API without an official Web API key, quota approval or developer account.

#### How is this different from other Web scrapers?

The Web Scraper (Any Website) combines complete public fields, no login, pay-per-result pricing and a stable output schema, so the Web Scraper (Any Website) fits both quick one-off exports and long-running automation.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Website Content Crawler](https://apify.com/neuro-scraper/website-content-crawler) | Website content data with all public fields, exported to JSON, CSV or Excel |
| [Website Images Scraper](https://apify.com/neuro-scraper/website-images-scraper) | Website images with all public fields, exported to JSON, CSV or Excel |
| [Website SEO Audit Scraper](https://apify.com/neuro-scraper/website-seo-audit-scraper) | Website seo audit data with all public fields, exported to JSON, CSV or Excel |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-search-scraper) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-hashtag-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

## `startUrls` (type: `array`):

Pages to start from, e.g. a category or search results page.

## `itemSelector` (type: `string`):

CSS selector of a repeated element (a product card, a list row). Each match becomes one row and the fields are read inside it. Empty = one row per page.

## `fields` (type: `object`):

{"field name": "selector"}. CSS ("h1", ".price") or "xpath:<expression>". Add "@attribute" to read an attribute ("a@href", "img@src" - links are made absolute) and "\[]" for every match as a list (".tag\[]").

## `linkSelector` (type: `string`):

CSS selector of the links to follow, e.g. "li.next a" for pagination or "h3 a, li.next a" for detail pages plus pagination. Empty = follow every link inside the crawl scope.

## `maxCrawlDepth` (type: `integer`):

How many link steps from the start URLs to follow. 0 = only the start URLs.

## `pageUrlGlobs` (type: `array`):

URL globs (e.g. "https://books.toscrape.com/catalogue/\*/index.html"). Other pages are only used to find links.

## `crawlScope` (type: `string`):

Which links count as inside the site when no link selector is given.

## `includeUrlGlobs` (type: `array`):

Follow only links matching these globs (replaces the scope).

## `excludeUrlGlobs` (type: `array`):

Never follow links matching these globs.

## `maxItems` (type: `integer`):

Stop after this many rows.

## `maxPages` (type: `integer`):

Stop after loading this many pages.

## `respectRobotsTxt` (type: `boolean`):

Skip pages the site's robots.txt disallows (recommended).

## `requestDelayMs` (type: `integer`):

Politeness delay per site.

## `maxConcurrency` (type: `integer`):

Pages loaded at the same time (across sites).

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy by default; choose RESIDENTIAL for sites that block datacenter IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    }
  ],
  "itemSelector": "article.product_pod",
  "fields": {
    "title": "h3 a@title",
    "price": ".price_color",
    "inStock": ".availability",
    "rating": "p.star-rating@class",
    "detailUrl": "h3 a@href",
    "image": "img@src"
  },
  "linkSelector": "li.next a",
  "maxCrawlDepth": 3,
  "crawlScope": "sameDomain",
  "maxItems": 100,
  "maxPages": 50,
  "respectRobotsTxt": true,
  "requestDelayMs": 800,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://books.toscrape.com/"
        }
    ],
    "itemSelector": "article.product_pod",
    "fields": {
        "title": "h3 a@title",
        "price": ".price_color",
        "inStock": ".availability",
        "rating": "p.star-rating@class",
        "detailUrl": "h3 a@href",
        "image": "img@src"
    },
    "linkSelector": "li.next a",
    "maxCrawlDepth": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/web-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://books.toscrape.com/" }],
    "itemSelector": "article.product_pod",
    "fields": {
        "title": "h3 a@title",
        "price": ".price_color",
        "inStock": ".availability",
        "rating": "p.star-rating@class",
        "detailUrl": "h3 a@href",
        "image": "img@src",
    },
    "linkSelector": "li.next a",
    "maxCrawlDepth": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/web-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    }
  ],
  "itemSelector": "article.product_pod",
  "fields": {
    "title": "h3 a@title",
    "price": ".price_color",
    "inStock": ".availability",
    "rating": "p.star-rating@class",
    "detailUrl": "h3 a@href",
    "image": "img@src"
  },
  "linkSelector": "li.next a",
  "maxCrawlDepth": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call neuro-scraper/web-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/web-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sRY5hoqQMW8CzAyaO/builds/h6RA2cMSIkldtnDAh/openapi.json
