Skip to main content
use-apify.com

Data extraction: guides & tutorials

Selectors, headless rendering, and APIs for reliable structured fields. Build extraction pipelines faster with Apify scrapers, schemas, and retries.

5 articles

View all tags

Data extraction is the step that turns a fetched page into reliable structured fields: prices, titles, dates, contacts, and more. These guides cover CSS and XPath selectors, headless rendering for JavaScript content, and calling site APIs directly when raw HTML is too brittle.

Robust extraction survives layout changes through resilient selectors, schema validation, and retries. Apify scrapers return clean JSON or CSV you can load straight into a database or warehouse. Below you will find tutorials for building extraction pipelines that stay accurate as target sites evolve.

Related topics

AI8 min read

Web Scraping with AI: How LLMs Are Transforming Data Extraction in 2026

· 8 min read
Yassine El Haddad
Software Developer & Automation Specialist

LLMs did not replace CSS overnight, but they did change where teams spend time: instead of nursing a selector file per theme, you can often send cleaned HTML (or markdown) to a model and ask for JSON against a schema—handy when layouts drift or you touch many domains. Large language models reason about semantics, so fields like price, rating, and stock can come back without hand-built paths—at the cost of latency, tokens, and occasional guesses. The sections that follow spell out four common roles for LLMs in scraping (selector help, structured extraction, classification, validation), where that breaks down, and when traditional selectors or pre-built Actors still win. Try Firecrawl extract · Apify Store

Data extraction3 min read

Firecrawl Ecommerce Product Scraping: Clean JSON Product Data 2026

· 3 min read
Yassine El Haddad
Software Developer & Automation Specialist

Use Firecrawl to scrape product pages into structured JSON. Map product URLs first, extract with a schema (name, price, stock, brand), validate and normalize, then upsert to your storage. For heavy anti-bot sites or very high volume, Apify ecommerce actors may be a better fit.

Start Firecrawl product scraping →

Automation11 min read

13 Best Web Scraping Tools in 2026, Tested & Priced

· 11 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

The best web scraping tools in 2026 are Apify (#1 all-in-one platform, $5 free credit, Starter $29/mo), Scrape.do (#2 best-value API, $29/mo Hobby = 250,000 successful requests, 1,000 free, no card), Bright Data (best enterprise unblocking and proxy network), Firecrawl (best for LLM and RAG markdown, $16/mo Hobby), and Crawlee (best open-source library, free MIT).

The best tool depends on whether you want a hosted platform, a drop-in API, a code library you run yourself, or raw proxies. This roundup compares thirteen mature options with honest pros and cons, a single comparison table (type, best-for, free tier, pricing floor, skill level), and a short decision framework.

Apify7 min read

Apify vs. ScrapingBee 2026: Full Comparison

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Apify is a full scraping platform with 30,000+ Actors. ScrapingBee is a proxy/rendering API. Choose Apify for pre-built scrapers; choose ScrapingBee if you already have scraper code and need a rendering proxy.

ScrapingBee sells a simple HTTP API: send a URL, add flags for JavaScript rendering and proxy country, get HTML back—you parse it.

Apify is a cloud automation platform: 30,000+ pre-built Actors (scrapers and workflows), hosted execution, datasets, scheduling, webhooks, and integrations.

Both can sit in a modern data stack; they optimize for different layers of the problem. Below is a single comparison table, then when to pick which, pricing notes, and FAQ.

AI agents11 min read

Apify MCP Server for Claude Desktop: Setup, Prompts & Alternatives (2026)

· 11 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick answer

MCP (Model Context Protocol) is an open standard (originated by Anthropic) that lets assistants like Claude call external tools over a defined protocol. The Apify MCP server exposes thousands of Apify Actors as those tools so Claude can start real scrapes and automations on Apify's cloud and read the results back into chat. Claude Desktop setup: the recommended path in 2026 is to add the hosted remote connector at https://mcp.apify.com/?fpr=use-apify and authenticate via OAuth on first use (no token to paste, auto-updating). The local alternative runs npx -y @apify/actors-mcp-server with your APIFY_TOKEN and a short --actors list. Either way, restart Claude fully after editing config. Runs bill like normal Apify usage (free tier includes monthly credits).

Large language models do not browse the web on their own. MCP fixes that gap: the client (Claude Desktop) talks to a small MCP server, which runs tools on your behalf. With Apify, those tools are Actors (pre-built scrapers and automations in the Apify Store), so Claude can request live data instead of guessing from training cutoffs. MCP is the same open standard that Claude Code, ChatGPT, VS Code, and Cursor use, so the Apify connector works across those clients too.

This guide focuses on Claude Desktop, compares hosted vs local Apify MCP, shows example prompts, contrasts Firecrawl and Bright Data MCP-style workflows, and covers troubleshooting. New to Claude Desktop? You can try Claude free for a week and wire up the connector before deciding on a paid plan.

Start scraping on Apify for free · Apify MCP docs

Guides on this site

Frequently asked questions

Frequently Asked Questions

Data extraction means parsing HTTP responses—HTML, JSON, XML—and converting them to structured rows you can analyze or store. It is distinct from crawling, which discovers URLs, and from loading, which writes to a database. Clean extraction pipelines separate parsing logic from network code for independent testing.

Use optional chaining and default values to avoid null explosions. Log extraction failures with the raw HTML snippet so you can debug selector drift. Test selectors against a snapshot fixture file so CI catches upstream format changes before they corrupt production datasets. Versioned snapshots also support audits.

Newline-delimited JSON (JSONL) balances human readability with streaming append; Parquet compresses columnar analytics data efficiently. Avoid one-giant-JSON-array files that require loading everything into memory. Apify datasets default to JSONL and expose export endpoints for CSV and JSON for downstream consumers.

Validate against a JSON schema on write, capture extraction rate metrics, and alert when it drops suddenly. Use canonical URL patterns to deduplicate, and fingerprint records to detect duplicates that differ only in whitespace. Spot-check samples weekly and log diffs when new parser versions ship.