使用githubapi搜索topic对应的repository时不能指定日期范围吗?

Can't you specify a date range when searching the repository corresponding to topic using github api?

您将使用 github api 搜索已注册主题的存储库。

但是,由于搜索结果限制为1000条,我想以搜索日期为限。如下所示。

https://api.github.com/search/repositories?q=topic:AAA&createdat:2020-10-11

我忽略日期搜索了还有其他方法吗?

我想寻求你的帮助。谢谢。

您的查询中存在一些问题:

  • 正确的搜索查询字词是 created(未创建于)

  • 搜索查询参数由空格分隔,如下所示:

    topic:AAA created:2020-10-11
    

您的查询将是:https://api.github.com/search/repositories?q=topic:AAA%20created:2020-10-11

来自doc :

You can search for dates that are earlier or later than another date, or that fall within a range of dates, by using >, >=, <, <=, and range queries. Date formatting must follow the ISO8601 standard, which is YYYY-MM-DD (year-month-day).

举几个例子:

  • 创建日期:

https://api.github.com/search/repositories?q=topic:AAA%20created:%3E2017-10-11

  • 创建日期:

https://api.github.com/search/repositories?q=topic:AAA%20created:2017-01-01..2018-01-01