Authorization

You'll need to authorize your requests to access any of the endpoints in the Verdantly API. In this guide, we'll look at how authorization works. Verdantly uses the RapidAPI Platform to manage API keys.

API Key

To get an API key, you need to sign up for a free account on the RapidAPI platform. Once you have an account, subscribe to the Verdantly API. Choose the right plan for your needs. Our API serves enterprise customers to hobbyists. Our pro plan gives you access to all endpoints and features as well as new features as they are released. We also have a free plan that allows you to test the API and see if it fits your needs.

Once subscribed, you'll be able to see your API key in the RapidAPI developer dashboard under the Authorization tab. You can also see your API key in the Code Snippets section when testing endpoints on the Verdantly page on RapidAPI.

Search Plant Varieties by Name

curl --request GET
  --url 'https://verdantly-gardening-api.p.rapidapi.com/v1/plants/varieties/name?page=1'
  --header 'x-rapidapi-host: verdantly-gardening-api.p.rapidapi.com'
  --header 'x-rapidapi-key: <RAPID_API_KEY>'

You can now use this API key to authorize your requests to the Verdantly API. Include the API key in the x-rapidapi-key header of your requests.

Please be careful with your API key and don't commit it to GitHub!

Using a Client Library

If you use one of our official client libraries, you won't have to worry about any of the above — set your API key in the client configuration, and the client library will take care of the rest. All the client libraries will handle the necessary headers behind the scenes.

Was this page helpful?