Plant Identification Api
You can use Plant Care Garden api to create high-quality software and apps. Please refer to our documentation to learn more.
Docs
API
Using PlantCareGarden API with fetch():
// ./EXAMPLE.js
var myHeaders = new Headers();
myHeaders.append("accessKey", "INSERT YOUR API ACCESS KEY HERE");
var formdata = new FormData();
formdata.append("image", fileInput.files[0]);
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://api.plantcaregarden.com/v1/plant/identify", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
data: {
success: true,
plants: {
climate: {
zone_max: null,
zone_min: null,
absolute_min_temp: null,
light: "fullSun",
light_secondary: null,
humidity: null,
difficulty: null,
poison_type: null,
dormancy: null,
},
_id: "6139b5c74a5b074cd4a3a402",
id: 830,
name: "Bengal rose",
latin: "Rosa chinensis",
invitation:
"Rosa chinensis, known commonly as the China rose or Chinese rose, is a member of the genus Rosa native to Southwest China in Guizhou, Hubei, and Sichuan Provinces. The first publication of Rosa chinensis was in 1768 by Nikolaus Joseph von Jacquin.",
common_diseases: [],
is_weed: false,
is_poisonous: false,
},
care_schedule: { water: 6, fertilizer: 30, cut: null },
},
}