Jump to content

Get all items from collection with "?format=json-pretty"

Recommended Posts

On 7/15/2021 at 9:00 PM, nick_sh said:

Is there a way to get ALL items from a collection (blog, portfolio, etc) with json? When I'm trying to add "?format=json-pretty" to the collection page, it only shows first 20 items and next page offset. 

Ideally I'd like to somehow access all items at once, rather than doing several queries for 20 items each.

Is that possible at all?

 

You need to do offset request, that is squarespace limit, you can also cache the result somewhere to access them faster each time

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.