# SonarQube API, accessing project data

**URL:** <https://community.sonarsource.com/t/sonarqube-api-accessing-project-data/115115>\
**Category:** SonarQube Server / Community Build\
**Created:** [May 10, 2024, 1:26pm UTC](https://community.sonarsource.com/t/sonarqube-api-accessing-project-data/115115 "2024-05-10T13:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmoustafa](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hmoustafa](https://community.sonarsource.com/u/hmoustafa)\
**Post date:** [May 10, 2024, 1:26pm UTC](https://community.sonarsource.com/t/sonarqube-api-accessing-project-data/115115/1 "2024-05-10T13:26:55Z")

</div>

deployed with Docker

i want to know if the only option i have for pulling the data about different projects is with the DB or if it is possible to utilise the api?

i’ve looked at the web api and i can’t seem to find any functionnality that helps you do that.

---

<div class="post-metadata">

**Author:** ![anon67236913](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@anon67236913](https://community.sonarsource.com/u/anon67236913)\
**Post date:** [May 10, 2024, 3:35pm UTC](https://community.sonarsource.com/t/sonarqube-api-accessing-project-data/115115/2 "2024-05-10T15:35:46Z")

</div>

Welcome 🙂

normally the Sonarqube DB should be seen / handled as black box. There are (very) rare cases where you need to access the db directly, i.e for resetting the admin password.

All data is accessible via the rest api, see web api docs  
`http(s)://<yoursonarhost>:9000/web_api`  
to see all including internal and deprecated see  
`http(s)://<yoursonarhost>:9000/web_api?deprecated=true&internal=true`

You may check what’s going on under the hood when doing operations in the Sonarqube web ui and spy with the browser developer tool to see the underlying rest calls.

When you provide more details about the data you want to pull me might assist with the appropriate rest calls.

Gilbert
