# Fetching data with \<ref\>

**URL:** <https://community.prismic.io/t/fetching-data-with-ref/12251>\
**Category:** Developing with Prismic\
**Created:** [January 24, 2023, 9:40am UTC](https://community.prismic.io/t/fetching-data-with-ref/12251 "2023-01-24T09:40:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@maksim](https://community.prismic.io/u/maksim)\
**Post date:** [January 24, 2023, 9:40am UTC](https://community.prismic.io/t/fetching-data-with-ref/12251/1 "2023-01-24T09:40:57Z")

</div>

Hey,

We are evaluating Prismic as a headless CMS for our platform. As far as we understand from the documentation, we [have to pass the `ref`](https://prismic.io/docs/rest-api-technical-reference#ref-required) in our API requests. We understand the motivation for this, however in our case we are just interested in latest available content. Is there a solution for that?

We know that we can fetch the latest `ref` through an api call `GET https://<REPOSITORY>.prismic.io/api/v2`, however we are not interested in using `ref` at all and just get the latest content.

Thanks!

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [January 24, 2023, 11:29am UTC](https://community.prismic.io/t/fetching-data-with-ref/12251/3 "2023-01-24T11:29:44Z")

</div>

Hello Maskin,

Welcome to the Prismic community, and thanks for reaching out to us.

The Master ref has required the latest version of the content.Prismic query performs one query to get your current ref (which is a short token) and then a second query — using that ref — to get your content. This ensures that the content returned is the correct version and up-to-date.

I am curious to know why you are not interested in using the ref despite the API being fast because ref.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@maksim](https://community.prismic.io/u/maksim)\
**Post date:** [January 24, 2023, 4:24pm UTC](https://community.prismic.io/t/fetching-data-with-ref/12251/4 "2023-01-24T16:24:55Z")

</div>

Hey,

Thank you for the quick response.

As I mentioned above, we are not interested in earlier versions. We are only interested in the latest version. And I understand, that we can make one query to get the latest `ref` and using it in another call. However, this sounds a bit wrong for us to make two requests to get the latest content, instead of simply having one request.

But if there is no other way to get the latest content without using ref -- this is the way it is. And we have to take it into our evaluations.

Thanks,  
Maksim
