Notification

In this help center, you can find content for both Merchant Center Next and the classic Merchant Center experience. Look for the logo at the top of each article to make sure you're using the article for the Merchant Center version that applies to you. 

Debug API errors via API Diagnostics

A custom icon for Merchant Center Classic Article Header.

If you're looking for information about debugging API errors using API Diagnostics in Merchant Center Next, click here.

Animated GIF showing how to access API diagnostics in Merchant Center

The API Diagnostics tab in the Merchant Center shows the status of any Content API for Shopping requests.

The API Diagnostics tab allows you to:

  • View all the successful and failed API requests for a given time period.
  • Determine the number of successful and failed requests per API service & method.
  • Review examples of failed requests.
In this article, you'll learn how to access the API Diagnostics tab to diagnose errors with your API requests. After fixing the errors, you may resubmit the API requests.

Review API requests

There are two main parts of the API Diagnostics tab:
  • A timeline graph that shows the number of successful and failed API requests for a specific time period.
  • A table that shows the total API requests and the number of failed API requests within that total.
Note: The timestamps on the graph are based on the time zone specified in your account settings.
To review API requests:
  1. Sign in to your Merchant Center account
  2. Click the tools and settings icon Tools and setting menu icon [Gear], then select Content API under “Settings.”
  3. Use the date range drop-down menu to specify the time period.
  4. Use the filter menu above the table to specify the API service request (for example, orders with the “cancellineitem” method) that you want to review. Both the table and the timeline update to show the specific API service request.

View failed API requests

Once the table displays the results for your selected data range, you can browse through the listed services and methods to quickly determine the causes of the failed API requests. By default, the errors are listed by descending number of instances for each service, but you can change the sort order by selecting a column header.

To view the failed requests:

  1. In the "Number of failed API calls" column, click the failed request value for a specific method to drill down through the errors and their respective example snippets.
  2. View the error in the example code. Use the error messages as guidelines for fixing your API requests.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
8487374997135735065
true
Search Help Center
true
true
true
true
true
71525
false
false