# Fetch metadata url's

**URL:** <https://community.hubspot.com/t/fetch-metadata-urls/74011>\
**Category:** CMS Development\
**Created:** [January 30, 2023, 10:44am UTC](https://community.hubspot.com/t/fetch-metadata-urls/74011 "2023-01-30T10:44:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnS\_Nathan](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@SnS\_Nathan](https://community.hubspot.com/u/SnS_Nathan)\
**Post date:** [January 30, 2023, 10:44am UTC](https://community.hubspot.com/t/fetch-metadata-urls/74011/1 "2023-01-30T10:44:21Z")

</div>

Hello devs.  
I have a module on my website where i highlight a page from my website. i’m trying to automatically fetch the featured image, title and url attached to that page. Is there a way to do this in HubL or Hubspot?  
All suggestions are welcome!

---

<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:** [January 30, 2023, 1:45pm UTC](https://community.hubspot.com/t/fetch-metadata-urls/74011/2 "2023-01-30T13:45:16Z")

</div>

You can use the [content\_by\_id](https://developers.hubspot.com/docs/cms/hubl/functions#content-by-id) function to get a specific page’s content. If you’re doing this in a custom module you can use the page field to easily get the ID of the page.

 ![page_field.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/6/16e868dceb0f6948686db9354bae0017f036923d.png)

```lia-code-sample
{% set page = content_by_id(module.page_field) %}
Title: {{ page.name }}
URL: {{ page.absolute_url }}
Featured Image: <img src="{{ page.featured_image }}" />

```
