Track free Udemy courses automatically with RapidAPI and Google Sheets
DISCOUNT 20%
This workflow fetches free Udemy courses hourly via the Udemy Coupons and Courses API on RapidAPI, filters them, and updates a Google Sheet. It sends alerts on errors for smooth monitoring.
Node-by-Node Explanation
- Schedule Trigger: Runs the workflow every hour automatically.
- Fetch Udemy Coupons: Sends POST request to the Udemy Coupons and Courses API on RapidAPI to get featured courses.
- Check API Success: Verifies if the API response is successful; routes accordingly.
- Filter Free Courses: Selects only courses with
sale_priceof zero (free courses). - Send Error Notification: Emails admin if API fetch fails for quick action.
- Sync Courses to Google Sheet: Appends or updates the filtered free courses into Google Sheets.
Google Sheets Columns
idnamepricesale_priceimagelecturesviewsratinglanguagecategorysubcategoryslugstoresale_start
Google Sheets Setup & Configuration Steps
- Create Google Sheet: Create or open a Google Sheet where you want to sync courses.
- Set Headers: Add columns headers matching the fields synced (
id,name,price, etc.). - Enable Google Sheets API: Go to Google Cloud Console, enable Google Sheets API for your project.
- Create Service Account: In Google Cloud Console, create a Service Account with editor access.
- Download Credentials: Download the JSON credentials file from the service account.
- Share Sheet: Share your Google Sheet with the Service Account email (found in JSON file).
- Configure n8n Google Sheets Node: Use the service account credentials, set operation to “Append or Update”, provide Sheet URL and sheet name or
gid. - Match Columns: Map the course fields to your sheet columns and set
idas the unique key for updates.
How to Obtain RapidAPI Key & Setup API Request
Sign up/Login: Visit RapidAPI Udemy Coupons and Courses API and create an account or log in.
Subscribe to API: Subscribe to the Udemy Coupons and Courses API plan (free or paid).
Get API Key: Navigate to your dashboard and copy your
x-rapidapi-key.Configure HTTP Request: In your workflow’s HTTP Request node:
Set method to
POST.URL:
https://udemy-coupons-and-courses.p.rapidapi.com/featured.phpAdd headers:
x-rapidapi-host:udemy-coupons-and-courses.p.rapidapi.comx-rapidapi-key: your copied API key
Set content type to
multipart/form-data.Add body parameter:
page=1(or as needed).
Test API: Run the node to ensure the API responds with data successfully before continuing workflow setup.
Use Cases & Benefits
- Automates daily updates of free Udemy courses in your sheet using the Udemy Coupons and Courses API on RapidAPI.
- Saves manual effort in tracking coupons and deals.
- Enables quick error alerts to maintain data accuracy.
- Ideal for course aggregators, affiliate marketers, or learning platforms needing fresh course data.
Who This Workflow Is For
- Content curators and edtech platforms tracking free courses.
- Affiliate marketers promoting Udemy deals.
- Anyone needing real-time access to updated free Udemy coupons.