Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[],[],null,["# Track usage metrics\n\nThis guide explains how to use the **API diagnostics** add-on to monitor\nMerchant API usage.\n\nWith API diagnostics, you can do the following:\n\n- Monitor the usage of your API calls.\n- Track the success and failure metrics of API calls.\n- View the exact errors that caused API requests to fail.\n\nIt provides insights into the usage metrics, helping you understand how your\ncalls are performing.\n| **Note:** API diagnostics displays metrics for both Content API and Merchant API. You will see a consolidated view if you use both APIs.\n\nHow to monitor usage statistics\n-------------------------------\n\nTo track the usage metrics in Merchant Center, do the following:\n\n1. Go to [Merchant Center](https://merchants.google.com).\n\n2. Select the settings icon settings. A\n menu appears.\n\n3. From the menu, click **Add-ons**.\n\n4. To enable the **API diagnostics** add-on, click **Add**.\n\n5. A dialog appears, click **Add**.\n\n6. Click **Your add-ons**.\n\n7. Click **Go to API diagnostics**.\n\n8. The [API diagnostics page](//merchants.google.com/mc/contentapi/diagnostics) appears, where you can track usage metrics.\n\nFor more information, see [Debug API errors with API diagnostics](https://support.google.com/merchants/answer/14175321)."]]