{"id":1493,"date":"2019-09-07T08:46:46","date_gmt":"2019-09-07T08:46:46","guid":{"rendered":"https:\/\/webnus.site\/dox\/?p=1493"},"modified":"2026-04-07T08:09:57","modified_gmt":"2026-04-07T08:09:57","slug":"event-api-addon","status":"publish","type":"knowledgebase","link":"https:\/\/webnus.net\/dox\/modern-events-calendar\/event-api-addon\/","title":{"rendered":"Event API Addon"},"content":{"rendered":"\n<p>The <strong>Event API Addon<\/strong> is a powerful utility designed for Modern Events Calendar that allows you to seamlessly display your events on external web applications and platforms. By generating scripts or JSON files, you can synchronize event data across multiple domains without manual re-entry.<\/p>\n\n\n<style>\n        .display_infobox_wrap {\n          border: solid 1px #e3e5e7;\n          padding: 24px;\n          border-radius: 11px;\n          display: flex;\n          flex-wrap: wrap;\n          justify-content: space-between;\n          flex-direction: row;\n          box-sizing: border-box;\n        }\n        .display_infobox_wrap .infobox-first-col p:last-child {\n          margin-bottom: 0px !important;\n        }\n\n        @media (max-width: 480px) {\n          .display_infobox_wrap {\n            flex-direction: column;\n          }\n          .display_infobox_wrap .infobox-third-col {\n            flex-direction: row !important;\n            width: 100%;\n            margin-top: 30px;\n            gap: 10px;\n            justify-content: space-between !important;\n          }\n          .display_infobox_wrap .infobox-third-col a {\n            width: 50% !important;\n          }\n        }\n\n        .display_infobox_wrap p {\n          font-size: 16px !important;\n          margin-bottom: 10px !important;\n        }\n\n        .display_infobox_wrap a.changelog-url {\n          font-size: 16px;\n          font-weight: bold;\n          color: #43494f;\n          text-decoration: underline;\n        }\n        .display_infobox_wrap a.changelog-url:hover {\n          color: #02b9ff;\n        }\n\n        .display_infobox_wrap .infobox-third-col {\n          display: flex;\n          flex-direction: column;\n          justify-content: center;\n          align-items: center;\n          row-gap: 10px;\n        }\n\n        .display_infobox_wrap .infobox-third-col a {\n          width: 130px;\n          font-size: 15px;\n          font-weight: 300;\n          border: solid 1px;\n          border-radius: 5px;\n          text-align: center;\n          padding: 5px;\n        }\n\n        .display_infobox_wrap .infobox-third-col a:hover {\n          color: #02b9ff;\n          box-shadow: 0 0 0 1px #b9e5f5;\n          border-color: transparent;\n          background-color: #ecfaff;\n        }\n\n        .display_infobox_wrap .infobox-third-col a.demo-button {\n          border-color: transparent;\n          background-color: #ecfaff;\n        }\n\n        .display_infobox_wrap .infobox-third-col a.demo-button:hover {\n          color: #02b9ff;\n          box-shadow: 0 0 0 1px #b9e5f5;\n        }\n    <\/style><div class=\"display_infobox_wrap\"><div class=\"infobox-first-col\"><p><strong>Requirements<\/strong><br>MEC Lite\/Pro<\/p><p><strong>Latest Version<\/strong><br>1.4.0<\/p><\/div><div class=\"infobox-second-col\"><p><strong>Last Updated<\/strong><br>2026-04-15 15:28:13<\/p><a href=\"https:\/\/www.webnus.net\/modern-events-calendar\/addons\/event-api\/#changelog\" class=\"changelog-url\" target=\"_blank\">Changelog<\/a><\/div><div class=\"infobox-third-col\"><a href=\"https:\/\/my.webnus.net\/checkout?edd_action=add_to_cart&#038;download_id=34430602&#038;edd_options%5Bprice_id%5D=1\" class=\"buy-now-button\" target=\"_blank\">Buy Now<\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Initial_Setup_Requirements\"><\/span>Initial Setup &amp; Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installation\"><\/span>Installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before you begin, ensure you have the following requirements met:<\/p>\n\n\n\n<p><strong>Activation:<\/strong> Navigate to your WordPress plugins menu and ensure both <strong>MEC<\/strong> and the <strong>Event API Addon<\/strong> are active.<\/p>\n\n\n\n<p><strong>MEC Lite or Pro:<\/strong> Unlike some addons, the Event API works with both versions of Modern Events Calendar.<\/p>\n\n\n\n<div class=\"wp-block-mec-inline-post-mec-inline-post-block mec-inline-post-container\"><span class=\"mec-inline-icon-before\"><\/span><p class=\"mec-inline-post-text\">Read Also: <\/p><a href=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/installation\/\" class=\"mec-inline-post-link\">How to install MEC and Addons?<\/a><span class=\"mec-inline-icon-after\"><\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_the_Event_API\"><\/span>Using the Event API<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can generate an API for either a specific group of events (via shortcodes) or for an individual event page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Event_API_for_Shortcodes\"><\/span>Event API for Shortcodes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To display a specific calendar view on another website:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>MEC > Shortcodes<\/strong>.<\/li>\n\n\n\n<li>Locate your desired shortcode and click <strong>Create API<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e7267fd96&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1106\" height=\"750\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-01.png\" alt=\"Event API Addon\" class=\"wp-image-10729\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-01.png 1106w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-01-300x203.png 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-01-1024x694.png 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-01-768x521.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Event_API_for_Single_Events\"><\/span>Event API for Single Events<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To display a single event&#8217;s details on another website:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>MEC > All Events<\/strong>.<\/li>\n\n\n\n<li>Find your chosen event and click <strong>Create API<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e72680531&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2574\" height=\"1062\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02.png\" alt=\"Event API Addon\" class=\"wp-image-10730\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02.png 2574w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02-300x124.png 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02-1024x422.png 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02-768x317.png 768w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02-1536x634.png 1536w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-02-2048x845.png 2048w\" sizes=\"auto, (max-width: 2574px) 100vw, 2574px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Managing_the_API_Hub\"><\/span>Managing the API Hub<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once you click &#8220;Create API,&#8221; you will be directed to the management interface. This page is divided into two main sections:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e72680b4e&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2075\" height=\"1002\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1.jpg\" alt=\"Event API Addon\" class=\"wp-image-11944\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1.jpg 2075w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1-300x145.jpg 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1-1024x494.jpg 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1-768x371.jpg 768w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1-1536x742.jpg 1536w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2019\/09\/event-api_1-2048x989.jpg 2048w\" sizes=\"auto, (max-width: 2075px) 100vw, 2075px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Domain_Management_Left_Side\"><\/span>Domain Management (Left Side)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Domain Authorization:<\/strong> Enter the specific domain(s) where you want the event to be displayed. You can also set the API to work on <strong>All Domains<\/strong>.<\/li>\n\n\n\n<li><strong>Removing Access:<\/strong> To revoke access, select the domain(s) and click the <strong>Trash Icon<\/strong>. This immediately disables the API for those specific locations.<\/li>\n\n\n\n<li><strong>Finalize:<\/strong> Always click the <strong>Generate Button<\/strong> once your domain settings are configured.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Data_Extraction_Right_Side\"><\/span>Data Extraction (Right Side)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>The right side provides the tools needed for your destination website:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Script Field:<\/strong> Contains a script you can copy to your clipboard. Use this to embed the content directly into another site&#8217;s HTML.<\/li>\n\n\n\n<li><strong>JSON Field:<\/strong> Provides event data in JSON format, ideal for developers who want to pull raw data into a custom web application.<\/li>\n<\/ul>\n\n\n\n<p>You can see samples of the used API below:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e72681362&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1581\" height=\"782\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04.png\" alt=\"Event API Addon\" class=\"wp-image-10732\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04.png 1581w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04-300x148.png 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04-1024x506.png 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04-768x380.png 768w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-04-1536x760.png 1536w\" sizes=\"auto, (max-width: 1581px) 100vw, 1581px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e72681969&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1586\" height=\"789\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05.png\" alt=\"Event API Addon\" class=\"wp-image-10733\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05.png 1586w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05-300x149.png 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05-1024x509.png 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05-768x382.png 768w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-05-1536x764.png 1536w\" sizes=\"auto, (max-width: 1586px) 100vw, 1586px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><strong>Pro Tip:<\/strong> Ensure your host provider has <strong>iframes<\/strong> enabled on your website, as the script requires this functionality to display content properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Global_Settings_Customization\"><\/span>Global Settings &amp; Customization<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can find global configuration options by navigating to <strong>MEC Settings > Settings > Event API<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Source Integration:<\/strong> You can choose to include your source website\u2019s <strong>Header and Footer<\/strong> in the destination website&#8217;s output.<\/li>\n\n\n\n<li><strong>Event Limits:<\/strong> Control the number of events displayed in the shortcode output to maintain layout consistency.<\/li>\n<\/ul>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69f0e72682085&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2054\" height=\"782\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06.png\" alt=\"Event API Addon\" class=\"wp-image-10734\" title=\"\" srcset=\"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06.png 2054w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06-300x114.png 300w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06-1024x390.png 1024w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06-768x292.png 768w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06-1536x585.png 1536w, https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-content\/uploads\/2023\/11\/event-api-06-2048x780.png 2048w\" sizes=\"auto, (max-width: 2054px) 100vw, 2054px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Cases_When_This_Addon_is_Useful\"><\/span>Use Cases (When This Addon is Useful)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Cross-Platform Syndication:<\/strong> Perfect for organizations that manage one main event calendar but need to display specific schedules on partner websites or subdomains.<\/li>\n\n\n\n<li><strong>Mobile App Integration:<\/strong> Ideal for developers using the <strong>JSON format<\/strong> to feed real-time event data into a native mobile application.<\/li>\n\n\n\n<li><strong>Centralized Management:<\/strong> Useful for agencies managing multiple client sites who want to update an event once in a central hub and have it reflect everywhere instantly.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Situations_This_Addon_May_Not_Be_Ideal\"><\/span>Situations This Addon May Not Be Ideal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Host Restrictions:<\/strong> If your hosting provider strictly blocks <strong>iframes<\/strong>, the standard script method will not function.<\/li>\n\n\n\n<li><strong>Heavy Optimization Sites:<\/strong> If the destination site uses aggressive speed optimization plugins, they may block the external script links required for the API to load.<\/li>\n\n\n\n<li><strong>Strict GDPR Compliance:<\/strong> Third-party cookie consent plugins on the source site may sometimes carry over to the destination site, which may require additional technical styling to resolve.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_for_Beginners\"><\/span>Troubleshooting for Beginners<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Events Not Loading?<\/strong> If you use optimization plugins (like WP Rocket or Autoptimize), you must <strong>exclude &#8220;external links&#8221;<\/strong> within those plugins so the API script is not ignored.<\/li>\n\n\n\n<li><strong>Script Not Functional?<\/strong> Double-check that you have clicked the <strong>Generate Button<\/strong> after adding your domains; otherwise, the API remains inactive.<\/li>\n\n\n\n<li><strong>Formatting Issues?<\/strong> If the display looks &#8220;broken&#8221; on the new site, try toggling the <strong>Header and Footer<\/strong> options in the Event API settings to see which fits the destination&#8217;s CSS better.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1775549204619\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_is_the_purpose_of_the_MEC_Event_API_Addon\"><\/span><strong>What is the purpose of the MEC Event API Addon?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The MEC Event API Addon enables easy copying of events, exporting scripts, and downloading JSON files. It allows you to retrieve event or single event page data in JavaScript or JSON format and use it in web applications or display it on another WordPress site (even without MEC access) or a simple HTML page using an iframe.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549233147\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Is_the_Event_API_Addon_compatible_with_both_MEC_Lite_and_Pro\"><\/span><strong>Is the Event API Addon compatible with both MEC Lite and Pro?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes, you can use the Event API Addon with either MEC Lite or Pro.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549248363\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"How_do_I_use_the_Event_API_Addon_to_display_events_on_another_website\"><\/span><strong>How do I use the Event API Addon to display events on another website?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The easiest way to use the Event API Addon for shortcodes and single event pages on another website is to copy the JavaScript code, configure the domain option, and paste it into a plain HTML document. The event or shortcode will be displayed via iframe.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549261171\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Where_can_I_find_the_%E2%80%9CCreate_API%E2%80%9D_option_for_shortcodes_and_single_events\"><\/span><strong>Where can I find the &#8220;Create API&#8221; option for shortcodes and single events?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For shortcodes, Navigate to the shortcodes page of MEC and click \u201cCreate API\u201d on your chosen shortcode. and For single events, Navigate to the All Events page of MEC and click \u201cCreate API\u201d on your chosen event.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549273547\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_domain_configurations_are_available_when_creating_an_API\"><\/span><strong>What domain configurations are available when creating an API?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can specify particular domains to display events on or set the API to be used for all domains. To manage domain access, enter specific domains or set the API for all domains.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549285363\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"How_do_I_remove_an_API_from_a_domain\"><\/span><strong>How do I remove an API from a domain?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To remove an API, select the domain(s) or &#8216;All Domains&#8217; and click the trash icon.\u00a0<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549297062\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_type_of_data_outputs_are_available_from_the_Event_API_Addon\"><\/span><strong>What type of data outputs are available from the Event API Addon?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>1. JavaScript code to display any shortcode or single event page via iframe, 2. the entire calendar in JSON format, and 3. only the events in JSON format.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549323258\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Where_can_I_configure_the_Event_API_settings\"><\/span><strong>Where can I configure the Event API settings?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>After installing the Event API Addon, you can access its settings by going to MEC Settings &gt; Settings &gt; Event API. From there, you can include your source website header and footer in the destination website and limit the number of events in the shortcode output.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549333874\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_should_I_do_if_the_external_script_links_are_not_loading_on_my_web_pages\"><\/span><strong>What should I do if the external script links are not loading on my web pages?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If you&#8217;re using website loading speed optimization plugins, they might be the reason for the external script links not loading. You need to exclude &#8220;external links&#8221; in those plugins so they won\u2019t get ignored and can work properly.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549346834\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"What_are_the_basic_requirements_to_ensure_the_script_is_functional\"><\/span><strong>What are the basic requirements to ensure the script is functional?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To ensure your script is functional, verify that the script is enabled on all domains or a specific domain. Additionally, confirm with your host provider that the ability to create iframes on your website is enabled.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1775549362027\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"How_can_I_customize_the_display_of_events_on_the_destination_website_using_the_Event_API_Addon\"><\/span><strong>How can I customize the display of events on the destination website using the Event API Addon?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can include the source website&#8217;s header and footer on the destination website and limit the number of events displayed in the shortcode output.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>With this addon, you can easily copy events from one website into another, export your scripts, or download JSON file.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[15],"class_list":["post-1493","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-addons"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":14,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/1493\/revisions"}],"predecessor-version":[{"id":12851,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase\/1493\/revisions\/12851"}],"wp:attachment":[{"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/webnus.net\/dox\/modern-events-calendar\/wp-json\/wp\/v2\/knowledgebase_cat?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}