The official Node.js client for accessing plant variety and species data from the Verdantly API.
npm install verdantly
You'll need a valid API key from RapidAPI.
import { VerdantlyClient } from 'verdantly';
const client = new VerdantlyClient({ apiKey: 'your-api-key' });
const results = await client.searchPlantVarietiesByFilter({
category: "fruit",
waterRequirement: "low"
});
for (const plant of results.data) {
console.log(plant.name);
}
More examples available in examples/starter
.
searchPlantVarietiesByName(query: string, page?: number)
searchPlantVarietiesByFilter(filters: object, page?: number)
searchPlantSpeciesByName(query: string, page?: number)
searchPlantSpeciesByFilter(filters: object, page?: number)
All client responses are fully typed, with built-in TypeScript definitions included in the package.
-
src/
— client source code -
examples/starter/
— starter project -
dist/
— compiled output (after build)
MIT © Verdantly