How to get only the uuid’s of all stories (in a folder)

I am working on an overview page of all stories in a folder. I want to load a story preview card only if it enters the viewport. For that, i would use the new fetch () in nuxt. When I normally call all stories with something like the lines below, I would load a bunch of stories that are below the viewport und extend loading time.

return context.app.$storyapi.get(`cdn/stories`, {
  starts_with: 'explore/',
  per_page: 100,
  page: 1,
}).then((res) => { … }

Therefore, I would like to only load all the uuid of all stories in a folder to pass them on to the components. I know of the link API, witch – as far as I see – does not provide a page or per_page property, so that I cannot you it.

Am I not seeing something? Or is there another way to do this?

Thanks, Mato.

Hello @matovincetic,

you can use the links API also paginated:
https://www.storyblok.com/docs/api/content-delivery#core-resources/links/retrieve-multiple-links

Here is an example:
https://api.storyblok.com/v1/cdn/links?version=draft&token=5EgKInxYa31dIBnLS3UrSQtt&cv=1611753561&paginated=1&per_page=5&page=1

Best regards
Hannes

Of course i missed that detail. Thanks Hannes! Works like a charme.

1 Like