The search options, including keyword and limit.
A promise that resolves to the search results.
import { searchApk } from 'nb-scraper';
async function findApk() {
const result = await searchApk({ keyword: 'WhatsApp', limit: 5 });
if (result.status && result.data) {
result.data.forEach(app => {
console.log(`Title: ${app.title}`);
console.log(`Package: ${app.packageName}`);
console.log(`Download: ${app.downloadUrlFile}`);
console.log('---');
});
} else {
console.error(result.error);
}
}
findApk();
Searches for APKs on APKPure. Note: This scraper uses 'cloudscraper' to bypass Cloudflare protection.