List Pens
The key owner's Pens, filtered. Every filter given must match.
With block, a request scans at most 500 candidate Pens: the Link header has first and, while candidates remain, next with a cursor, but no last. Follow next until it is absent, even when the page is empty or X-CodePen-Partial is true.
Request
- Base URLhttps://api.codepen.io
- Auth
- HTTP bearer
- or API key in header X-API-Key
Query parameters
The page, from 1.
Items per page. A value over 100 is reduced to 100, not refused.
The order: by creation or update time, by popularity, or by title.
desc, the default, lists newest first.
Comma list of Public, Private, Protected and Collaborators.
true for Pens with a live deployment, false for Pens without one.
true for Pens marked as templates, false for the rest.
Forked for forks only, NotForked for Pens that are not forks.
V2, or Classic for Pens made in the classic editor.
Comma list of up to three tags; a Pen tagged with any of them matches. Tags are matched the way they are saved: lowercased, spaces as dashes, punctuation dropped.
Matches the title or description, up to 200 characters. Every word has to appear, "quoted words" stay together and -word excludes one.
Pens created since this time (RFC 3339).
Pens created until this time (RFC 3339).
Pens updated since this time (RFC 3339).
Pens updated until this time (RFC 3339).
true for Pens with no title.
Pens whose saved head uses this Block, such as sass-1. A capped scan; see the operation description.
With block only: the cursor from the next link. Not combined with page.
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.