Collections

List Collections

The key owner's Collections, optionally filtered by access.

get/v2/collections

Request

  • Base URL
    https://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' | 'popularity'

The order: by creation or update time, or by popularity.

direction'asc' | 'desc'

desc, the default, lists newest first.

accessstring

Comma list of Public and Private.

Response

A page of Collections.

access'Public' | 'Private' required

Private needs a PRO plan.

created_atstring date-time required
descriptionstring required
idstring required
items_countinteger required
popularityinteger required
titlestring required
updated_atstring date-time required
urlstring uri required

Changes

No recorded changes to this operation across all 1 revision of this API.