Skip to content

Retrieve all dinosaur images

GET
/images

Accepts page query for pagination.

page
integer
default: 1 >= 1 <= 24

Successful operation

object
prevPage

URL to previous page, empty string if first page

string
Example
/api/v1/images?page=1
currentPage

Current page number

integer
Example
2
nextPage

URL to next page, empty string if last page

string
Example
/api/v1/images?page=3
count

Number of items on current page

integer
Example
50
data
Array<object>
object
title
string
Example
Zephyrosaurus in Copenhagen
description
string
Example
Zephyrosaurus skeleton, Natural History Museum of Denmark, Copenhagen.
author
string
Example
FunkMonk
authorURL
string format: uri
Example
https://commons.wikimedia.org/wiki/User:FunkMonk
imageURL
string format: uri
Example
https://commons.wikimedia.org/wiki/File:Zephyrosaurus_in_Copenhagen.jpg
license
string
Example
Creative Commons Attribution-Share Alike 3.0
licenseURL
string format: uri
Example
https://creativecommons.org/licenses/by-sa/3.0
dateCreated
string format: date-time
Example
2021-10-01T07:58:48.000Z
dateAccessed
string format: date-time
Example
2024-01-30T14:27:20.683Z

No images found

object
error
string
Example
Sorry, there was an error retrieving all dinosaur images

Unexpected error

object
error
string
Example
Sorry, an unexpected error occurred while retrieving all dinosaur images