# Brazil EUDR Geospatial Polygon & Deforestation DDS API (`brazil-data-labs/brazil-eudr-geospatial-dds`) Actor

Automated EUDR (EU 2023/1115) Geospatial Due Diligence API crossing farm polygons & Lat/Lon against INPE PRODES/DETER post-2020 deforestation, FUNAI, ICMBio & IBAMA with SHA-256 hashes.

- **URL**: https://apify.com/brazil-data-labs/brazil-eudr-geospatial-dds.md
- **Developed by:** [Brazil Data Labs](https://apify.com/brazil-data-labs) (community)
- **Categories:** AI, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Brazil EUDR Geospatial Polygon & Deforestation Due Diligence (DDS) Engine (IBAMA, INPE PRODES/DETER, ICMBio & FUNAI)

Automated **European Union Deforestation Regulation — EUDR (Regulation EU 2023/1115 & EU 2025/2650)** geospatial due diligence engine for **European importers, agricultural commodities traders (soy, coffee, cocoa, beef, timber, rubber), ESG certification bodies, international banks, and AI Agents (via MCP)**.

***

### Why Global Importers & Traders Use This API

Under **Regulation (EU) 2023/1115 (and Regulation EU 2025/2650)**, operators and traders importing regulated commodities into the European Union must submit a **Due Diligence Statement (DDS)** proving:

1. **Exact Geolocation (Polygon / Lat-Lon)** of the production plot;
2. **Zero Deforestation after December 31, 2020**;
3. **Full Compliance with Relevant Environmental & Land-Use Legislation** in the country of production (no overlap with Indigenous Lands, Federal Conservation Units, or Environmental Embargoes).

Non-compliance carries penalties of **at least 4% of annual EU turnover**, immediate customs blockade, and cargo confiscation.

***

### 4 Official Brazilian Government Geospatial Layers Crossed in Real Time

1. **INPE TerraBrasilis — PRODES Yearly Deforestation Polygons (`prodes-legal-amz:yearly_deforestation`):** High-resolution Sentinel-2 / Landsat deforestation polygons verifying the mandatory **December 31, 2020 EUDR cutoff date**, returning exact overlap area in **hectares**.
2. **INPE TerraBrasilis — DETER Real-Time Satellite Alerts (`deter-amz:deter_amz` & `deter-cerrado-nb:deter_cerrado`):** Near-real-time satellite alerts for clear-cut deforestation, forest degradation, illegal mining, and burn scars across the Legal Amazon and Cerrado biomes.
3. **FUNAI — Homologated Indigenous Territories (`Funai:tis_poligonais`):** Official polygon boundaries of Brazilian Indigenous Lands (*Terras Indígenas Regularizadas/Homologadas*).
4. **ICMBio / INDE — Federal Conservation Units & Environmental Embargoes (`ICMBio:limiteucsfederais_a` & `ICMBio:embargos_icmbio`):** National Parks, Biological Reserves, Extractive Reserves, and active environmental embargo notices.

***

### 4-Layer Legal & Privacy Shield (100% LGPD-Exempt & Authorized Open Data)

- **Authorized Commercial Open Data Reuse:** All geospatial layers are retrieved from official public GeoServer WFS endpoints governed by Brazil's **Access to Information Law (Law No. 12.527/2011)** and **Federal Open Data Policy (Decree No. 8.777/2016)**.
- **Strict LGPD Immunity (Law No. 13.709/2018, Art. 1):** Processes strictly **spatial geometries (WGS84 / SIRGAS2000 coordinates & GeoJSON polygons)** and **Legal Entities (14-digit Corporate CNPJs)**. Any 11-digit natural person CPF present in raw government embargo tables is automatically redacted (`REDACTED_NATURAL_PERSON_LGPD_ART_1`).
- **Cryptographic Auditability (`SHA-256`):** Every Due Diligence Statement (DDS) and geospatial intersection record includes a deterministic `SHA-256` cryptographic hash for customs and regulatory audit trails.

# Actor input Schema

## `latitude` (type: `number`):

Center latitude of the rural property or export plot in Brazil (e.g., -4.25 for Altamira/Pará soy & cattle belt).

## `longitude` (type: `number`):

Center longitude of the rural property or export plot in Brazil (e.g., -52.50 for Altamira/Pará).

## `radiusKm` (type: `number`):

Spatial buffer radius in kilometers around the coordinate to check for post-2020 deforestation, embargoes, indigenous lands, and conservation units.

## `geojsonPolygon` (type: `string`):

Optional GeoJSON Polygon or MultiPolygon string of the exact rural plot boundary. Overrides radius buffer when provided.

## `commodity` (type: `string`):

Target export commodity under EU Deforestation Regulation (EUDR) audit.

## `supplierCnpj` (type: `string`):

Brazilian corporate exporter Tax ID (14-digit CNPJ). Physical person CPFs (11 digits) are automatically redacted to enforce 100% LGPD Art. 1 immunity.

## `eudrCutoffDate` (type: `string`):

Official EU Regulation 2023/1115 cutoff date (default: 2020-12-31).

## `maxResults` (type: `integer`):

Maximum number of EUDR DDS certificates and geospatial intersection polygons to return (1 to 500).

## Actor input object example

```json
{
  "latitude": -4.25,
  "longitude": -52.5,
  "radiusKm": 85,
  "geojsonPolygon": "",
  "commodity": "SOY_COFFEE_BEEF_TIMBER",
  "supplierCnpj": "",
  "eudrCutoffDate": "2020-12-31",
  "maxResults": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabular view of the EUDR DDS status, post-2020 deforestation overlap in hectares, and SHA-256 audit hashes.

## `datasetItems` (type: `string`):

Direct API link to all returned EUDR DDS and geospatial records in JSON format.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "latitude": -4.25,
    "longitude": -52.5,
    "radiusKm": 85,
    "geojsonPolygon": "",
    "commodity": "SOY_COFFEE_BEEF_TIMBER",
    "supplierCnpj": "",
    "eudrCutoffDate": "2020-12-31",
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("brazil-data-labs/brazil-eudr-geospatial-dds").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "latitude": -4.25,
    "longitude": -52.5,
    "radiusKm": 85,
    "geojsonPolygon": "",
    "commodity": "SOY_COFFEE_BEEF_TIMBER",
    "supplierCnpj": "",
    "eudrCutoffDate": "2020-12-31",
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("brazil-data-labs/brazil-eudr-geospatial-dds").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "latitude": -4.25,
  "longitude": -52.5,
  "radiusKm": 85,
  "geojsonPolygon": "",
  "commodity": "SOY_COFFEE_BEEF_TIMBER",
  "supplierCnpj": "",
  "eudrCutoffDate": "2020-12-31",
  "maxResults": 5
}' |
apify call brazil-data-labs/brazil-eudr-geospatial-dds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brazil-data-labs/brazil-eudr-geospatial-dds"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8d2PPKwhtsUyAw9tD/builds/Io3xXCnWW5G81CAVo/openapi.json
