Event API Addon

MEC event API addon allows easy copying of events, exporting scripts, and downloading JSON files. It supports events from WordPress and any web application on any platform. It includes Single Events, shortcodes, immediate activation after installation, and domain management.

MEC Lite/Pro

Latest Version

Last Updated
2023-10-25 15:28:13


Event API Addon Preparation


In the first step, please make sure to activate MEC and the Event API Addon.

Read Also:

How to install MEC and Addons?

Using Event API Addon

You can use Event API Addon on both Shortcodes and Single event pages to display them on another web application.

Event API Addon Shortcode

To use the event API on the shortcodes, please navigate to the shortcodes page of MEC. Then, click “Create API” on your chosen shortcode.

Event API Addon

Event API Addon Single Event

To use the event API on any Single Event, please navigate to the All Events page of MEC. Then, click “Create API” on your chosen Event.

Event API Addon

By clicking Create API, you will be directed to a page where you can receive your API.

Event API Addon

The left side provides access to domains that display events. To manage this, enter the specific domain(s) or set API for all domains.

To remove an API, select the domain(s) or All Domains and click the trash icon. This will remove the API from all the added domains. Click the Generate Button once you’re done.

There are three fields on the right side. The first one contains a script that you can copy to the clipboard. You can use this script to display any content you want, but you need to specify the domains where you want to display it. The second field contains the same content in JSON format, which you can use to receive different content for your web application.

You can see samples of the used API below:

Event API Addon

Event API Addon

To ensure your script is functional, make sure to verify two things:

  1. The script needs to be enabled on all domains or a specific one.
  2. Contact your host provider and ensure the ability to create iframes on your website is enabled.

When you install the Event API Addon, you can access settings in MEC Settings > Settings > Event API. From there, you can include your source webiste header and footer in the destination website and limit the number of events in the shortcode output.

Event API Addon

Please note that if you are using any of the website loading speed optimization plugins, these plugins might be the reason for not loading the external script links on your web pages.

Since the “Event API Addon” has a script for showing your events, you need to exclude “external links” in those plugins so they won’t get ignored and can work properly.

Report Out Dated Content

If you think the content of this page does not reflect updated information, please let us know.

Report Now
Ben September 6, 2022
| |

Everything is fine, except for one little thing! My GDPR Cookie consent plugin on the source website is showing on the destination website.
I can deactivate the plugin on a specific page by entering the slug of the concerned page. But where can I find this slug???
Thanks for your help,

Nicola November 14, 2019
| |

I don’t know what I am doing wrong, but it doesn’t work for me.
I followd exactly the advices above. No success! Any idea?