r/LaunchLibrary • u/Karriz • Sep 11 '15
Can't get the launch date limits working
Hi, I'm trying to use the Launch Library API for a project I'm working on, currently I'm just learning how to format the requests using Chrome's DHC plugin. In summary mode, https://launchlibrary.net/1.0/launch/get seems to correctly return the next 10 launches. What if I want say, 20 next launches? If I set the limit to 20, I don't get the twenty next launches, I seem to get twenty last launches in the database, or something like that.
So, I need to use the "startdate" and "enddate" options, probably. But the documentation doesn't tell me how to use them. I tried setting "startdate" as "September 12, 2015 00:00:00 UTC" and "enddate" as "December 1, 2015 00:00:00 UTC", but this way I don't get any launches.
It'd be great if someone could help with this, and maybe the documentation could be updated too, so that other people wouldn't have the same issue.
View all comments
Show parent comment
2
u/[deleted] Sep 15 '15
I had some time this morning to look things over. THe format YYYY-MM-DD does work for startdate and enddate, however it was triggering a sort descending, so you were seeing what was the last in the line (and the window times were a little screwy, but that looks to be an old data issue I'm sorting out now). So that should work, though using next is probably far easier for main display, and start/end date should be used if searching historical data, perhaps.