DEV Community

Cover image for How to add pinned repos in your portfolio or website?
Kremilly
Kremilly

Posted on • Updated on

How to add pinned repos in your portfolio or website?

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) 
})


Enter fullscreen mode Exit fullscreen mode

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)

Collapse
 
cherryramatis profile image
Cherry Ramatis

Congrats on your first post! Really solid API, i'll certaintly use on my portfolio

Hope to see more content from you 🩷

Collapse
 
kremilly profile image
Kremilly

Thanks so much 🩷🩷🩷