Hey, I try to fetch datasets via the search api in a given date range. For example https://darus.uni-stuttgart.de/api/search?q=*&fq=publicationStatus:Published&type=dataset&per_page=2&sort=date&order=asc&dateSort=[2021-01-01T00:00Z+TO+2022-01-01T00:00Z]&start=0&show_entity_ids=true should return datasets in [2021-01-01, 2022-01-01]. However in the results there are datasets with published_at in 2019. Am I doing something wrong?
I followed this part of the documentation: https://guides.dataverse.org/en/latest/api/search.html#date-range-search-example
dateSort is not documented in the list of parameters as well: https://guides.dataverse.org/en/latest/api/search.html#parameters
ah, my fault, the correct url would be: https://darus.uni-stuttgart.de/api/search?q=*&fq=publicationStatus:Published&type=dataset&per_page=2&sort=date&order=asc&fq=dateSort:[2021-01-01T00:00:00Z+TO+2022-01-01T00:00:00Z]&start=0&show_entity_ids=true :)
Stefan Ollinger has marked this topic as resolved.
Last updated: Oct 30 2025 at 06:21 UTC