Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


nick_sh

Question

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?

 

Link to comment

2 answers to this question

Recommended Posts

  • 0
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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, 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...