Retrieving digital assets...
Scrape CodePen pens, author profiles, collections, trending content, and search results with full code extraction
99%
30s
500+
A comprehensive Apify actor for scraping CodePen content including pens, author profiles, collections, trending content, and search results.
| Mode | Description |
|---|---|
pen | Scrape specific pen(s) by URL |
author | Scrape author profile and all their public pens |
author_pens | Scrape only author's pens (no profile) |
collection | Scrape all pens in a collection |
trending | Scrape trending/popular pens |
search | Search for pens by keyword |
{
"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 | Type | Default | Description |
|---|---|---|---|
mode | string | pen | Scraping mode: pen, author, collection, trending, search |
urls | array | [] | List of CodePen URLs to scrape |
searchQuery | string | "" | Search term for search mode |
searchType | string | pens | Type of search: pens, projects, posts, collections |
trendingPeriod | string | today | Period for trending: today, week, month, year, all |
trendingCategory | string | all | Category: all, popular, picks |
maxPens | integer | 50 | Maximum number of pens to scrape |
scrapeFullPenData | boolean | true | Include HTML/CSS/JS code in output |
scrapeAuthorProfile | boolean | true | Also scrape author profile |
scrapeAvatar | boolean | true | Include avatar image URL |
scrapeThumbnail | boolean | true | Include pen thumbnail URL |
maxConcurrency | integer | 5 | Concurrent page processing |
requestTimeout | integer | 60 | Page load timeout in seconds |
{
"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"
}
{
"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"
}
{
"mode": "pen",
"urls": ["https://codepen.io/skullface/pen/dKYzyv"]
}
{
"mode": "author",
"urls": ["https://codepen.io/skullface"],
"maxPens": 100
}
{
"mode": "trending",
"trendingPeriod": "week",
"trendingCategory": "popular",
"maxPens": 50
}
{
"mode": "search",
"searchQuery": "css animation",
"searchType": "pens",
"maxPens": 100
}
{
"mode": "collection",
"urls": ["https://codepen.io/collection/XKgVvQ"]
}
This actor uses a pay-per-result pricing model.
| Data Type | Price per Result |
|---|---|
| Pen Details | $0.005 |
| Author Profile | $0.010 |
| Search Result | $0.003 |
| Trending Pen | $0.003 |
| Collection | $0.008 |
Need a custom scraper or dedicated server setup? We offer:
š§ Email: lakshmanan.w3dev@gmail.com
š± WhatsApp: +91 6382775774
Explore more automation tools and scrapers to supercharge your data acquisition workflow.