Get phytosanitary monitoring summary
curl --request GET \
--url https://api.hydrobit.ag/api/control/phytosanitary/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hydrobit.ag/api/control/phytosanitary/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hydrobit.ag/api/control/phytosanitary/summary', 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://api.hydrobit.ag/api/control/phytosanitary/summary",
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://api.hydrobit.ag/api/control/phytosanitary/summary"
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://api.hydrobit.ag/api/control/phytosanitary/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrobit.ag/api/control/phytosanitary/summary")
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{
"status": "success",
"scope": "project",
"range": {
"startTime": "2026-06-01",
"endTime": "2026-06-15"
},
"projectTimezone": "America/Mexico_City",
"filters": {
"companyId": "comp_12345",
"projectId": "proj_123",
"sectorId": "sector_001"
},
"totalRecords": 42,
"totalSectors": 3,
"sectors": [
{
"sector_name": "Lote A-1",
"incidence": 12.5,
"severity": 18.3,
"pests_diseases": [
{
"pest_disease_name": "Aphids",
"incidence": 15.5,
"severity": 25
}
]
}
],
"totalProjects": 2,
"projects": [
{
"projectId": "proj_123",
"projectName": "Rancho San Pedro",
"sectors": [
{
"sector_name": "Lote A-1",
"incidence": 12.5,
"severity": 18.3,
"pests_diseases": [
{
"pest_disease_name": "Aphids",
"incidence": 15.5,
"severity": 25
}
]
}
]
}
]
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}Phytosanitary
Get phytosanitary monitoring summary
Retrieves aggregated phytosanitary data for a company, project, or sector within a date range.
Requires API token authentication with the read:phytosanitary scope:
Authorization: Bearer <keyId>.<token>.
GET
/
api
/
control
/
phytosanitary
/
summary
Get phytosanitary monitoring summary
curl --request GET \
--url https://api.hydrobit.ag/api/control/phytosanitary/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hydrobit.ag/api/control/phytosanitary/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hydrobit.ag/api/control/phytosanitary/summary', 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://api.hydrobit.ag/api/control/phytosanitary/summary",
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://api.hydrobit.ag/api/control/phytosanitary/summary"
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://api.hydrobit.ag/api/control/phytosanitary/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrobit.ag/api/control/phytosanitary/summary")
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{
"status": "success",
"scope": "project",
"range": {
"startTime": "2026-06-01",
"endTime": "2026-06-15"
},
"projectTimezone": "America/Mexico_City",
"filters": {
"companyId": "comp_12345",
"projectId": "proj_123",
"sectorId": "sector_001"
},
"totalRecords": 42,
"totalSectors": 3,
"sectors": [
{
"sector_name": "Lote A-1",
"incidence": 12.5,
"severity": 18.3,
"pests_diseases": [
{
"pest_disease_name": "Aphids",
"incidence": 15.5,
"severity": 25
}
]
}
],
"totalProjects": 2,
"projects": [
{
"projectId": "proj_123",
"projectName": "Rancho San Pedro",
"sectors": [
{
"sector_name": "Lote A-1",
"incidence": 12.5,
"severity": 18.3,
"pests_diseases": [
{
"pest_disease_name": "Aphids",
"incidence": 15.5,
"severity": 25
}
]
}
]
}
]
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}Authorizations
Scoped API token for external B2B endpoints. Send it in the
Authorization header as Bearer <keyId>.<token>.
Query Parameters
Company filter. Must match the token's company.
Project filter. Must belong to the token's company.
Sector filter. Must belong to the token's company.
Start date in YYYY-MM-DD format.
Pattern:
^\d{4}-\d{2}-\d{2}$End date in YYYY-MM-DD format.
Pattern:
^\d{4}-\d{2}-\d{2}$Response
Phytosanitary summary retrieved successfully.
Available options:
success Example:
"success"
Available options:
company, project, sector Example:
"project"
Show child attributes
Show child attributes
Example:
"America/Mexico_City"
Show child attributes
Show child attributes
Example:
42
Example:
3
Show child attributes
Show child attributes
Example:
2
Show child attributes
Show child attributes