# Populate custom module with data from external api for use in email template

**URL:** <https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352>\
**Category:** APIs & Integrations\
**Tags:** email, cms-content, developer-tools, professional\
**Created:** [May 14, 2021, 3:28pm UTC](https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352 "2021-05-14T15:28:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gtamhan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gtamhan/32/88643_2.png) [@gtamhan](https://community.hubspot.com/u/gtamhan)\
**Post date:** [May 14, 2021, 3:28pm UTC](https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352/1 "2021-05-14T15:28:18Z")

</div>

I would like to create a custom module for use in an email template that will fetch a list of blogs posts from my personal site and display the blog post’s image, short summary, and link in the email. Is it possible to use Hubspot Serverless Functions to fetch data for use in an email template? If so, how would I access the fetched data within my custom module?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 14, 2021, 7:34pm UTC](https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352/2 "2021-05-14T19:34:14Z")

</div>

Hi @gtamhan

Is your personal site on HubSpot? You shouldnt need serveless functions for that.

@alyssamwilie , any thoughts?

---

<div class="post-metadata">

**Author:** ![gtamhan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gtamhan/32/88643_2.png) [@gtamhan](https://community.hubspot.com/u/gtamhan)\
**Post date:** [May 14, 2021, 7:44pm UTC](https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352/3 "2021-05-14T19:44:00Z")

</div>

Personal site is on WordPress.

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [May 20, 2021, 7:55pm UTC](https://community.hubspot.com/t/populate-custom-module-with-data-from-external-api-for-use-in-email-template/37352/4 "2021-05-20T19:55:41Z")

</div>

@gtamhan Pretty sure serverless functions are only available on webpage templates. Hubspot has an RSS module that you could build off of though.
