Ivan Nikolaienko
Ivan Nikolaienko

Reputation: 1

Google Postmaster Tools API returns no data for some domains

I am trying to retrieve data on my domains using the API https://gmailpostmastertools.googleapis.com/v1beta1/domains/mydomain-example.com/trafficStats?pageSize=100&alt=json

For a number of them data is successfully returned, but in some cases all i'm getting is an empty object.

Is there any way to make API return the same information that I see on the panel?

I expect at least some data since the metrics are not empty on the Postmaster panel.

Upvotes: 0

Views: 103

Answers (1)

g0gan
g0gan

Reputation: 11

Try to use this GET request:

https://gmailpostmastertools.googleapis.com/v1/domains/YOURDOMAIN_HERE/trafficStats/20241102

works fine foe me

Upvotes: 0

Related Questions