If you want to add your pinned repositories to your portfolio or website and can't find an API that works for this, then your problems are over. I've created an API that does exactly that, and its usage is extremely easy. Simply pass your GitHub username as a query parameter.
https://api.kremilly.com/github?user=YOUR_USERNAME
Example of use:
fetch('https://api.kremilly.com/github?user=kremilly').then(
json => json.json()
).then(callback => {
console.log(callback)
})
Replace YOUR_USERNAME with your GitHub username.
The API will return a JSON with all your pinned repositories (if any; otherwise, it will return an empty JSON).
Top comments (2)
Congrats on your first post! Really solid API, i'll certaintly use on my portfolio
Hope to see more content from you 🩷
Thanks so much 🩷🩷🩷