How can I create a search query sorted by the created_at
field? I've tried:
https://api.github.com/search/repositories?q=blog&sort=created_at&order=desc
and
https://api.github.com/search/repositories?q=blog&sort=created&order=desc
But I get the same results as this query:
https://api.github.com/search/repositories?q=blog
The sort
parameter only takes one of three values: stars
, forks
or updated
:
The sort field. One of
stars
,forks
, orupdated
. Default: results are sorted by best match.
It doesn't appear to be possible to sort by creation date, but you could read the response of the search query into an array and sort from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With