Dinosaurs by Query
API Endpoint and Description
Section titled “API Endpoint and Description”GET {baseUrl}/api/v1/search?clade={clade}&diet={diet}&locomotion={locomotion}`Returns all dinosaurs matching a specific query.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
clade | array | No | The clades dinosaurs belong to (comma-separated or array) | "Dinosauria,Ornithischia" |
diet | string | No | The diet type of dinosaurs to retrieve | "herbivore" |
locomotion | string | No | The locomotion type of dinosaurs to retrieve | "biped" |
Valid Values:
diet:carnivore,herbivore,omnivore,piscivorelocomotion:biped,facultative biped,gliding,quadruped,swimming
Response Structure
Section titled “Response Structure”{ "count": 25, "data": [ { "id": 1118, "name": "Zephyrosaurus", "temporalRange": "Early Cretaceous, ~113 Ma", "diet": "herbivore", "locomotionType": "biped", "description": "...", "classificationInfo": {...}, "image": {...}, "source": {...} } ]}