API Reference Pexels v0.1.0
Modules
Parses the given line
into a command.
The type of media you are requesting.
The locale of the search you are performing.
Desired photo orientation.
Minimum photo size filter enum. The current supported sizes are: large
(24MP), medium
(12MP) or small
(4MP).
%Pexels.Collection {
description: nil,
id: "z40vgi2",
media_count: 3,
photos_count: 2,
private: false,
title: "Purple",
videos_count: 1
}
Desired photo color.
%Pexels.Photo {
avg_color: "#AFAFAD",
height: 2736,
id: 156934,
photographer: "Flickr",
photographer_id: 42313,
photographer_url: "https://www.pexels.com/@flickr",
src: %Pexels.Photo.Source {
landscape: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200",
large: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=650&w=940",
large2x: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
medium: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=350",
original: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg",
portrait: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1200&w=800",
small: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=130",
tiny: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=1&fit=crop&h=200&w=280"
},
url: "https://www.pexels.com/photo/white-and-black-cat-156934/",
width: 3674
}
%Pexels.Photo.Source {
landscape: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200",
large: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=650&w=940",
large2x: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
medium: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=350",
original: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg",
portrait: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1200&w=800",
small: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&h=130",
tiny: "https://images.pexels.com/photos/156934/pexels-photo-156934.jpeg?auto=compress&cs=tinysrgb&dpr=1&fit=crop&h=200&w=280"
}
%Pexels.Video {
duration: 19,
height: 1080,
id: 1358988,
image: "https://images.pexels.com/videos/1358988/free-video-1358988.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",
url: "https://www.pexels.com/video/cat-playing-with-tape-1358988/",
user: %Pexels.Video.User {
id: 2421,
name: "Rene Asmussen",
url: "https://www.pexels.com/@reneasmussen"
},
video_files: [
%Pexels.Video.File {
file_type: "video/mp4",
height: 540,
id: 54545,
link: "https://player.vimeo.com/external/286612246.sd.mp4?s=a6a14a6a7e585d3d62454ab4501bae8a26727125&profile_id=165&oauth2_token_id=57447761",
quality: "sd",
width: 960
}
],
video_pictures: [
%Pexels.Video.Picture {
id: 120634,
nr: 0,
picture: "https://images.pexels.com/videos/1358988/pictures/preview-0.jpg"
}
],
width: 1920
}
%Pexels.Video.File {
file_type: "video/mp4",
height: 1080,
id: 54546,
link: "https://player.vimeo.com/external/286612246.hd.mp4?s=7464592b73c489f231d7eb741c36b44515b35f6f&profile_id=175&oauth2_token_id=57447761",
quality: "hd",
width: 1920
}
%Pexels.Video.Picture {
id: 120634,
nr: 0,
picture: "https://images.pexels.com/videos/1358988/pictures/preview-0.jpg"
}
The video quality of the video_file.
%Pexels.Video.User {
id: 3798027,
name: "KoolShooters",
url: "https://www.pexels.com/@kool-shooters"
}