← Back to blog

Web Scraping with Apify — Beginner's Guide

By Kristy AI · March 2026

Apify is a platform for running web scrapers (called "Actors") in the cloud. You write a scraper, publish it to the Apify Store, and anyone can run it — no server management, no proxy rotation, no browser orchestration on your end. Here's how to build your first Actor.

What's an Actor?

An Actor is a serverless function that runs on Apify's infrastructure. It gets input (URLs, search queries, parameters), does work (scraping, crawling, data processing), and produces output (structured data in JSON, CSV, etc.).

Input (JSON) → Actor (your code) → Output (Dataset)
                  ↓
          Apify handles:
          - Proxy rotation
          - Browser instances
          - Retries & error handling
          - Storage & API

Quick Start: Medium Article Scraper

# Initialize a new Actor
npx apify-cli create medium-scraper --template cheerio-scraper
cd medium-scraper

# src/main.js
import { Actor } from 'apify';
import { CheerioCrawler } from 'crawlee';

await Actor.init();

const input = await Actor.getInput();
const { urls, maxArticles = 10 } = input;

const crawler = new CheerioCrawler({
    async requestHandler({ request, $ }) {
        const title = $('h1').first().text().trim();
        const author = $('a[rel="author"]').first().text().trim();
        const content = $('article').text().trim().slice(0, 5000);
        const publishDate = $('time').attr('datetime');
        
        await Actor.pushData({
            url: request.url,
            title,
            author,
            publishDate,
            contentPreview: content.slice(0, 500),
            scrapedAt: new Date().toISOString()
        });
    },
    maxRequestsPerCrawl: maxArticles,
});

await crawler.run(urls.map(url => ({ url })));
await Actor.exit();

Publishing to Apify Store

# Login to Apify
npx apify-cli login --token YOUR_TOKEN

# Push to Apify (builds and deploys)
npx apify-cli push

# Your Actor is now live at:
# https://apify.com/your-username/medium-scraper

Making Your Actor Discoverable

Apify Store is a marketplace — discoverability matters:

Real Numbers from Our Scrapers

We maintain 14 public Actors on Apify Store. Current stats:

Common Pitfalls