---
updatedAt: 2025-10-13T07:01:30.000Z
agentTools:
  projectIndex: https://developer.soilhive.ag/llms.txt
---

# /soil-data-by-geometry/queries

Allows users to submit queries to retrieve comprehensive soil data for a given list of soil properties, list of datasets and a polygon/multi-polygon or point/multi-point. This endpoint initiates an asynchronous job to process the query. If an optional email is provided in the submission, then the email is sent to this address on completion/fail of the async task.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "SoilHive API Services",
    "version": "1.1.0"
  },
  "tags": [
    {
      "name": "Soil data"
    }
  ],
  "servers": [
    {
      "url": "https://api.soilhive.ag/v1",
      "description": "SoilHive API services"
    }
  ],
  "components": {
    "securitySchemes": {
      "Varda-JWT": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "A JWT access token is required."
      }
    },
    "responses": {
      "400": {
        "description": "Request is malformed. Please check parameters/payload.",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "Bad request"
                },
                "detail": {
                  "type": "string",
                  "example": "Parameter is missing"
                },
                "instance": {
                  "type": "string",
                  "example": "URI of this resource"
                }
              }
            }
          }
        }
      },
      "403": {
        "description": "Forbidden. Request is not authorized.",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "Forbidden"
                },
                "detail": {
                  "type": "string",
                  "example": "Key not authorized"
                },
                "instance": {
                  "type": "string",
                  "example": "URI of this resource"
                }
              }
            }
          }
        }
      },
      "500": {
        "description": "There is some internal server error. Please try again.",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "Internal sever error"
                },
                "detail": {
                  "type": "string",
                  "example": "An unspecified internal server error has occurred"
                },
                "instance": {
                  "type": "string",
                  "example": "URI of this resource"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "Varda-JWT": []
    }
  ],
  "paths": {
    "/soil-data-by-geometry/queries": {
      "post": {
        "tags": [
          "Soil data"
        ],
        "description": "Allows users to submit queries to retrieve comprehensive soil data for a given list of soil properties, list of datasets and a polygon/multi-polygon or point/multi-point. This endpoint initiates an asynchronous job to process the query. If an optional email is provided in the submission, then the email is sent to this address on completion/fail of the async task.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "geometry",
                  "datasets"
                ],
                "properties": {
                  "geometry": {
                    "type": "string",
                    "description": "The value of the Polygon/MultiPolygon/Point/Multipoint in Well-Known Text (WKT) format",
                    "example": "POLYGON ((15.24 50.73, 15.23 50.72, 15.22 50.72, 15.25 50.71, 15.26 50.72, 15.25 50.733, 15.24 50.73))"
                  },
                  "spatialFilters": {
                    "type": "array",
                    "description": "List of spatial filters",
                    "items": {
                      "type": "integer",
                      "example": 146
                    }
                  },
                  "soilProperties": {
                    "type": "array",
                    "description": "List of soil properties",
                    "items": {
                      "type": "integer",
                      "example": 1
                    }
                  },
                  "startYear": {
                    "type": "integer",
                    "description": "start year",
                    "example": 1918
                  },
                  "endYear": {
                    "type": "integer",
                    "description": "end year",
                    "example": 2024
                  },
                  "datasets": {
                    "type": "array",
                    "description": "List of datasets",
                    "items": {
                      "type": "integer",
                      "example": 19
                    }
                  },
                  "emailId": {
                    "type": "string",
                    "description": "email id of the user",
                    "example": "user@email.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Get the location url to check the status of submitted download request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "Location": {
                      "type": "string",
                      "description": "Location url to check the status of submitted download request",
                      "example": "https://api.soilhive.ag/v1/soil-data-by-geometry/queries/12345"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    }
  }
}
```