Skip to content

Estado de la API

GET
/v1/estado

Respuestas

Devuelve el estado de la API
JSON
{
"estado": "string",
"aleatorio": 0
}

Ejemplos

cURL
curl -X GET \
'https://ve.dolarapi.com/v1/estado'
JavaScript
fetch('https://ve.dolarapi.com/v1/estado')
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://ve.dolarapi.com/v1/estado';
$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://ve.dolarapi.com/v1/estado'

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