Quick Start
Get your first satellite image in a few steps.
Get your API keys
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
To begin using the Graniot API, you need to create an account on the Graniot APP. Once you have signed up, go to Settings > Developers in the top-right menu and generate your API key.

You will get a secure key like this:
This API key has to be used on the server side and must be secret and stored securely in your web or mobile app’s server-side code (such as in an environment variable or credential management system). Don’t expose this key on a website or embed it in a mobile application.
All calls have to be performed over HTTPS to the base URL:
Authentication to the API is performed with X-API-KEY header, use -H "X-API-KEY: JqUhiQYb.fg6UFvPifAbZkuiKrpQ5VluWhSIXwlvcyUE06d4P7AWZEMqJp9AWQk2TXVsxDXWxqCt.
Connected Accounts
Every API key is associated with your organisation. You can create multiple accounts for your organisation, ideally one for each of your organisation's customers. In this way all the data can be associated to a specific account.
In order to add an account for your organisation you only need to provide an email, this email will only be used as identifier.
Authenticating as a Connected Account
When you create a connected account, the response includes an account_access token. There are two ways to authenticate and perform actions on behalf of a connected account:
Option 1: API Key + Account Header (Recommended for Backend)
Use your API key with the Graniot-Account header. This method is non-expiring and should only be used server-side.
Option 2: Bearer Token (For Frontend/Embedded)
Use the account_access JWT token. This method expires after 3 hours and is suitable for client-side applications and embedded maps.
The account_access JWT token expires after 3 hours. To refresh it, call GET /api/accounts/{account_id}/ which returns a new account_access token and embedded_url.
For a detailed comparison and code examples, see the Authentication for Connected Accounts guide.
Add your first Farm and Parcel
Take a look at how you might call this method:
Just pick the wms_url parameter in the properties of the parcel and add at the end the name of the satellite layer you want to see, for example NDVI, PCD, OSAVI.

Explore the Satellite Data page in API Reference to see the other layers and data you can get.
Last updated