Skip to main content
Question

Search API

  • May 22, 2025
  • 3 replies
  • 26 views

Forum|alt.badge.img

Is there a way to search using the api and return the number of versions of a file in the results?

Ive tried to search using a date range and the file name and get an error as the result.

 

heres what I tried: curl -X GET https://api.box.com/2.0/folder/*foldernumber*/search?query=.ai&types=file&updatedTime=customrange&updatedTimeFrom=*datetimestring* privacy***&updatedTimeTo=*datetimestring* \
-H "Authorization: Bearer XXX" 

3 replies

Forum|alt.badge.img

Hi ,

 

Not directly through the search endpoint, but using the results that come back from search you can then use that data in conjunction with the get file versions endpoint to capture that data.

 

Thanks,

Jon


Forum|alt.badge.img

 

 

What would the proper API search be to search within a time frame with an extension in a specific folder? My example errors.


Forum|alt.badge.img

Hi ,

 

What's the error you're receiving? 

 

- Jon