API Documentation

MADE BY MILAN

To use the API, make a GET request to endpoints with query parameters as needed.

Spotify Downloader


const axios = require('axios');

async function fetchData() {
  try {
    const spoUrl = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/spotify?url=${encodeURIComponent(spoUrl)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Spotify Search


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/spotisearch?query=${encodeURIComponent(query)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

2080 SEE Result


const axios = require('axios');

async function fetchData() {
  try {
    const { name, symbolNo }  = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/seeresult?name=${encodeURIComponent(name)}&symbolNo=${encodeURIComponent(symbolNo)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Optical Character Recognition ( OCR )


const axios = require('axios');

async function fetchData(args) {
  try {
    const imageUrl = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/ocr?url=${encodeURIComponent(imageUrl)}`;
    const response = await axios.get(apiurl);
    const description = response.data.responses[0].textAnnotations[0].description;
    console.log(description);
  } catch (error) {
    console.error(error);
  }
}

fetchData(args);

The Kathmandu Post News


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/tkp`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

The Kathmandu Post News Scraper


const axios = require('axios');

async function fetchData() {
  try {
    const newsUrl = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/news?newsUrl=${encodeURIComponent(newsUrl)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Infra AI


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/infra?query=${encodeURIComponent(name)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Random Anime Quotes

const axios = require('axios');

async function fetchData() {
  try {
    const apiurl = 'https://www.bhandarimilan.info.np/quote';
    const response = await axios.get(apiurl);
    const message = `From: ${response.data.anime}\n\nQuote: ${response.data.quote}\n\nBy: ${response.data.character}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Anime Quotes With Anime Name

const axios = require('axios');

async function fetchData() {
  try {
    const animeName = args.join(" ");
    const apiurl = 'https://www.bhandarimilan.info.np/quote?anime=${encodeURIComponent(animeName)}';
    const response = await axios.get(apiurl);
    const message = `From: ${response.data.anime}\n\nQuote: ${response.data.quote}\n\nBy: ${response.data.character}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Web Screenshot


const axios = require('axios');
const fs = require('fs');
const path = require('path');

const args = process.argv.slice(2);

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/screenshot?url=${encodeURIComponent(query)}`;
    
    const response = await axios.get(apiurl, { responseType: 'arraybuffer' });
    
    const imagePath = path.join(__dirname, 'image.png');
    
    fs.writeFileSync(imagePath, response.data);
    
    console.log('Image saved to', imagePath);

  } catch (error) {
    console.error('Error fetching data:', error);
  }
}

fetchData();

Instagram Information


const axios = require('axios');

async function fetchData() {
  try {
    const username = args.join(" ");
    const apiurl = 'https://www.bhandarimilan.info.np/iginfo?username=${encodeURIComponent(username)}';
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();
 

Pinterest Images

const axios = require('axios');

async function fetchData() {
  try {
    const imageQuery = args.join(" ");
    const apiurl = 'https://www.bhandarimilan.info.np/pinterest?query=${encodeURIComponent(imageQuery)}';
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

GitHub Information


const axios = require('axios');

async function fetchData() {
  try {
    const userName = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/github?username=${encodeURIComponent(userName)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Lyrics

const axios = require('axios');

async function fetchData() {
  try {
    const songName = args.join(" ");
    const apiurl = 'https://www.bhandarimilan.info.np/lyrics2?songname=${encodeURIComponent(songName)}';
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

JavaScript Code Obfuscator

const axios = require('axios');

async function fetchData() {
  try {
    const code = args.join(" ");
    const apiurl = 'https://milanbhandari.imageapi.repl.co/encrypt?code=${encodeURIComponent(code)}';
    const response = await axios.get(apiurl);
    const message = `${response.data.obfuscatedCode}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Transcribe


const axios = require('axios');

async function fetchData() {
  try {
    const url = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/transcribe?url=${encodeURIComponent(url)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Nepali Rashifal


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/rashifal`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Movie Clips


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/clips?query=${encodeURIComponent(query)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

9anime


const axios = require('axios');

async function fetchData() {
  try {
    const query = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/9anime?query=${encodeURIComponent(query)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();

Facebook UID


const axios = require('axios');

async function fetchData() {
  try {
    const facebookLink = args.join(" ");
    const apiurl = `https://www.bhandarimilan.info.np/fbuid?query=${encodeURIComponent(facebookLink)}`;
    const response = await axios.get(apiurl);
    const message = `${response.data}`;
    console.log(message);
  } catch (error) {
    console.error(error);
  }
}

fetchData();