Using GitLab API to find all current pending jobs across all projects

Need to expose some queue metrics (number of jobs pending) for monitoring purposes. I know there’s a list of pending jobs available in the UI ( but my attempts to generate a similar list using the API have been unsuccessful. Does anyone know if this is possible?