Our API to Posts plugin allows you to sync products from an API to Easy Digital Downloads(EDD) products on your WordPress website. With the plugin, you can call virtually any REST API and import the data within that API and then create Easy Digital Downloads(EDD) simple products from this API data.
How it worksÂ
The API to Posts plugin gets installed alongside our free WPGetAPI plugin. You set up your API within the free version and then set the endpoint to be imported. The endpoint will then appear within the API to Posts plugin where it can be configured to create the Easy Digital Downloads(EDD) products from the API data. Compatible with Easy Digital Downloads(EDD) Single Product Type and Single price, only.
Create Easy Digital Downloads(EDD) products from API
To create the actual Easy Digital Downloads(EDD) products, there are a few simple steps to follow:
- configure how the API data will be imported
- select ‘Download’ as the post type
- run the ‘API Importer’
- map the API data to the Easy Digital Downloads(EDD) product fields
- run the ‘Post Creator’
That’s it, you will now have Easy Digital Downloads(EDD) products created from API data. You can map API data to custom fields and all standard Easy Digital Downloads(EDD) fields, meaning it is a breeze to set the price, SKU, Download categories, Download tags, featured image, File URL, Download Limits, and more.
Sync API to Easy Digital Downloads(EDD) products
We’ve manually ran the ‘Post Creator’ which creates the products initially. Within the settings there is an option to run the syncing process in the background at your chosen interval, which keeps your Easy Digital Downloads(EDD) products in sync with the API.
Simply set the interval such as 5 Minutes up to Once Weekly and the whole import and product creation process will run at that interval in the background, keeping your products perfectly synced. This is perfect for keeping pricing and other data up to date.
Going further
Check out the full tutorial with a step-by-step guide here. This article runs through the exact process of creating Easy Digital Downloads(EDD) products from an API.