Skip to content

Cotización del dólar

Devuelve la cotización actual del dólar.

Respuesta

200Cotización del dólar exitosa
Content-Type:application/json
mayoristaobject
oficialobject
ahorroobject
tarjetaobject
blueobject
criptoobject
mepobject
cclobject
JSON
{
  "mayorista": {
    "price": "number",
    "variation": "number",
    "timestamp": "integer"
  },
  "oficial": {
    "price": "number",
    "variation": "number",
    "timestamp": "integer"
  },
  "ahorro": {
    "ask": "number",
    "bid": "number",
    "variation": "number",
    "timestamp": "integer"
  },
  "tarjeta": {
    "price": "number",
    "variation": "number",
    "timestamp": "integer"
  },
  "blue": {
    "ask": "number",
    "bid": "number",
    "variation": "number",
    "timestamp": "integer"
  },
  "cripto": {
    "ccb": {
      "ask": "number",
      "bid": "number",
      "variation": "number",
      "timestamp": "integer"
    },
    "usdt": {
      "ask": "number",
      "bid": "number",
      "variation": "number",
      "timestamp": "integer"
    },
    "usdc": {
      "ask": "number",
      "bid": "number",
      "variation": "number",
      "timestamp": "integer"
    }
  },
  "mep": {
    "al30": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "gd30": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "lede": {
      "name": "string",
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "bpo27": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    }
  },
  "ccl": {
    "al30": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "gd30": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "lede": {
      "name": "string",
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    },
    "bpo27": {
      "24hs": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      },
      "ci": {
        "price": "number",
        "variation": "number",
        "timestamp": "integer"
      }
    }
  }
}
GET/api/dolar
cURL
curl -X GET \
 https://criptoya.com/api/dolar

Ejemplos

cURL
curl -X GET "https://criptoya.com/api/dolar"
JavaScript
fetch("https://criptoya.com/api/dolar")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://criptoya.com/api/dolar");
Python
import requests
response = requests.get("https://criptoya.com/api/dolar")
print(response.json())
Powered by VitePress Theme OpenAPI