Gmail Postmaster Tools API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Interfejs API Postmaster Tools to interfejs RESTful API, który zapewnia dostęp programowy do danych o ruchu związanym z pocztą e-mail (takich jak raporty o spamie, błędy dostarczania itp.), które są obecnie dostępne w interfejsie narzędzi Postmaster Tools w Gmailu.
Usługa: gmailpostmastertools.googleapis.com
Do wywołania tej usługi zalecamy użycie dostarczonych przez Google bibliotek klienta. Jeśli aplikacja musi wywoływać tę usługę przy użyciu własnych bibliotek, podczas tworzenia żądań interfejsu API należy używać poniższych informacji.
Dokument opisujący
Dokument opisujący to czytelna dla komputera specyfikacja opisująca interfejsy API REST i sposób ich używania. Służy do tworzenia bibliotek klienta, wtyczek IDE i innych narzędzi, które współdziałają z interfejsami API Google. Jedna usługa może udostępniać wiele dokumentów opisujących. Ta usługa dostarcza następujący dokument opisujący interfejs API:
Punkt końcowy usługi
Punkt końcowy usługi to podstawowy adres URL, który określa adres sieciowy usługi interfejsu API. Jedna usługa może mieć wiele punktów końcowych. Ta usługa ma następujący punkt końcowy i wszystkie poniższe identyfikatory URI odnoszą się do niego:
https://gmailpostmastertools.googleapis.com
Metody |
get |
GET /v1/{name=domains/*} Pobiera informacje o konkretnej domenie zarejestrowanej przez klienta. |
list |
GET /v1/domains Wyświetla listę domen zarejestrowanych przez klienta. |
Metody |
get |
GET /v1/{name=domains/*/trafficStats/*} Wyświetl statystyki ruchu w domenie w określonym dniu. |
list |
GET /v1/{parent=domains/*}/trafficStats Wyświetla statystyki ruchu za wszystkie dostępne dni. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# Gmail Postmaster Tools API\n\nThe Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently.\n\n- [REST Resource: v1.domains](#v1.domains)\n- [REST Resource: v1.domains.trafficStats](#v1.domains.trafficStats)\n\nService: gmailpostmastertools.googleapis.com\n--------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://gmailpostmastertools.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://gmailpostmastertools.googleapis.com`\n\nREST Resource: [v1.domains](/workspace/gmail/postmaster/reference/rest/v1/domains)\n----------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [get](/workspace/gmail/postmaster/reference/rest/v1/domains/get) | `GET /v1/{name=domains/*}` Gets a specific domain registered by the client. |\n| [list](/workspace/gmail/postmaster/reference/rest/v1/domains/list) | `GET /v1/domains` Lists the domains that have been registered by the client. |\n\nREST Resource: [v1.domains.trafficStats](/workspace/gmail/postmaster/reference/rest/v1/domains.trafficStats)\n------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [get](/workspace/gmail/postmaster/reference/rest/v1/domains.trafficStats/get) | `GET /v1/{name=domains/*/trafficStats/*}` Get traffic statistics for a domain on a specific date. |\n| [list](/workspace/gmail/postmaster/reference/rest/v1/domains.trafficStats/list) | `GET /v1/{parent=domains/*}/trafficStats` List traffic statistics for all available days. |"]]