Scrape Substack newsletters and articles. Use when user asks to search Substack, find newsletter posts, extract Substack content, or monitor Substack publica...
Scrape Substack newsletters using an Apify Actor via the REST API.
BULaGFURBV7WG3K81
APIFY_TOKEN environment variable must be setcurl and jq must be availableAsk what they want to scrape. Supported input fields:
urls (array of strings) - Substack publication URLs to scrapemaxArticles (integer) - max articles per publicationincludeContent (boolean) - include full article textRESULT=$(curl -s -X POST "https://api.apify.com/v2/acts/BULaGFURBV7WG3K81/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://example.substack.com"], "maxArticles": 20}')
echo "$RESULT" | jq '.'
RUN_ID=$(curl -s -X POST "https://api.apify.com/v2/acts/BULaGFURBV7WG3K81/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://example.substack.com"], "maxArticles": 100}' | jq -r '.data.id')
curl -s "https://api.apify.com/v2/actor-runs/$RUN_ID?token=$APIFY_TOKEN" | jq -r '.data.status'
curl -s "https://api.apify.com/v2/actor-runs/$RUN_ID/dataset/items?token=$APIFY_TOKEN" | jq '.'
Summarize articles: titles, authors, dates, engagement. Offer JSON/CSV export.
export APIFY_TOKEN=your_tokenZIP package — ready to use