Automatically export WPForms DB form entries to CSV on a schedule using a cron job.
How to use it?
-
Install and activate the “WPForms DB” and “WPForms DB Scheduled CSV” add-ons from your WordPress admin dashboard.
-
Go to WP Admin → WPForms DB → Scheduled CSV, then copy the Secret Key.
-
Open the URL below in your browser (or use it in your cron job) to trigger the export:
|
1 |
https://{yourdomain.com}/wp-json/wpformsdb/export-csv/{secret-key}/{form-id}/{type} |
Replace:
-
{yourdomain.com} with your actual domain
-
{secret-key} with the key you copied
-
{form-id} with your WPForms form ID
-
{type} daily, weekly, monthly, custom, etc
Example:
https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily
You can download daily (All submissions before 24 hours )
Where can I find the Form ID?
Go to WP Admin → WPForms DB → select the form you want, and check the address bar in your browser.
Example:
If the URL shows something like .../wp-admin/admin.php?page=wp-forms-db-list.php&fid=24
Your Form ID is 24.
How to export submissions between two dates?
Navigate https://{yourdoamin.com}/wp-json/wpformsdb/export-csv/{key}/{form-id}/custom/{from}/{to}
from = {yyyy-mm-dd}
to = {yyyy-mm-dd}
Example:
https://yourdoamin.com/wp-json/wpformsdb/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/custom/2019-12-30/2020-12-30
How to export submissions between two dates?
Navigate https://{yourdoamin.com}/wp-json/wpformsdb/export-csv/{key}/{form-id}/custom/{from}/{to}
from = {yyyy-mm-dd}
to = {yyyy-mm-dd}
Example:
https://yourdoamin.com/wp-json/wpformsdb/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/custom/2019-12-30/2020-12-30
How to export all new submissions?
Navigate https://{yourdoamin.com}/wp-json/wpformsdb/export-csv/{key}/{form-id}/new
Example: https://yourdoamin.com/wp-json/wpformsdb/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/new
Save CSV to Disk (Upload folder)
Automatically export WPFormsDB form entries to CSV on a schedule.
You can access it with an FTP client.
Navigate https://{yourdoamin.com}/wp-json/wpformsdb/export-csv/{key}/{form-id}/{type}/save
File location: wp-content > uploads > wpformsdb_csv
⏰ Automate with a Cron Job
Want to export your entries automatically every day?
You can schedule a cron job in cPanel (or any other server control panel) to run the export URL at a fixed time and generate your CSV files automatically.
Step 1: Add a Cron Job in cPanel
-
Go to cPanel → Cron Jobs
-
Click Add New Cron Job
-
Choose “Once Per Day” (or set your preferred time)
URL to run daily:
https://yourdomain.com/wp-json/wpformsdb/export-csv/{key}/{form-id}/daily/save
Daily Export (Save to Disk)
Runs once per day and saves the CSV to your WordPress uploads folder.
Example cron entry:
0 0 * * * curl --silent "https://yourdomain.com/wp-json/wpformsdb/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/save" > /dev/null 2>&1
Daily Export + Email Report
This will generate the CSV daily and email the report to the configured address.
Example cron entry:
0 0 * * * curl --silent "https://yourdomain.com/wp-json/wpformsdb/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/email-report" > /dev/null 2>&1
Just $79 for an unlimited installation license.

