# Sitemap - I need empty data

**URL:** <https://community.prismic.io/t/sitemap-i-need-empty-data/16022>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs\
**Created:** [May 29, 2024, 2:06pm UTC](https://community.prismic.io/t/sitemap-i-need-empty-data/16022 "2024-05-29T14:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzo](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lorenzo](https://community.prismic.io/u/lorenzo)\
**Post date:** [May 29, 2024, 2:06pm UTC](https://community.prismic.io/t/sitemap-i-need-empty-data/16022/1 "2024-05-29T14:06:56Z")

</div>

Hi!  
I have to generate a sitemap for the dynamic pages of the site (a few hundred).

The question is: with `client.getAllByType` is it possible to fetch empty `data`? I am only interested in metadata such as: `url`, `alternate_languages`, `last_publication_date`. Everything inside `data` makes the request enormously heavy and useless.

If I use `graphQuery = `{}` it returns error.  
I think a function that only returns metadata is necessary and essential. How can I manage this?

**I do not build a static site**

Thank you !

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [June 8, 2024, 4:56am UTC](https://community.prismic.io/t/sitemap-i-need-empty-data/16022/3 "2024-06-08T04:56:12Z")

</div>

Thanks for reaching out! While it's currently not possible to query for empty data with REST, have you considered utilizing the GraphQL endpoint of your repository? It allows you to retrieve only the fields you need from a certain type, which could help streamline your request and avoid unnecessary data retrieval.
