# oEmbed custom provider

**URL:** <https://community.hubspot.com/t/oembed-custom-provider/94720>\
**Category:** CMS Development\
**Tags:** marketing-email\
**Created:** [November 24, 2023, 9:50am UTC](https://community.hubspot.com/t/oembed-custom-provider/94720 "2023-11-24T09:50:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cladico](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cladico](https://community.hubspot.com/u/cladico)\
**Post date:** [November 24, 2023, 9:50am UTC](https://community.hubspot.com/t/oembed-custom-provider/94720/1 "2023-11-24T09:50:17Z")

</div>

Hello,

I made a custom oembed like in instructions of [oembed](https://oembed.com/) when i try to use it i get 404, but everything works;

Over a custom module with oembed i want to show images from my website and add them in a email and send the output, so i won’t have to load the image, title and description each time;

Do you have a allowlist or a specific list of oembed providers that we can only use?

Here is my implemantation  
I created a New File, type: Module, checked that i want to use Module in emails.  
Now on the right side i added a group called links with one field called url and reapeater option on.

In Hubl i added this code:

```lia-code-sample
{% set myDomain = "https://my-domain.com/oembed&url=" %}

<table>
<tbody>
{% for item in module.links %}

{% set image = oembed({ url: myDomain ~ item.url}).thumbnail_url %}
{% set title = oembed({ url: myDomain ~ item.url}).title %}
{% set description = oembed({ url: myDomain ~ item.url}).description %}

<tr>
	<td >
		<img src="{{ image }}" alt="{{ title }}">
	</td>
</tr>
<tr>
	<td >{{ title }}</td>
</tr>
<tr>
	<td >{{ description }}</td>
</tr>
{% endfor %}
</tbody>
</table>

```

Then i activated the module i go to Marketing-\>Email-Content Tab-\>Press More → choose my module, Press add because i selected to have reapeater option on, a input text field show, i add my url and in email the table with image,title and description should autofill;  
Before implementing oembed on my website i tested using flickr. Fo testing porposes:

`{% set myDomain = "https://flic.kr/p/" %}`

And in url field add ending of the flickr url, like 4EtoZg, 4yz722, and 4vCCcs only change oembed variables, because flickr oembed json doesen’t have description field.  
With flickr works like a charm, i don’t have to add image link, title or description, i just add the link and all info just loads. Thats why i think this is a awesome way to use it. I integrated oEmbed on my website verified that oembed integration works with other tools, but when i add my domain instead of flickr with same structure, same implementation in design manager, for my domain just doesen’t work, like my domain is blocked or something;

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [November 24, 2023, 3:40pm UTC](https://community.hubspot.com/t/oembed-custom-provider/94720/2 "2023-11-24T15:40:03Z")

</div>

Hey @cladico just to confirm, are you adding the oembed to your email? If so, I would imagine most email clients don’t support oembed. Emails in general reject third party media being loaded. Doing a quick search I believe oembed is [unlikely to work](https://superuser.com/questions/750417/oembed-in-email) in email.

My assumption here is that the email client is rejecting third party media loading so this will not work. However, I’d love to hear more about your use case, is there a specific reason why you’re using oembed as opposed to embedding images directly in your emails?

---

<div class="post-metadata">

**Author:** ![cladico](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cladico](https://community.hubspot.com/u/cladico)\
**Post date:** [November 25, 2023, 9:07am UTC](https://community.hubspot.com/t/oembed-custom-provider/94720/3 "2023-11-25T09:07:36Z")

</div>

Hello,

Thank you for the reply, I’m using oembed inside a module in design manager.  
I updated my first post for more details

---

<div class="post-metadata">

**Author:** ![inilesh](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@inilesh](https://community.hubspot.com/u/inilesh)\
**Post date:** [July 10, 2024, 7:28am UTC](https://community.hubspot.com/t/oembed-custom-provider/94720/4 "2024-07-10T07:28:43Z")

</div>

Hello, I have the same like that issue

I made a custom oembed like in the instructions of [https://oembed.com/](https://oembed.com/) when i try to use it i get 404 on Hubspot email marketing get this issue

 ![inilesh_0-1720596199525.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7d217fbba9f86bdc5e305f3749dfd691233bf086.png)

same like this working

 ![inilesh_1-1720596244242.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/f/4f513037b7df95d46f9cd36d5801a21146d60c1f.png)

So, I am not sure which issue. please let me know if you have any suggest

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [July 12, 2024, 2:10pm UTC](https://community.hubspot.com/t/oembed-custom-provider/94720/5 "2024-07-12T14:10:04Z")

</div>

Hey @inilesh according to that error there’s no embed found, I’d check in with oembed to find out why this is not being found!

FYI most email clients don’t support javascript or iframes. So embedding content probably won’t work on email.
