DEV Community

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

Posted on • Edited on

10 3 3 3 3

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 🩷🩷🩷

Billboard image

Try REST API Generation for MS SQL Server.

DevOps for Private APIs. With DreamFactory API Generation, you get:

  • Auto-generated live APIs mapped from database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay