Pipelines API data different from GUI

Hello, I’m currently trying to fetch a test summary using the GitLab Pipelines API, but I noticed that the data that I get from the API request differs from what is shown in the GUI page.

As example I tried with the gitlab-runner project Pipeline · GitLab.org / gitlab-runner · GitLab

Here’s the API request and response, where the total count of tests is 15526


In the GUI you can see that the total amount of tests is 15950

Aren’t these supposed to return the same value or am I missing something?
Thank you