Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HOW to check id of project in gitlab

Tags:

gitlab

I want to use GitLab API to get the contents of my project. The URL is like this:

https://gitlab.com/api/v4/projects/:id/repository/files/:file_path?private-token=xxxxx

I have already created the private token, but I can not find my project's ID.

Looking for reply!

like image 227
user10084314 Avatar asked Dec 01 '25 01:12

user10084314


1 Answers

Since GitLab 11.2 (August 22nd, 2018), it is easier to check out one's project ID, thanks to Tuğçe Nur Taş.

See "Show project ID on project overview":

GitLab projects are associated with an auto-generated, unique project ID upon creation. This information is available in the General project settings and via our API.

With this release, we have added the project ID to the project overview page, so that users without Maintainer permissions also have access to this ID when needed.

https://about.gitlab.com/images/11_2/project-id-on-overview.png

  • See documentation,
  • see issue,
  • see merge-request.
like image 140
VonC Avatar answered Dec 04 '25 22:12

VonC