Overview of options for embedding your guideline content in other websites

Modified on Fri, 27 Nov at 10:40 AM

Because your guideline is stored in MAGICapp as structured data, you can reuse its content on other websites in several ways. This article gives a plain-language overview of the options, so you can choose the approach that fits your needs and technical resources.

At a glance

Option
Technical skill needed
Content readers see
Works for non-public guidelines?
Sharing links
None
Opens in MAGICapp
No (readers need access)
Widgets (copy-and-paste code)
Low
Interactive recommendation or PICO on your page
No
Web components
Medium (web developer)
Interactive recommendation or PICO on your page
Yes, with authentication
API
High (software developer)
Whatever you build
Yes, with an API User Account


MAGICapp lets you create links that do not break and that can point to specific pieces of content, such as a single recommendation or section. Readers click the link and view the content in MAGICapp.

Good for: pointing readers to specific content from web pages, emails, documents or social media, with no technical work.


Advantages

  • Living links always take the user to the latest content.
  • Works anywhere you can place a link.
  • Can point to a specific recommendation or section, not just the whole guideline.

Limitations

  • Readers leave your website and view the content on magicapp.org.
  • You have no control over the surrounding experience.

Learn more: Sharing links to content in MAGICapp


Widgets (copy-and-paste code)


Widgets are the simplest way to show MAGICapp content directly on your own site. Every recommendation and every PICO has ready-made HTML code. You find it under Links and widgets: for published guidelines, use the (!) icon at the top right of the recommendation; for draft guidelines, use Options.

  • The recommendation widget shows an interactive, multilayered version of the recommendation, including summary of findings tables, decision aids and references. It can show which guideline and organization the recommendation belongs to, with an optional link back to the same recommendation in the full guideline.
  • The PICO widget shows an interactive summary of findings table, including outcome details, practical issues, the narrative evidence summary and references.

Widgets can be used in three ways:

  1. embedded on a website or web document;
  2. as a pop-up window; or
  3. in a separate browser window.

You can adjust the size by changing the width and height in the code. You can show a widget open (on a chosen tab, such as Key information, Decision aids or Practical information) or closed to save space. You can also choose to always show the most recent version of the evidence or lock the widget to one specific version.

Good for: online texts that reference a recommendation, pop-ups from pathway tools, textbooks or journal articles, and groups that publish guideline content on their own platform without building the interactive features themselves.


Advantages

  • Minimal effort and technical ability needed.
  • Readers get the full interactive functionality of MAGICapp without leaving your page.
  • Choose between always showing the latest version or a fixed version.
  • Flexible display: embedded, pop-up or separate window; open or closed.
  • Includes decision aids (use the recommendation widget with the decision aid tab open).

Limitations

  • The widget presents the content as it appears in MAGICapp, so there is limited scope to redesign it.
  • Covers recommendations and PICOs, not whole guidelines.
  • Intended for public content.

Learn more:


Web components (for web developers)

Web components are MAGICapp's technical option for website integrations. There are two display components:

  • <magicapp-recommendation> displays a complete recommendation with its key information, rationale, evidence summaries, decision aids and more.
  • <magicapp-pico> displays PICO (Population, Intervention, Comparison, Outcome) information for clinical questions.

Both use the same code that powers the MAGICapp interface, wrapped as a web component. They are suited to external websites, EHR systems and clinical decision support tools.

To use them, your developer includes the component script in the page <head>, adds the component tag where the content should appear, and configures it with HTML attributes or JavaScript properties. Optionally, your page can listen for component events to respond to user actions.


Advantages

  • Tighter integration with your page than a pasted snippet, including events your page can respond to.
  • Uses MAGICapp's production code, so content looks and behaves consistently with MAGICapp.
  • Can display non-public content when combined with authentication (see option 4).

Limitations

  • Written for technical teams; you will need a web developer.
  • More setup than a copy-and-paste widget.

Learn more:


Web components with authentication (for non-public content)

If you need to show guidelines that are not public to internal users who do not have MAGICapp accounts, the web components can be given an access token. In this setup, your own server (the backend) logs in to MAGICapp using your organization's API User Account and passes the token to the web component in the page.

A login component, <magicapp-connect>, is also available. It handles the OAuth 2.0 login flow with MAGICapp and enables authenticated requests from other components on the same page.

Before you start, you need an API User Account and you must grant that account Viewer access to each guideline you want to show.


Advantages

  • Lets you show non-public guidelines to internal users who do not have MAGICapp accounts.

Limitations

  • The most complex embed option, requiring server-side development.
  • The access token is visible in the page source, so only grant access to guidelines you are comfortable sharing with your internal audience.
  • Never expose API User Account credentials in the browser.
  • Each organization can have one API User Account per environment (test and production), and development and testing must be completed in the test environment before production credentials are shared.

Learn more:


The MAGICapp API (build your own)

The API gives direct access to the structured data in your guideline, so you can create any interface you want. Examples include a new portal on your website, a mobile app, or an integration into another IT system.

Anyone can access public content through the API without logging in. To access non-public content (such as drafts or published guidelines that are not set to public), your organization must request an API User Account and grant it access to the relevant guidelines. You can set its permission level, for example to Reviewer for read-only access. The default level, Author, allows reading and writing, so choose carefully.

Good for: organizations with developers who want full control over how content is presented or combined with other systems.


Advantages

  • Complete control over design and presentation.
  • Can combine MAGICapp content with your other data and systems.
  • Public content is available without an account.

Limitations

  • Requires technical expertise.
  • No formatting comes through the API, so you need to style items such as table borders yourself with CSS.
  • API User Account credentials are for server-side use only. Do not use them in a web app or page, because anyone could copy them and use them to access or edit your data.

Learn more:


Which option should I choose?

  • Point readers to specific content: use sharing links.
  • Show a recommendation or evidence table on a page, without coding: use widgets.
  • Integrate more closely, or build into a clinical system: use web components.
  • Show private guidelines to internal users: use web components with authentication.
  • Create a fully custom experience: use the API.


Need help?

If you have questions about widgets or the API, contact support@magicevidence.org.

For a broader overview of dissemination options, see: Dissemination of MAGICapp content: an overview.


Technical Documentation


Last Updated: 25 November 2026

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article