NB Scraper Docs - v1.3.0
    Preparing search index...

    Function periksadata

    • Checks for data breaches associated with a given email address using periksadata.com.

      Parameters

      • email: string

        The email address to check.

      Returns Promise<NBScraperResponse<PeriksaDataBreach[]>>

      A promise that resolves to an array of breach incidents. If no breaches are found, it returns an empty array.

      import { periksadata } from 'nb-scraper';

      async function checkEmail() {
      const result = await periksadata('your@gmail.com');
      if (result.status) {
      if (result.data.length === 0) {
      console.log('No data breaches found for this email.');
      } else {
      console.log(`Found ${result.data.length} breach(es):`);
      console.log(result.data);
      }
      } else {
      console.error(result.error);
      }
      }

      checkEmail();

      Yosh Casaster