Loading...
Loading...
Test REST API endpoints with all HTTP methods, custom headers, and formatted responses
If you find this tool helpful, please consider supporting us by sharing with your friends and colleagues.
const fetch = require('node-fetch'); // or use native fetch in Node 18+
const url = '';
const options = {
method: 'GET',
headers: {}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log('Status:', response.status);
console.log('Data:', data);
} catch (error) {
console.error('Error:', error);
}