Usage Examples
Node

Node

Using the Fetch API

const fetch = require('node-fetch');
 
const url = 'https://api.ipoalerts.in/ipos?status=open';
const options = {
  method: 'GET',
  headers: {
    'x-api-key': 'your_api_key_here'
  }
};
 
fetch(url, options)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error fetching IPO data:', error));

Using Axios

const axios = require('axios');
 
const config = {
  method: 'get',
  url: 'https://api.ipoalerts.in/ipos?status=open',
  headers: { 
    'x-api-key': 'your_api_key_here'
  }
};
 
axios.request(config)
  .then(response => {
    console.log(JSON.stringify(response.data));
  })
  .catch(error => {
    console.log(error);
  });