{"id":21152692,"url":"https://github.com/darjun/ghtrending","last_synced_at":"2025-07-09T10:33:01.817Z","repository":{"id":57597483,"uuid":"377319026","full_name":"darjun/ghtrending","owner":"darjun","description":"API to fetch github trending","archived":false,"fork":false,"pushed_at":"2021-06-17T14:22:08.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:11:17.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darjun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-15T23:38:32.000Z","updated_at":"2023-05-16T05:47:00.000Z","dependencies_parsed_at":"2022-08-28T09:10:25.320Z","dependency_job_id":null,"html_url":"https://github.com/darjun/ghtrending","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darjun/ghtrending","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darjun%2Fghtrending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darjun%2Fghtrending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darjun%2Fghtrending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darjun%2Fghtrending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darjun","download_url":"https://codeload.github.com/darjun/ghtrending/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darjun%2Fghtrending/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264440370,"owners_count":23608699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T10:45:41.194Z","updated_at":"2025-07-09T10:33:01.507Z","avatar_url":"https://github.com/darjun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ghtrending\n\nAPI to fetch github trending\n\n## Usage\n\ninstall package:\n\n```cmd\n$ go get -u github.com/darjun/ghtrending\n```\n\nfetch trending repositories：\n\n```golang\nimport \"github.com/darjun/ghtrending\"\n\nt := ghtrending.New()\nrepos, err := t.FetchRepos()\n```\n\nfetch trending developers:\n\n```golang\nt := ghtrending.New()\ndevelopers, err := t.FetchDevelopers()\n```\n\nuse options：\n\n```golang\n// Go weekly trending\nt := ghtrending.New(ghtrending.WithWeekly(), ghtrending.WithLanguage(\"Go\"))\n\n// C++ monthly trending\nt := ghtrending.New(ghtrending.WithMonthly(), ghtrending.WithLanguage(\"C++\"))\n\n// 中文\nt := ghtrending.New(ghtrending.WithSpokenLanguageCode(\"cn\"))\n```\n\nyou don't need to create object:\n\n```golang\nrepos := ghtrending.TrendingRepositories()\ndevelopers := ghtrending.TrendingDevelopers()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarjun%2Fghtrending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarjun%2Fghtrending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarjun%2Fghtrending/lists"}