Search Repositories by Webpage #167920
Replies: 2 comments 1 reply
-
|
Yes, you can search for repositories that have a website set from a specific domain using GitHub's advanced search or the GitHub REST API. O 1: Using GitHub Search (limited)GitHub's search doesn't directly let you filter by website domain, but you can try searching in repository metadata using: or This finds repos where your domain is mentioned in the README or description, which is often where the "website" link appears. Example: Try this in Google or DuckDuckGo to find GitHub repos linking to a specific domain. O 2: GitHub REST API (Recommended for Precision)You can use the GitHub API to list repositories and filter by Here's a basic script example using Node.js and GitHub REST API v3: const axios = require("axios");
const searchRepos = async () => {
const query = 'org:YOUR_ORG_NAME'; // or user:USERNAME
const token = 'YOUR_GITHUB_TOKEN'; // personal access token
const headers = { Authorization: `token ${token}` };
const res = await axios.get(`https://api.github.com/search/repositories?q=${query}&per_page=100`, { headers });
const matching = res.data.items.filter(repo =>
repo.homepage && repo.homepage.includes('yourdomain.com')
);
console.log(matching.map(repo => ({
name: repo.full_name,
homepage: repo.homepage
})));
};
searchRepos(); |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Is there a way to search for repos that have set a website from a specific domain?
Beta Was this translation helpful? Give feedback.
All reactions