PHP asset administration

While using Cloudinary, all your images, videos, and other raw files are uploaded to your Cloudinary account. You can use our Media Library web interface to browse through and manage your uploaded media assets and generated transformations. In addition, you can use methods from the Upload and Admin APIs, which offer methods for managing, organizing, and creating media assets.

  • Upload API methods can be used as needed.
  • Admin API methods are rate-limited.
    You can view the number of hourly Admin API requests allowed by your account plan in the Account page of your console settings.

Upload API

In addition to the upload method, this API includes methods for:

Admin API

A secure API with methods for managing and organizing your media assets, including:


The following PHP example returns the details of an uploaded image according to its public ID, using the Admin API asset method:

Copy to clipboard
use Cloudinary\Api\Admin\AdminApi;
$result = (new AdminApi())->asset("dog.mp4");

Sample output:

Copy to clipboard
 "bytes" : 120264,
  "created_at" : "2017-07-01T11:10:57Z",
  "derived" : [ 
    { "bytes" : 5729,
      "format" : "jpg",
      "id" : "1892cd020611691462a8dc6616f81881",
      "secure_url" : "https://.../c_fill,w_100,h_100/v1312461204/sample.jpg",
      "transformation" : "c_fit,h_150,w_100",
      "url" : "https://.../image/upload/c_fill,w_100,h_100/v1312461204/sample.jpg" }
    { "bytes" : 19173,
      "format" : "jpg",
      "id" : "383e22a57167445552a3cdc16f0a0c85",
      "secure_url" : "https://.../upload/w_230,h_168,c_fit/v1312461204/sample.jpg",
      "transformation" : "w_230,h_168,c_fit",
      "url" : "https://.../image/upload/w_230,h_168,c_fit/v1312461204/sample.jpg" }],
  "format" : "jpg",
  "height" : 576,
  "next_cursor" : "c87e7b39f7fdd66ec31985196b455c40",
  "public_id" : "sample",
  "resource_type" : "image",
  "secure_url" : "https://.../demo/image/upload/v1371282172/sample.jpg",
  "type" : "upload",
  "url" : "",
  "version" : 1371282172,
  "width" : 864

See also

✔️ Feedback sent!

Rate this page: