Codepen Scraper avatar

Codepen Scraper

Pricing

Pay per event

Go to Apify Store
Codepen Scraper

Codepen Scraper

Scrape CodePen pens, author profiles, collections, trending content, and search results with full code extraction

Pricing

Pay per event

Rating

0.0

(0)

Developer

codingfrontend

codingfrontend

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

12 days ago

Last modified

Share

A comprehensive Apify actor for scraping CodePen content including pens, author profiles, collections, trending content, and search results.

Features

  • Pen Scraping: Scrape full pen data including HTML, CSS, JS code, resources, and metadata
  • Author Profiles: Extract author information including followers, following, bio, and all their pens
  • Collections: Scrape entire collections with all contained pens
  • Trending Content: Get trending, popular, or staff-picked pens by time period
  • Search: Search for pens, projects, collections, or posts by keyword
  • Avatar & Thumbnails: Extract author avatars and pen thumbnail images

Input Configuration

Scraping Modes

ModeDescription
penScrape specific pen(s) by URL
authorScrape author profile and all their public pens
author_pensScrape only author's pens (no profile)
collectionScrape all pens in a collection
trendingScrape trending/popular pens
searchSearch for pens by keyword

Input Parameters

{
"mode": "pen",
"urls": ["https://codepen.io/skullface/pen/dKYzyv"],
"searchQuery": "css animation",
"searchType": "pens",
"trendingPeriod": "today",
"trendingCategory": "all",
"maxPens": 50,
"scrapeFullPenData": true,
"scrapeAuthorProfile": true,
"scrapeAvatar": true,
"scrapeThumbnail": true,
"maxConcurrency": 5,
"requestTimeout": 60
}

Parameter Details

ParameterTypeDefaultDescription
modestringpenScraping mode: pen, author, collection, trending, search
urlsarray[]List of CodePen URLs to scrape
searchQuerystring""Search term for search mode
searchTypestringpensType of search: pens, projects, posts, collections
trendingPeriodstringtodayPeriod for trending: today, week, month, year, all
trendingCategorystringallCategory: all, popular, picks
maxPensinteger50Maximum number of pens to scrape
scrapeFullPenDatabooleantrueInclude HTML/CSS/JS code in output
scrapeAuthorProfilebooleantrueAlso scrape author profile
scrapeAvatarbooleantrueInclude avatar image URL
scrapeThumbnailbooleantrueInclude pen thumbnail URL
maxConcurrencyinteger5Concurrent page processing
requestTimeoutinteger60Page load timeout in seconds

Output Examples

Pen Output

{
"type": "pen",
"penId": "dKYzyv",
"title": "My Awesome Pen",
"description": "A cool CSS animation",
"url": "https://codepen.io/skullface/pen/dKYzyv",
"views": 1234,
"likes": 56,
"comments": 7,
"html": "<div>...</div>",
"css": ".selector { ... }",
"js": "console.log('hello')",
"tags": ["css", "animation"],
"author": {
"userId": "123456",
"username": "skullface",
"displayName": "Skull Face",
"profileUrl": "https://codepen.io/skullface",
"avatarUrl": "https://assets.codepen.io/..."
},
"thumbnailUrl": "https://shots.codepen.io/...",
"scrapedAt": "2026-01-24T10:00:00.000Z"
}

Author Output

{
"type": "author",
"username": "skullface",
"displayName": "Skull Face",
"bio": "Designer & Developer",
"location": "New York",
"website": "https://example.com",
"followers": 1234,
"following": 567,
"avatarUrl": "https://assets.codepen.io/...",
"isPro": true,
"stats": {
"pens": 89,
"projects": 5,
"posts": 12,
"collections": 3
},
"socialLinks": {
"twitter": "https://twitter.com/skullface",
"github": "https://github.com/skullface"
},
"scrapedAt": "2026-01-24T10:00:00.000Z"
}

Usage Examples

Scrape a Single Pen

{
"mode": "pen",
"urls": ["https://codepen.io/skullface/pen/dKYzyv"]
}

Scrape Author Profile with All Pens

{
"mode": "author",
"urls": ["https://codepen.io/skullface"],
"maxPens": 100
}
{
"mode": "trending",
"trendingPeriod": "week",
"trendingCategory": "popular",
"maxPens": 50
}

Search for CSS Animation Pens

{
"mode": "search",
"searchQuery": "css animation",
"searchType": "pens",
"maxPens": 100
}

Scrape a Collection

{
"mode": "collection",
"urls": ["https://codepen.io/collection/XKgVvQ"]
}

Pricing

This actor uses a pay-per-result pricing model.

Data TypePrice per Result
Pen Details$0.005
Author Profile$0.010
Search Result$0.003
Trending Pen$0.003
Collection$0.008

Why Use This Scraper?

  • Complete Code Extraction: Get full HTML, CSS, and JavaScript code
  • Multiple Modes: Scrape pens, authors, collections, trending, or search
  • Comprehensive Data: Metadata, stats, resources, and author info
  • High Quality: Handles JavaScript rendering and dynamic content
  • Easy Export: Download data in JSON, CSV, or Excel format

Use Cases

  • Code Learning: Collect examples for learning web development
  • Design Inspiration: Gather UI/UX patterns and animations
  • Research: Analyze frontend trends and popular techniques
  • Portfolio Building: Archive interesting code snippets
  • Content Curation: Build curated collections of pen examples

Custom Solutions

Need a custom scraper or dedicated server setup? We offer:

  • On-demand scraper development for any website
  • Individual server setups with your own infrastructure
  • Custom modifications to existing scrapers
  • Priority support and maintenance

📧 Email: lakshmanan.w3dev@gmail.com
📱 WhatsApp: +91 6382775774