# Brazilayer Deforestation by Municipality

> Brazilayer Deforestation by Municipality is a paid API for AI agents from api.brazilayer.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the deforestation profile of a Brazilian municipality by IBGE code, including area cleared and alert counts since the EUDR cutoff date (31 Dec 2020), recent time windows, breakdown by class, and municipality ranking.

## Facts

- Endpoint: GET https://api.brazilayer.com/v1/desmatamento/municipio/:ibge
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazilayer-deforestation-by-municipality-af55f513
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OHK7hRN8UYdSBneKt_7xa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brazilayer-deforestation-by-municipality-af55f513
```

Example prompt: Pull the INPE DETER deforestation profile for Brazilian municipality 1507300 — I need the total area cleared since the EUDR cutoff date, the 30/90/365-day alert windows, class breakdown (clear-cut, degradation, mining), and how it ranks among affected municipalities.

## When to prefer this

Use this endpoint when you need official Brazilian government satellite data (INPE DETER) for a specific municipality's deforestation history, particularly for EUDR (EU Deforestation Regulation) compliance screening of agricultural commodities (coffee, soy, beef, cocoa) exported to the EU. Prefer this over generic news or unofficial sources when you need legally defensible, satellite-verified deforestation metrics tied to the official EUDR cutoff date of 31 December 2020. Ideal for supply chain due diligence workflows, ESG scoring, and trade compliance automation.

## Known failure modes

- Invalid or non-existent IBGE code returns 404 or empty result
- IBGE code provided with wrong digit count (must be 7 digits) causes validation error
- Municipality exists but has zero deforestation alerts — returns zeros rather than an error
- INPE upstream data delay may cause recent alerts to lag by 24-48 hours
- Payment failure (x402 protocol) blocks access if USDC balance is insufficient

## How this service works

Deforestation profile of a Brazilian municipality by IBGE code, from the official INPE satellite alert system (DETER, Amazon and Cerrado): area cleared and alert count since 31 Dec 2020 — the EUDR cutoff date — plus 30/90/365-day windows, breakdown by class (clear-cut, degradation, mining) and rank among affected municipalities. The origin-risk layer for coffee, soy, beef, cocoa entering the EU. Free sample, no payment: https://api.brazilayer.com/v1/desmatamento/amostra

## Output

A structured deforestation profile for the specified Brazilian municipality including: total area cleared (hectares) and number of DETER alerts since 31 Dec 2020 (the EUDR reference date); rolling 30-day, 90-day, and 365-day alert windows; breakdown by deforestation class (clear-cut, degradation, mining) from both Amazon and Cerrado biomes; and the municipality's rank among all affected Brazilian municipalities by deforestation severity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "ibge": {
      "type": "string",
      "description": "IBGE municipality code, 7 digits (e.g. 1507300)"
     },
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brazilayer-deforestation-by-municipality-af55f513/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.brazilayer.com](https://www.zero.xyz/host/api.brazilayer.com/llms.txt)
