Skip to content

Listado de exchanges

GET
/v1/exchanges

Listado de exchanges.

Respuestas

Listado de exchanges
application/json
JSON
[
{
"id": "string",
"nombre": "string",
"logo": "string"
}
]

Ejemplos

cURL
curl -X GET \
'https://dolarapi.com/v1/exchanges'
JavaScript
fetch('https://dolarapi.com/v1/exchanges')
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://dolarapi.com/v1/exchanges';
$method = 'GET';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://dolarapi.com/v1/exchanges'

response = requests.get(url)
print(response.json())
Powered by VitePress OpenAPI

Ejemplos de uso

js
async function getData() {
  const data = await fetch('https://dolarapi.com/v1/exchanges').then((res) => res.json())

  return data
}
js
Inputs.table(getData())