coub big json

Coub big JSON contains all available data about a coub video:

  • id (integer) — the coub identifier;
  • type (string)Coub::Simple by default or Coub::Recoub if it is a recoub;
  • permalink (string) — the permalink of the coub;
  • title (string) — the title of the coub;
  • visibility_type (string) — the type of the coub's visibility; accepts one of the following values:
    • public — the coub is visible for everyone;
    • friends — the coub is visible only for its creator's friends;
    • unlisted — the coub is accessible only via direct link;
    • private — the coub is visible only for its creator.
  • channel_id (integer) — the identifier of the channel that the coub belongs to;
  • created_at (UNIX-time) — the time when the coub was created;
  • updated_at (UNIX-time) — the time of the last coub's update;
  • is_done (boolean) — whether the coub's uploading process is completed;
  • duration (float) — the duration of the coub video in seconds;
  • views_count (integer) — the number of times the coub was viewed;
  • cotd (boolean) — whether the coub was chosen as the coub of the day;
  • cotd_at (UNIX-time) — the date when the coub was chosen as the coub of the day;
  • recoub (boolean) — whether the coub was recoubed by the current channel;
  • like (boolean) — whether the coub was liked by the the current channel;
  • recoubs_count (integer) — the number of recoubs of the coub;
  • likes_count (integer) — the number of likes the coub has received;
  • recoub_to (integer) — the identifier of the original coub which the current coub is recoubed from;
  • flag (boolean) — whether the coub has any abuses;
  • original_sound (boolean) — if the coub has the audio track from its source video;
  • has_sound (boolean) — whether the coub has an audio track;

  • file_versions (JSON) — the JSON object that describes versions of coub's video formats; it contains several nested JSON objects:

    • web (JSON) — the JSON object that contains the coub data specific to the version of the video that intented to be displayed on web sites:
      • template (string) — the template of the URLs to the files specified in this JSON;
      • types (array) — the array of strings that specify video formats in which the coub is coded; available formats are: flw, mp4;
      • version (array) — the array of strings of video dimensions of the coub; available dimensions are:
        • big — scaled into 1280x1280 rectangle;
        • med — scaled into 640x500 rectangle;
        • small — scaled into 400x400 rectangle;
    • web_chunks (JSON) — the JSON object that contains the coub data, specific to the version of the video intented to be displayed on web sites, that divided into several parts — chunks:
      • template (string) — the template of the URLs to the files specified in this JSON;
      • types (array) — the array of strings that specify video formats in which the coub is coded; available formats are: flw, mp4;
      • version (array) — the array of strings of video dimensions of the coub; available dimensions are:
        • big — scaled into 1280x1280 rectangle;
        • med — scaled into 640x500 rectangle;
        • small — scaled into 400x400 rectangle;
      • chunks (array) — the array of integers — chunks numbers;
    • html5 (JSON) — the JSON object that contains the coub data specific to the HTML5 version of the coub video:
      • template (string) — the template of the URLs to the files specified in this JSON;
      • chunks (array) — the array of integers — chunks numbers;
    • iphone (JSON) — the JSON object that contains a coub data specific to the version of the video intented to be displayed on iOS devices.
      • url (string) — the URL to the video file;
    • mobile (JSON) — the JSON object that contains the coub data specific to the version of the video intented to be displayed on mobile devices:
      • audio_url (string) — the URL to the audio track of this coub version;
      • base64_url (string) — the URL to the mobile version of the video file that is encoded in the base64 format;
      • base64_files (array) — the array of URLs to the chunks of the mobile video version encoded in the base64 format;
      • frames_count (integer) — the number of frames of the video file;
  • audio_versions (JSON) — the JSON object that describes versions of coub's audio formats;

    • template (string) — the template of the URLs to the files specified in this JSON;
    • version (array) — the array of strings of audio qualities of the coub; available qualities are: high, mid, low;
    • chunks (JSON) — the JSON object that contains data specific to chunks of the audio track.
      • template (string) — the template of the URLs to the files specified in this JSON;
      • version (array) — the array of strings of audio qualities of the chunks; available qualities are: high, mid, low;
        • chunks (JSON) — the array of integers — chunks numbers;
  • flv_audio_versions (JSON) — the JSON object that describes versions of the audio track that relates to the flv-version of the coub video;

    • file (JSON) — the JSON object that describes the audio track of flv-version of the coub.
      • template (string) — the template of the URLs to the files specified in this JSON;
      • version (array) — the array of strings of audio qualities of the chunks; available qualities are: high, mid, low;
    • chunks (JSON) — the JSON object that contains data, specific to chunks of the audio track of the flv-version.
      • template (string) — the template of the URLs to the files specified in this JSON;
      • version (array) — the array of strings of audio qualities of the chunks; available qualities are: high, mid, low;
      • chunks (JSON) — the array of integers — chunks numbers;
  • image_versions (JSON) — the JSON object that describes available thumbnail images of the video;

    • template (string) — the template of the URLs to the files specified in this JSON;
    • version (array) — the array of strings that describe types of preview images; available types are:
      • micro — 70x46 pixels;
      • tiny — 112x85 pixels;
      • age_restrcited — 640x640 pixels; this image have the restriction sign;
      • ios_large — 600x525 pixels; intended to be dispayed on iOS devices;
      • big — 1280x1280 pixels;
      • med — 640x500 pixels;
      • small — 400x400 pixels;
      • pinterest — 600x600 pixels; intended to be dispayed in pinterest web site;
  • first_frame_versions (JSON) — the JSON object that describes the first frame of the coub;

    • template (string) — the template of the URLs to the files specified in this JSON;
    • version (array) — the array of strings that describe types of preview images; available types are:
      • big — 1280x1280 pixels;
      • med — 640x500 pixels;
      • small — 400x400 pixels;
      • ios_large — 600x525 pixels; this image is intended to be dispayed on iOS devices;
  • dimensions (JSON) — the JSON objects describes exact resolutions for every version of the coub video:

    • big (array) — the array that contains two integers: the height and the width of the video with the big resolution;
    • med (array) — the array that contains two integers: the height and the width of the video with the med resolution;
    • small (array) — the array that contains two integers: the height and the width of the video with the small resolution;
  • age_restricted (boolean) — whether the coub video has age restrictions set by its creator;

  • age_restricted_by_admin (boolean) — whether the coub video has age restrictions set by the Coub administration;

  • allow_reuse (boolean) — whether the coub video is allowed to be used in other coubs;

  • banned (boolean) — whether the coub video is banned by the Coub administration;

  • external_download (JSON) — the JSON objects that describes the external source of the video (in case if it is uploaded from a user computer, this field is set to false).

    • type (string) — the type of the external source; can be one of the following:
      • Youtube;
      • Vimeo;
      • Vk;
      • Instagram;
      • Vine;
      • Wimp;
      • Facebook;
      • Odnoklassniki;
      • Funnyordie;
      • Carambatv;
      • CollegeHumor;
      • LiveLeak;
      • Dailymotion;
      • TetTv;
    • url (string) — the URL of the source video;
  • channel (JSON) — the channel small JSON that describes the channel the video is uploaded to;

  • percent_done (integer) — the percent of the completion of the video upload;
  • tags (array) — the array of JSON objects that stores the data of tags added to the coub:

    • id (integer) — the id of the tag;
    • title (string) — the title of the tag;
    • value (string) — the title of the tag with escaped characters;
  • raw_video_id (integer) — the id of the uploaded video file's source;

  • media_blocks (JSON) — the JSON object that stores the data relates to the sources of the coub's video and audio:

    • audio_track (JSON) — the JSON object stores the data relates to the source of the coub's audio track:
      • id (integer) — the identifier of the source audio file;
      • title (string) — the original title of the source audio;
      • url (string) — the URL to the source audio file;
      • image (string) — the URL to the thumbnail image of the audio track;
      • image_retina (string) — the URL to the high resolution thumbnail image of the audio track;
      • itunes_url (string) — the URL to the iTunes resource that contains the audio track (if the audio have an other source — is set to null)
      • amazon_url (string) — the URL to the Amazon resource that contains the audio track (if the audio have an other source — is set to null)
      • bandcamp_url (string) — the URL to the Bandcamp resource that contains the audio track (if the audio have an other source — is set to null)
      • soundcloud_url (string) — the URL to the Soundcloud resource that contains the audio track (if the audio have an other source — is set to null)
      • track_name (string) — the name of the original audio track;
      • track_artist (string) — the author of the original audio track;
      • track_album (string) — the album contains the original audio track;
      • meta (JSON) — the JSON object contains meta information about the audio track:
        • year (string) — the year of the track's release;
        • album (string) — the track's album;
        • title (string) — the track's title;
        • artist (string) — the track's author;
    • external_video (JSON) — the JSON object that stores the data relates to the source of the coub's video.
      • id (integer) — the identifier of the source audio file;
      • title (string) — the original title of the source video;
      • url (string) — the URL to the source video file;
      • image (string) — the URL to the thumbnail image of the video;
      • image_retina (string) — the URL to the high resolution thumbnail image of the video;
      • itunes_url (string) — the URL to the iTunes resource that contains the video (if the video have an other source — is set to null)
      • amazon_url (string) — the URL to the Amazon resource that contains the video (if the audio video an other source — is set to null)
      • bandcamp_url (string) — the URL to the Bandcamp resource that contains the video (if the video have an other source — is set to null)
      • soundcloud_url (string) — the URL to the Soundcloud resource that contains the video track (if the video have an other source — is set to null)
  • raw_video_thumbnail_url (string) — the URL to the source video thumbnail;

  • raw_video_title (string) — the title of the source video.