Skip to main content

Get Rate

Endpoint: /rate

Request type: GET

const axios = require('axios');

const apiKey = 'YOUR_API_KEY';

axios.get('https://rocheap.com/business/api/rate', {
headers: {
'rocheap-api-key': apiKey
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Expected response:

{ success: true, rate: 4.5 }