How can we get Project ID programmatically for GitLab projects associated with the circleci account

For the three vcs supported by circleci, we have observed that for GitHub and BitBucket we are able to access all the endpoints through Postman where the project sulg in the URL is prepared with the “Project Name”. Whereas in case of GitLab, the project slug takes “Project ID” instead of the “Project Name” and we could not find the GitLab “Project ID” programmatically through circleci endpoints.

Please help us if there is any way we can get the GitLab Project ID programmatically.