Learn how to authenticate, register field boundaries, generate satellite analyses, and retrieve results through the Agdir GraphQL API.
The Agdir Satellite API gives you programmatic access to a wide range of satellite-based crop analytics. From vegetation indices and plant health to soil moisture and crude protein, the API delivers results as images, GeoTIFFs, and structured JSON data.
All interactions happen through a single GraphQL endpoint:
The API uses token-based authentication. Include your bearer token in the Authorization header of every request.
Need a token? API tokens are provided by the Agdir team. Contact support@agdir.no to request access.
Agdir provides an interactive API playground where you can explore the schema, test queries, and view responses in real time. This is the fastest way to familiarize yourself with the available mutations and queries before writing integration code.
Working with the Agdir Satellite API follows a consistent four-step pattern:
If you are new to GraphQL, here is a quick primer. GraphQL uses two types of operations:
Every request is a POST to the GraphQL endpoint with a JSON body containing your query (or mutation) and optional variables.
Start by registering your first polygon, then work through the guides in order. Each page includes complete GraphQL examples you can copy and adapt.