Git Product home page Git Product logo

Comments (1)

albertomosconi avatar albertomosconi commented on May 22, 2024

Found a solution on this reddit post.

![stars](https://img.shields.io/badge/dynamic/json?label=%E2%98%85&query=%24.star_count&url=https%3A%2F%2F[REPO_HOST]%2Fapi%2Fv4%2Fprojects%2F[PROJECT_ID])

Change [REPO_HOST] with the website that's hosting the repo (removing also the brackets).

Change [PROJECT_ID] with the project ID (removing also the brackets). You can find the project id by going on the repository page, viewing the html source code for the page, finding an input tag with the name project_id, and copying it's value.
For example <input type="hidden" name="project_id" id="search_project_id" value="36" ... />

If the repo is hosted on gitlab.com, and the project id is 362854, then the url will be:

![stars](https://img.shields.io/badge/dynamic/json?label=%E2%98%85&query=%24.star_count&url=https%3A%2F%2Fgitlab.com%2Fapi%2Fv4%2Fprojects%2F362854)

If the repo is hosted on code.videolan.org and the project id is 36, then the url will be:

![stars](https://img.shields.io/badge/dynamic/json?label=%E2%98%85&query=%24.star_count&url=https%3A%2F%2Fcode.videolan.org%2Fapi%2Fv4%2Fprojects%2F36)

from foss-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.