# LatAm Datos API – Peru FX Rate (USD/PEN)

> LatAm Datos API – Peru FX Rate (USD/PEN) 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/PEN (US Dollar to Peruvian Sol) foreign exchange rate for Peru

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/pe/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-peru-fx-rate-usd-pen-8f6336a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_67z182iaJE6cU0ukp9EVx

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-peru-fx-rate-usd-pen-8f6336a9
```

Example prompt: What's the current USD to Peruvian Sol exchange rate? I need the live FX rate for Peru.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-query USD/PEN exchange rate for Peru without a subscription, especially in agent workflows that already support x402 micropayments in USDC on Base. Ideal for cost-sensitive agents that only occasionally need LatAm FX data and want to avoid monthly API subscriptions.

## Known failure modes

- Payment required (402) if x402 USDC payment header is missing or insufficient
- Service unavailable if the Render.com host is cold-starting or down
- Stale or cached rate if underlying data source hasn't been refreshed recently
- Invalid or unexpected JSON shape if the upstream FX source changes its format

## 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

A JSON object containing the currency pair label (e.g. 'USD/PEN') and the current exchange rate as a decimal number (e.g. 3.41), representing how many Peruvian Soles equal one US Dollar.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "par": "USD/PEN",
  "tasa": 3.41
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-peru-fx-rate-usd-pen-8f6336a9/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)
