# LatAm Datos API – Mexico FX Rate (USD/MXN)

> LatAm Datos API – Mexico FX Rate (USD/MXN) is a paid API for AI agents from latam-datos-api.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the current USD/MXN foreign exchange rate for Mexico

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/mx/fx
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latam-datos-api-mexico-fx-rate-usd-mxn-daf32f63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qbO3c0G2O5EFJ9pAA3tem

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 latam-datos-api-mexico-fx-rate-usd-mxn-daf32f63
```

Example prompt: What's the current USD to Mexican peso exchange rate? I need the live USD/MXN rate right now for a payment calculation.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-query USD/MXN spot rate without a subscription, particularly in agentic workflows that already use the x402/USDC micropayment protocol on Base. It is best for one-off lookups or low-frequency monitoring where a subscription FX API would be overkill. If you need other LatAm currencies or additional data (inflation, central bank rates), other sibling endpoints on the same host cover those use cases.

## Known failure modes

- Service unavailable on Render.com free tier (cold start latency or downtime)
- Payment failure via x402 protocol (insufficient USDC balance or misconfigured wallet)
- Stale or cached rate if upstream data source is delayed
- HTTP 402 returned if payment not processed before data is served
- Network timeout on slow connections to Render hosting

## How this service works

Datos de mercados emergentes para agentes: FX LatAm, inflacion, tasas de bancos centrales, feriados, validacion de IDs fiscales/bancarios, IVA y salarios minimos. Pago por consulta via x402 v2 (USDC en Base).

## Output

Returns a JSON object with the currency pair label (e.g. 'USD/MXN') and the current exchange rate as a decimal number (e.g. {"par":"USD/MXN","tasa":17.48}), representing how many Mexican pesos one US dollar buys at the time of the query.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "par": "USD/MXN",
  "tasa": 17.48
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-mexico-fx-rate-usd-mxn-daf32f63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latam-datos-api.onrender.com](https://www.zero.xyz/host/latam-datos-api.onrender.com/llms.txt)
