hardcoded limit in API + argument "limit" doesn't work
StCyr opened this issue · 3 comments
StCyr commented
the "query" API seems to have an hardcoded limit of maximum 50 results to return. And, the "limit" argument doesn't work
support@houdini:~$ date
Thu Aug 3 09:54:08 CEST 2017
support@houdini:~$ curl -s 'http://cve.circl.lu/api/query?time_start=01-07-2017&time_modifier=from&time_type=last-modified' | grep -c "\{"
50
support@houdini:~$ curl -s 'http://cve.circl.lu/api/query?time_start=01-07-2017&time_modifier=from&time_type=last-modified&limit=500' | grep -c "\{"
50
support@houdini:~$ curl -s 'http://cve.circl.lu/api/query?time_start=01-07-2017&time_modifier=from&time_type=last-modified&limit=10' | grep -c "\{"
50
StCyr commented
also time comparaison doesn't seem to work. Example: The following query looks for CVE modified between 01/07/2017 and 03/07/2017. Though, only CVE modified on 02/08/2017 are returned:
support@houdini:~$ curl -s 'http://cve.circl.lu/api/query?time_start=01-07-2017&time_end=03-07-2017&time_modifier=between&time_type=last-modified' | egrep -ie "(modified|published)" | grep -cv "2017-08-02"
0
support@houdini:~$
StCyr commented
registered the issue against https://github.com/cve-search/cve-search
StCyr commented