Skip to content

Retrieve all dinosaurs

GET
/dinosaurs

Retrieves all dinosaurs with pagination.

page
integer
default: 1 >= 1 <= 24

Page number to retrieve (50 items per page)

Successful operation

object
prevPage

URL to previous page, empty string if first page

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

Current page number

integer
Example
2
nextPage

URL to next page, empty string if last page

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

Number of items on current page

integer
Example
50
data
Array<object>
object
id
required
integer
Example
1118
name
required
string
Example
Zephyrosaurus
temporalRange
string
Example
Early Cretaceous, ~113 Ma
diet
string
Example
herbivore
locomotionType
string
Example
biped
description
string
Example
Zephyrosaurus (meaning "westward wind lizard") is a genus of orodromine ornithischian dinosaur.
classificationInfo
required
object
domain
string
Example
Eukaryota
kingdom
string
Example
Animalia
phylum
string
Example
Chordata
clade
Array<string>
Example
[
"Dinosauria",
"Ornithischia"
]
classInfo
Array<object>
object
classType
string
value
string
Example
[
{
"classType": "Class",
"value": "Reptilia"
}
]
orderInfo
Array<object>
object
orderType
string
value
string
Example
[
{
"orderType": "Order",
"value": "Ornithischia"
}
]
familyInfo
Array<object>
object
familyType
string
value
string
Example
[
{
"familyType": "Family",
"value": "Thescelosauridae"
},
{
"familyType": "Subfamily",
"value": "Orodrominae"
}
]
tribeInfo
Array<object>
object
tribeType
string
value
string
Example
[
{
"tribeType": "Tribe",
"value": "Thescelosaurini"
}
]
genusInfo
Array<object>
object
genusType
string
value
string
Example
[
{
"genusType": "Genus",
"value": "Zephyrosaurus"
}
]
speciesInfo
Array<object>
object
speciesType
string
value
string
Example
[
{
"speciesType": "Species",
"value": "Zephyrosaurus schaffi"
}
]
image
required
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
source
required
object
pageTitle
string
Example
Zephyrosaurus
author
string
Example
Wikipedia contributors
wikipediaURL
string format: uri
Example
https://en.wikipedia.org/wiki/Zephyrosaurus
license
string
Example
Creative Commons Attribution-Share Alike 4.0
licenseURL
string format: uri
Example
https://creativecommons.org/licenses/by-sa/4.0/deed.en
permalink
string format: uri
Example
https://en.wikipedia.org/w/index.php?title=Zephyrosaurus&oldid=1187326953
revisionHistoryURL
string format: uri
Example
https://en.wikipedia.org/w/index.php?title=Zephyrosaurus&action=history
lastRevision
string format: date-time
Example
2023-11-28T15:28:47Z
dateAccessed
string format: date-time
Example
2024-01-30T14:27:20.682Z
source
string
Example
Wikipedia, The Free Encyclopedia
publisher
string
Example
Wikimedia Foundation
citation
string
Example
Wikipedia contributors. "Zephyrosaurus." Wikipedia, The Free Encyclopedia. Wikimedia Foundation, 28 Nov 2023. Web. 30 Jan 2024.

No dinosaurs found

object
error
string
Example
Sorry, there was an error retrieving all dinosaurs

Unexpected error

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