Skip to main content

Get Stock

Endpoint: /stock

Request type: GET

const axios = require('axios');

const apiKey = 'YOUR_API_KEY';

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

Expected response:

{ success: true, stock: 837292 }