API Github - Search repositories - sort updated - Format timestamp #24746
-
Guys, I need to make a request ordering by “updated” and that the “updated” is greater than X. I tried to put in place of “X” several types of timestamp / date and none got success. Format: “2019-03-31T00:45:57Z” 2019-03-31T00:45:57Z 31/03/2019 31.03.2019 Request:
The documentation shows that I can sort by “updated”, but it doesn’t show how to search for “updated”. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Kindly have a look at this docs.github.comSearching for repositories - GitHub DocsUnderstanding the search syntax - GitHub DocsIf you are using repository type in a search query you can use The query which you were expecting should be something like this
PFA |
Beta Was this translation helpful? Give feedback.
-
I need to put the same question in both the query and the sort. That is, I need to put. pushed:>=X&sort=pushed or updated:>=X&sort=updated However, I am not able to do this. My idea is as follows. API limits 1000 records per request correct? then, after going through the 10 pages with 100 records each. I’m going to lose the information from the last record (updated OR pushed) and do a new search with the timestamp of that last record. |
Beta Was this translation helpful? Give feedback.
@gabrieldeoliveiraestevam
Kindly have a look at this
docs.github.com
Searching for repositories - GitHub Docs
//docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-for-repositories
docs.github.com
Understanding the search syntax - GitHub Docs
//docs.github.com/en/github/searching-for-information-on-github/getting-started-with-searching-on-github/understanding-the-search-syntax
If you are using repository type in a search query you can use
pushed
instead ofupdated
.The query which you were expecting should be something like this