### Find the hottest repositories created in the last week Keep an eye on the latest trending repos. ```sh # We'll use the `date` command to get the date for "7 days ago" $ date -v-7d '+%Y-%m-%d' # => 2013-07-15 $ curl -G https://api.github.com/search/repositories \ --data-urlencode "q=created:>`date -v-7d '+%Y-%m-%d'`" \ --data-urlencode "sort=stars" \ --data-urlencode "order=desc" \ -H "Accept: application/vnd.github.preview" \ | jq ".items[0,1,2] | {name, description, language, watchers_count, html_url}" ``` ```json { "html_url": "https://github.com/mame/quine-relay", "watchers_count": 2492, "language": "Ruby", "description": "An uroboros program with 50 programming languages", "name": "quine-relay" } { "html_url": "https://github.com/jehna/VerbalExpressions", "watchers_count": 483, "language": "JavaScript", "description": "JavaScript Regular expressions made easy", "name": "VerbalExpressions" } { "html_url": "https://github.com/applidium/ADTransitionController", "watchers_count": 340, "language": "Objective-C", "description": "UINavigationController with custom transitions", "name": "ADTransitionController" } ``` Check out the [Repository Search API docs][1] for more details. [1]: http://developer.github.com/v3/search/#search-repositories