Quota left in / v2 / directions / {profile} / geojson

I am using / v2 / directions / {profile} / geojson.
Is there a way to get the quota left after the request (in the response) without using the dashboard?
Thank for the reply

Hi @Patrick_D,

the remaining quota is returned in the response within the headers as X-Ratelimit-Remaining.

Hi Adam,
Thank you.