I'm having trouble using my API key with the todate
parameter. My query works fine with todate
:
$ curl -s "https://api.stackexchange.com/2.2/search/advanced?todate=2015-07-21&site=stackoverflow&tagged=abap&filter=total" | gunzip
{"total":830}
And it works fine with my API key if I remove todate
:
$ curl -s "https://api.stackexchange.com/2.2/search/advanced?site=stackoverflow&tagged=abap&filter=total&key=$mykey" | gunzip
{"total":1144}
But for some reason I can't use both:
$ curl -s "https://api.stackexchange.com/2.2/search/advanced?todate=2015-07-21&site=stackoverflow&tagged=abap&filter=total&key=$mykey" | gunzip
{"error_id":400,"error_message":"todate","error_name":"bad_parameter"}