Oro
GET
https://uy.dolarapi.com/v1/cotizaciones/xauCotización del oro en pesos uruguayos
Respuestas
Devuelve la cotización del Oro
JSON
{
"compra": 0,
"venta": 0,
"nombre": "string",
"moneda": "string",
"fechaActualizacion": "string"
}
Ejemplos
cURL
curl -X GET https://uy.dolarapi.com/v1/cotizaciones/xau
JavaScript
fetch("https://uy.dolarapi.com/v1/cotizaciones/xau")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://uy.dolarapi.com/v1/cotizaciones/xau");
Python
import requests
response = requests.get("https://uy.dolarapi.com/v1/cotizaciones/xau")
print(response.json())