Gmail Postmaster Tools API
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API Postmaster Tools è un'API RESTful che fornisce accesso programmatico alle metriche sul traffico email (come segnalazioni di spam, errori di recapito e così via), attualmente disponibili tramite l'interfaccia utente di Gmail Postmaster Tools.
Servizio: gmailpostmastertools.googleapis.com
Per chiamare questo servizio, ti consigliamo di utilizzare le librerie client fornite da Google. Se la tua applicazione deve utilizzare le tue librerie per chiamare questo servizio, utilizza le seguenti informazioni quando effettui le richieste API.
Documento di rilevamento
Un documento di rilevamento è una specifica leggibile da computer per descrivere e utilizzare le API REST. Viene utilizzato per creare librerie client, plug-in IDE e altri strumenti che interagiscono con le API di Google. Un servizio può fornire più documenti di rilevamento. Questo servizio fornisce il seguente documento di rilevamento:
Endpoint di servizio
Un endpoint di servizio è un URL di base che specifica l'indirizzo di rete di un servizio API. Un servizio può avere più endpoint di servizio. Questo servizio ha il seguente endpoint di servizio e tutti gli URI riportati di seguito sono relativi a questo endpoint di servizio:
https://gmailpostmastertools.googleapis.com
Metodi |
get |
GET /v1/{name=domains/*}
Recupera un dominio specifico registrato dal cliente. |
list |
GET /v1/domains
Elenca i domini registrati dal cliente. |
Metodi |
get |
GET /v1/{name=domains/*/trafficStats/*}
Visualizza le statistiche sul traffico per un dominio in una data specifica. |
list |
GET /v1/{parent=domains/*}/trafficStats
Elenca le statistiche sul traffico per tutti i giorni disponibili. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]