Skip to content

REST API Endpoints for /explore and /trending #161519

Discussion options

You must be logged in to vote

Thanks for clarifying, @neurotech! GitHub does not provide official REST API endpoints for /trending or /explore. However, you do have a few options:

✅ Alternative Approaches

  1. Unofficial APIs
    There are community-maintained APIs like:

https://ghapi.huchen.dev (Note: currently archived)

https://github-trending-api.now.sh

⚠️ These are unofficial and may be rate-limited or shut down without warning.

  1. Web Scraping
    You can scrape https://github.com/trending using tools like:

Puppeteer (Node.js)

BeautifulSoup (Python)

Playwright (multi-language)

Example (Python):

python
Copy
Edit
import requests
from bs4 import BeautifulSoup

url = 'https://github.com/trending'
html = requests.get(url).text
sou…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@neurotech
Comment options

@heetgabanii
Comment options

Answer selected by neurotech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Feed
Labels
Question Ask and answer questions about GitHub features and usage
3 participants