Library

A library is the root organization container in Panda — it owns videos, defines the qualities they will be encoded at, controls which playback resolutions reach end-users, and holds the per-account...


Library

A library is the root organization container in Panda — it owns videos, defines the qualities they will be encoded at, controls which playback resolutions reach end-users, and holds the per-account security settings (referer policy, anti-download).

Most users have one library, automatically created on signup. Sub-accounts can have additional libraries linked to the parent.

Concepts

TermDescription
library_idUUID v4 — primary identifier of a library
video_library_id / pullzone_idNumeric IDs that map the library to Bunny CDN infrastructure
encodingResolutions the transcoding pipeline will generate (write-once per video)
playbackResolutions exposed to the player (subset of encoding expected)
keep_original_filesIf true, the uploaded master is preserved in storage
compression_modesize / balanced / quality — encoder preset trade-off
block_none_referIf true, the CDN rejects requests without an allowed referer
block_downloadLibrary-wide anti-download flag (HLS-only delivery)

Endpoints in this section

MethodPathPage
GET/libraryGet user library
GET/library/{library_id}Get library details or referrers
PUT/library/{library_id}Update qualities and processing settings (Video Qualities)

Business rules

  • Quality changes are not retroactiveencoding / playback updates affect new videos only.
  • playback should be a subset of encoding. The API does not reject violations; misconfigured combinations produce unavailable streams.
  • block_none_refer is not updatable through PUT /library/{library_id}. Use POST /library/{library_id}?action=referValidation instead.
  • Mutations sync to Bunny CDN asynchronously and invalidate memcache (getLibraryById_*, getVerifyIfHasLibraryId_*).

Related sections

  • Referrer Management — manage the allowed-domain whitelist and the global refer policy.
  • Block Download — toggle the library-wide download blocker.