curl --request GET \
--url https://app.polygon-one.com/api/plots/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.polygon-one.com/api/plots/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.polygon-one.com/api/plots/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.polygon-one.com/api/plots/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.polygon-one.com/api/plots/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.polygon-one.com/api/plots/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/plots/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"country": "<string>",
"size": 123,
"requiresAreaPlausibilityReview": true,
"species": [
{
"commonName": "<string>",
"scientificName": "<string>"
}
],
"commodityGroup": "cattle",
"producerName": "<string>",
"productionDateFrom": "2023-11-07T05:31:56Z",
"productionDateTo": "2023-11-07T05:31:56Z",
"analysisStatus": "pending",
"deforestationRiskResult": 0,
"forestPercentage": 123,
"isDegraded": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"geojson": {},
"supplierArticleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"importSourceFormat": "<string>",
"importPrecisionClass": "<string>",
"importPrecisionDigits": 123,
"importPrecisionAcceptedAt": "2023-11-07T05:31:56Z",
"importPrecisionAcceptedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"importPrecisionAcceptedByName": "<string>",
"importOriginalCentroidLng": 123,
"importOriginalCentroidLat": 123
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}Parzelle abrufen
Retrieve a single plot including its geometry (geojson) and its linked supplierArticleIds. Requires plots:read. The full analysis payload and the image-space fields (analysisResult, pixelCoords, imageWidth, imageHeight) are not returned to API keys.
curl --request GET \
--url https://app.polygon-one.com/api/plots/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.polygon-one.com/api/plots/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.polygon-one.com/api/plots/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.polygon-one.com/api/plots/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.polygon-one.com/api/plots/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.polygon-one.com/api/plots/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.polygon-one.com/api/plots/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"country": "<string>",
"size": 123,
"requiresAreaPlausibilityReview": true,
"species": [
{
"commonName": "<string>",
"scientificName": "<string>"
}
],
"commodityGroup": "cattle",
"producerName": "<string>",
"productionDateFrom": "2023-11-07T05:31:56Z",
"productionDateTo": "2023-11-07T05:31:56Z",
"analysisStatus": "pending",
"deforestationRiskResult": 0,
"forestPercentage": 123,
"isDegraded": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"geojson": {},
"supplierArticleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"importSourceFormat": "<string>",
"importPrecisionClass": "<string>",
"importPrecisionDigits": 123,
"importPrecisionAcceptedAt": "2023-11-07T05:31:56Z",
"importPrecisionAcceptedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"importPrecisionAcceptedByName": "<string>",
"importOriginalCentroidLng": 123,
"importOriginalCentroidLat": 123
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}Autorisierungen
API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.
Pfadparameter
Antwort
Plot details
A single plot as returned to an API key. The full analysis payload (analysisResult) and the image-space fields (pixelCoords, imageWidth, imageHeight) are not part of the API response.
Country of production (ISO 3166-1 alpha-2, e.g. BR).
Area in hectares. 0 when no size is stored.
The declared size and the geometry do not fit together and need a manual review.
Show child attributes
Show child attributes
EUDR-regulated commodity groups. non_relevant = article is not covered by EUDR.
cattle, cocoa, coffee, oil_palm, rubber, soya, wood, non_relevant State of the geospatial deforestation analysis. A new plot starts at pending; the analysis runs asynchronously.
pending, in_progress, completed, failed, exempt, skipped Analysis result: 0 = low, 1 = high, 2 = moderate risk. null while no result is available.
0, 1, 2, null The plot geometry as GeoJSON (a Feature or a bare Geometry, WGS84 longitude/latitude).
Supplier articles (supplier ↔ article links) this plot is linked to.
Source format when the plot came from a file import.
Coordinate-precision class determined at import.
Decimal digits of the imported coordinates.
When a low import precision was accepted.
User who accepted a low import precision.
Name of that user.
Centroid longitude of the geometry as imported.
Centroid latitude of the geometry as imported.