Documentación API - Paraguayos

Accedé a nuestras cotizaciones en tiempo real mediante llamadas HTTP simples.

GET https://api.paraguayos.info/cotizacion

Obtiene la lista actual de cotizaciones del día.

Ejemplo con cURL:

curl -X GET https://api.paraguayos.com/api/cotizacion \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.com/cotizacion', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

[
  {
    "moneda_iso4217": "ARS",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 5.93,
      "valorVenta": 5.94
    },
    "bcp": {
      "valor": 5.94
    }
  },
  {
    "moneda_iso4217": "USD",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 7485.21,
      "valorVenta": 7492.08
    },
    "bcp": {
      "valor": 7498.6
    }
  }
]

GET https://api.paraguayos.info/cotzacion?moneda=USD

Obtiene la cotización actual para una moneda específica.

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?moneda=USD" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?moneda=USD', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

{
  "moneda_iso4217": "USD",
  "fecha": "2025-07-23",
  "set": {
    "valorCompra": 7485.21,
    "valorVenta": 7492.08
  },
  "bcp": {
    "valor": 7498.6
  }
}

GET https://api.paraguayos.info/cotzacion?origen=SET

Obtiene todas las cotizaciones cuya fuente es la SET (Subsecretaría de Estado de Tributación).

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?origen=SET" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?origen=SET', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

[
  {
    "moneda_iso4217": "USD",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 7485.21,
      "valorVenta": 7492.08
    }
  },
  {
    "moneda_iso4217": "EUR",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 8785.39,
      "valorVenta": 8794.2
    }
  },
  {
    "moneda_iso4217": "BRL",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 1346.33,
      "valorVenta": 1347.74
    }
  },
  {
    "moneda_iso4217": "JPY",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 51.16,
      "valorVenta": 51.21
    }
  },
  {
    "moneda_iso4217": "GBP",
    "fecha": "2025-07-23",
    "set": {
      "valorCompra": 10155.19,
      "valorVenta": 10165.25
    }
  }
]

GET https://api.paraguayos.info/cotzacion?fecha=2025-07-17

Obtiene todas las cotizaciones del día 17 de julio de 2025.

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?fecha=2025-07-17" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?fecha=2025-07-17', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

[
  {
    "moneda_iso4217": "USD",
    "fecha": "2025-07-17",
    "set": {
      "valorCompra": 7481.75,
      "valorVenta": 7489.0
    },
    "bcp": {
      "valor": 7495.3
    }
  },
  {
    "moneda_iso4217": "BRL",
    "fecha": "2025-07-17",
    "set": {
      "valorCompra": 1342.0,
      "valorVenta": 1344.5
    },
    "bcp": {
      "valor": 1345.9
    }
  }
]

GET https://api.paraguayos.info/cotzacion?fecha=2025-06-03&moneda=ARS

Obtiene la cotización del peso argentino (ARS) correspondiente al 03 de junio de 2025.

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?fecha=2025-06-03&moneda=ARS" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?fecha=2025-06-03&moneda=ARS', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

{
  "moneda_iso4217": "ARS",
  "fecha": "2025-06-03",
  "set": {
    "valorCompra": 5.90,
    "valorVenta": 5.92
  },
  "bcp": {
    "valor": 5.93
  }
}

GET https://api.paraguayos.info/cotzacion?origen=BCP&moneda=EUR

Obtiene la cotización del euro (EUR) según el Banco Central del Paraguay (BCP).

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?origen=BCP&moneda=EUR" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?origen=BCP&moneda=EUR', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

{
  "moneda_iso4217": "EUR",
  "fecha": "2025-07-23",
  "set": {
    "valorCompra": 8785.39,
    "valorVenta": 8794.2
  },
  "bcp": {
    "valor": 8801.11
  }
}

GET https://api.paraguayos.info/cotzacion?origen=SET&fecha=2025-07-07

Obtiene las cotizaciones del SET para el día 07/07/2025.

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?origen=SET&fecha=2025-07-07" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?origen=SET&fecha=2025-07-07', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

{
  "moneda_iso4217": "USD",
  "fecha": "2025-07-07",
  "set": {
    "valorCompra": 7400.00,
    "valorVenta": 7410.00
  },
  "bcp": {}
}

GET https://api.paraguayos.info/cotzacion?origen=BCP&fecha=2025-07-10&moneda=BRL

Obtiene la cotización para el real brasileño (BRL) según el Banco Central del Paraguay (BCP) en la fecha 10 de julio de 2025.

Ejemplo con cURL:

curl -X GET "https://api.paraguayos.info/cotzacion?origen=BCP&fecha=2025-07-10&moneda=BRL" \
  -H "X-API-KEY: xyz123"

Ejemplo en JavaScript (fetch):

fetch('https://api.paraguayos.info/cotzacion?origen=BCP&fecha=2025-07-10&moneda=BRL', {
  method: 'GET',
  headers: {
    'X-API-KEY': 'xyz123'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Ejemplo de respuesta:

{
  "moneda_iso4217": "BRL",
  "fecha": "2025-07-10",
  "set": {},
  "bcp": {
    "valor": 1348.91
  }
}