Photograph with photographer attribution, dimensions, tags, engagement metrics, and upload timestamp. Used for photo sharing platforms, social media, and photography portfolios.
https://api.mockly.codes/photos?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/photosGet a collection of photos
/media/photos/photos/:idGet a single photo by ID
/media/photos/:id/photos/metaGet resource metadata and schema
/media/photos/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/photos?q=laptopGET https://api.mockly.codes/photos?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 photos
fetch('https://api.mockly.codes/photos?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/photos?count=10'
)
data = response.json()curl "https://api.mockly.codes/photos?count=10"fetch('https://api.mockly.codes/photos?nocache=true')idintegerUnique identifier for the photo
random_inttitlestringTitle or caption of the photo
sentencephotographerstringFull name of the photographer who took the photo
nameurlstringURL to the photo image file
image_urluriwidthintegerPhoto width in pixels
random_intheightintegerPhoto height in pixels
random_inttagsarrayArray of tags for categorization and search
tagslikesintegerNumber of likes or positive reactions the photo has received
random_intuploaded_atstringTimestamp when the photo 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