# oembed function

**URL:** <https://community.hubspot.com/t/oembed-function/69843>\
**Category:** CMS Development\
**Tags:** developer\
**Created:** [November 23, 2022, 12:22pm UTC](https://community.hubspot.com/t/oembed-function/69843 "2022-11-23T12:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcC](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@MarcC](https://community.hubspot.com/u/MarcC)\
**Post date:** [November 23, 2022, 12:22pm UTC](https://community.hubspot.com/t/oembed-function/69843/1 "2022-11-23T12:22:51Z")

</div>

Hello,

I want to use [oembed function](https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields/oembed) to import metadata from a newspaper article URL to use in an email (title, image, href).

I want to use [https://iframely.com/](https://iframely.com/) to generate the oembed json. But this is not working with oembed function.

There is a similar function to oembed but to import a external json data?

I need to use inside email template and I can’t use javascript.

Thanks!

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [November 28, 2022, 8:50am UTC](https://community.hubspot.com/t/oembed-function/69843/2 "2022-11-28T08:50:31Z")

</div>

Hi @MarcC

Thank you for reaching out.

I want to tag some of our experts here - @Anton @BarryGrennan @Stephanie-OG do you have any thoughts for @MarcC on this?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [November 28, 2022, 3:39pm UTC](https://community.hubspot.com/t/oembed-function/69843/3 "2022-11-28T15:39:19Z")

</div>

Hi @MarcC,

Do you have HubDB? If so, you could create a Table, use the [HubDB API](https://developers.hubspot.com/docs/api/cms/hubdb#endpoint?spec=POST-/cms/v3/hubdb/tables/%7BtableIdOrName%7D/draft/import) to get the content into HubSpot and output it with a custom module in your email.

If you don’t have it you could overengineer a blog function for this. So basicly create a non-listed blog, put your informations into it (also possible with [API](https://developers.hubspot.com/docs/api/cms/blog-post)) and output it with a custom blog post module into your mails

A third option could be to create custom [CRM objects](https://developers.hubspot.com/docs/cms/data/crm-objects).

hope that helps,

best,

Anton
