Scheduled Export CSV for CFDB7 – Public Access CFDB7 Export CSV

Enable public access to CFDB7 CSV exports. Schedule automatic exports using a cron job.

 

How to Use It

  1. Install and activate the CFDB7 Public Access CSV addon from the WordPress admin dashboard.
  2. Go to WP Admin → Contact Forms (CFDB7) → Public CSV.
  3. Copy the Secret Key.
  4. Use the following URL format to export submissions:
https://yourdomain.com/wp-json/cfdb7/export-csv/{key}/{form-id}/{type}

Replace:

  • {key} — Your CFDB7 Public CSV secret key
  • {form-id} — The ID of the Contact Form 7 form
  • {type} — The export period

Example

https://yourdomain.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily

This URL exports the submissions for today.

Available Export Types

  • today — Today's submissions
  • daily — Yesterday's submissions
  • weekly — Submissions from the previous 7 calendar days, excluding today
  • monthly — Submissions from the current calendar month
  • custom — Submissions within a specified custom date range
  • new — Submissions added since the last export

The exported data is returned as a CSV file.

 

Where can I get a Form ID?

Go to wp-admin > Contact (Contact Form 7) > Select form > Check in the browser Address bar.

Example: Form ID is 48

 

How to export submissions between two dates?

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/custom/{from}/{to}

from = {yyyy-mm-dd}

to = {yyyy-mm-dd}

Example:

https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/custom/2019-12-30/2020-12-30

How to export all new submissions?

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/new

Example: https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/new

 

Save CSV to disk (Upload folder)

Automatically export CFDB7 form entries to CSV on a schedule.

You can access it with an FTP client.

Navigate https://{yourdoamin.com}/wp-json/cfdb7/export-csv/{key}/{form-id}/{type}/save

File location: wp-content > uploads > cfdb7_csv

 

⏰ Automate with Cron Job

Want to automate your exports daily? Use a simple cron job to fetch the CSV file regularly.

Go to Cpanel > cronjobs > add new

URL: https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/save

We need to add a cron job once per day.

Example:

0 0 * * * curl --silent "https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/save" > /dev/null 2>&1

Example - Email Report

0 0 * * * curl --silent "https://yourdoamin.com/wp-json/cfdb7/export-csv/jpDozZNEFZ4xRWGMVKW07RHn8MgK0P/5/daily/email-report" > /dev/null 2>&1

 

 

Just $69 for an unlimited installation license.

Demo: Contact Form