Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
News
Announcements
Requests with pagination will change in the search API
Photo of the author
PedroAntunesCosta
Published on 1/24/2018
Last update on 12/15/2023

Warning: VTEX has two search options - VTEX search and VTEX Intelligent Search. This article refers to the VTEX search. To learn more about the VTEX Intelligent Search application, see this track.

Starting march 31st, the request header resources for pagination will be deprecated. As a result, you will have to use the parameters _from and _to in the URL in order to make a request. For example:

http://{{AccountName}}.{{environment}}.com.br/api/catalog_system/pub/products/search?ft=refrigerator&_from=1&_to=30

This change has already been implemented in the API, but until the due date, both ways to make the request will be permitted. On the other hand, we won't make any changes in the response header resources (so it will keep working normally).

Important:

  • The parameters _from and _to must not have a difference bigger than 50. This will limit the number of results shown to 50 at a time.

  • There's also a limit of 2500 items for any given search. Because of that, it's not possible to have a value over 2500 at the _to parameter.

To know more about how pagination requests work in the search API, take a look at this document.

Was this helpful?
Yes
No
Suggest Edits (GitHub)
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback