How to get 'Squash commits when merging' value for project

I’m working on a small reporting application that checks the configuration of our gitlab projects.
That why I’m trying to get the value of ‘Squash commits when merging’.
In the web GUI it can be found in Settings/General/Merge Requests, but I need help with finding it in any of the api’s.

Hi @liu_minus
this is currently not possible using API. There is request for it.