Closed akhmerov closed 4 years ago
My bad, I should have been reading the syntax more attentively. The correct syntax is curl -H 'Authorization: Bearer <token>' 'https://api.adsabs.harvard.edu/v1/search/query?q=entdate%3a%5B2020-01-10%20TO%202020-01-16%5D'|jq
I am trying to replicate the following query via the API:
entdate:[2020-01-15 TO 2020-01-16]
In the web UI it correctly returns entries from that date range, however when I run a corresponding API query:
curl -H 'Authorization: Bearer <token>' 'https://api.adsabs.harvard.edu/v1/search/query?entdate=%5B2020-01-10%20TO%202020-01-16%5D'|jq
I get an error stating that the query was empty.
Is this behavior intended? If yes, is there a way to achieve the desired result?