Hey guys,
We are working on API 2024-01 migration because it offers a higher limit when it comes to items_page query (500 in 2024-01 against 100 in 2023-10).
You can see it clearly documented in the graphQL Schema and API Docs
items_page(
"An opaque token representing the position in the result set from which to resume fetching items. Use this to paginate through large result sets."
cursor: String,
"The maximum number of items to fetch in a single request. Use this to control the size of the result set and manage pagination. Maximum: 500."
limit: Int! = 25,
"A set of parameters to filter, sort, and control the scope of the items query. Use this to customize the results based on specific criteria."
query_params: ItemsQuery
): ItemsResponse!
Buuuuuut, when we set limit
parameter to 500 and use query_params
.ids
to set more than 100 item ids we get an error:
INVALID_ARGUMENT_EXCEPTION: Invalid request: the number of provided IDs cannot exceed the limit of 100
This is confusing, what’s the benefit of increasing the limit to 500 while limiting the number of IDs to 100 ? 🤔
How can we get 500 items in one call using their IDs ?