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 APParrow-up-right. 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:

circle-exclamation

All calls have to be performed over HTTPS to the base URL:

https://app.graniot.com/apiarrow-up-right

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:

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.

circle-exclamation

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.

NDVI image of the parcel

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

Last updated