Searchโ€ฆ
๐Ÿ”
Captcha
get
https://api.night-api.com/
images/captcha
Generate a QR Code
โ€‹
const axios = require("axios");
const { writeFileSync } = require('fs');
โ€‹
axios.get('https://api.night-api.com/images/captcha', {
headers: {
authorization: "Your API token"
},
data: {
codeSize: 9 // Between 4 and 10
}
})
.then(async function (res) {
console.log(res.data);
writeFileSync(`${__dirname}/captcha.png`, Buffer.from(res.data.content.image, 'base64'));
})
Export as PDF
Copy link