Collections
List a Collection's Pens
The key owner's own Pens in the Collection, sorted by the Pens' own timestamps.
get/v2/collections/{id}/pens
Request
- Base URLhttps://api.codepen.io
- Auth
- HTTP bearer
- or API key in header X-API-Key
Query parameters
pageinteger
The page, from 1.
per_pageinteger
Items per page. A value over 100 is reduced to 100, not refused.
sort'created' | 'updated'
The order: by creation or update time.
direction'asc' | 'desc'
desc, the default, lists newest first.
Response
A page of Pens.
Example response
[
{
"build": {
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
},
"saved_version": {
"build": {
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
},
"files": [
{
"name": "app.js",
"path": "/src/app.js"
}
]
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.