Download the spam-checker-app
directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bash
cd RapidAPI\ DevRel-Examples-External\ main\ spam-checker-app/
Install dependencies
bash
npm install
Create .env.local
file in root and add your RapidAPI key.
bash
NEXT_PUBLIC_RAPIDAPI_KEY=YOUR_RAPID_API_KEY
Run the app
bash
npm run dev
You are all set! Open localhost:3000 to see the app.
The Spam Check API on RapidAPI Hub allows us to check any text content for spam. You can use it before sending emails to make sure they dont land in the spam folder. In this guide, we will build a Spam Checker application in Next.js using this API.