Image file with metadata including dimensions, file size, format, photographer, location, tags, and URLs. Used for image hosting platforms, photo galleries, stock photo sites, and media libraries.
https://api.mockly.codes/images?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/imagesGet a collection of images
/media/images/images/:idGet a single image by ID
/media/images/:id/images/metaGet resource metadata and schema
/media/images/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/images?q=laptopGET https://api.mockly.codes/images?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 images
fetch('https://api.mockly.codes/images?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/images?count=10'
)
data = response.json()curl "https://api.mockly.codes/images?count=10"fetch('https://api.mockly.codes/images?nocache=true')idintegerUnique identifier for the image
random_inttitlestringTitle or caption of the image
sentencedescriptionstringBrief description of the image content
sentenceurlstringURL to the full-size image file
image_urlurithumbnail_urlstringURL to a smaller thumbnail version of the image
image_urluriwidthintegerImage width in pixels
image_widthheightintegerImage height in pixels
image_heightsizeintegerFile size in bytes
file_sizeformatstringImage file format (e.g., jpg, png, gif, webp, svg)
image_formattagsarrayArray of tags for categorization and search
tagsphotographerstringFull name of the photographer who took the image
namelocationstringLocation where the image was taken
cityuploaded_atstringTimestamp when the image was uploaded
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request