L'API
Google Business Performance ha un metodo
NOVITÀ che consente di recuperare più `dailyMetrics` in un'unica richiesta API.
Consulta il
calendario del ritiro e le istruzioni per eseguire la migrazione dal metodo API ReportInsights della versione 4 all'API Performance di Google Profilo.
Method: accounts.locations.localPosts.list
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce un elenco di post locali associati a una posizione.
Richiesta HTTP
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/localPosts
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
parent |
string
Il nome della sede di cui verranno elencati i post locali.
|
Parametri di query
Parametri |
pageSize |
integer
Il numero di post locali da restituire per pagina. Il valore predefinito è 20. Il valore minimo è 1, mentre quello massimo è 100.
|
pageToken |
string
Se specificato, restituisce la pagina successiva di post locali.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Messaggio di risposta per localPosts.list
Rappresentazione JSON |
{
"localPosts": [
{
object (LocalPost )
}
],
"nextPageToken": string
} |
Campi |
localPosts[] |
object (LocalPost )
L'elenco di post locali restituito.
|
nextPageToken |
string
Se sono presenti più post locali rispetto alle dimensioni di pagina richieste, questo campo viene compilato con un token per recuperare la pagina successiva di post locali in una chiamata successiva a localPosts.list .
|
Ambiti di autorizzazione
Richiede uno dei seguenti ambiti OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Per ulteriori informazioni, consulta la panoramica di OAuth 2.0.
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."],[[["\u003cp\u003eThis endpoint retrieves a list of local posts associated with a specific location using an HTTP GET request.\u003c/p\u003e\n"],["\u003cp\u003eIt supports pagination with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters, allowing control over the number of posts returned and retrieval of subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of \u003ccode\u003eLocalPost\u003c/code\u003e objects and a \u003ccode\u003enextPageToken\u003c/code\u003e for accessing further results if available.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required with specific OAuth scopes such as \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e.\u003c/p\u003e\n"]]],["This describes how to retrieve local posts associated with a specific location. A `GET` request is sent to the specified URL, including the location in the `parent` path parameter. Optional `pageSize` and `pageToken` query parameters allow for pagination. The request body must be empty. The successful response includes an array of `localPosts` objects, and a `nextPageToken` string for retrieving further results if more are available. Access requires specific authorization scopes.\n"],null,["# Method: accounts.locations.localPosts.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListLocalPostsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nReturns a list of local posts associated with a location.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/localPosts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------|\n| `parent` | `string` The name of the location whose local posts will be listed. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` How many local posts to return per page. Default of 20. The minimum is 1, and maximum page size is 100. |\n| `pageToken` | `string` If specified, returns the next page of local posts. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for localPosts.list\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"localPosts\": [ { object (/my-business/reference/rest/v4/accounts.locations.localPosts#LocalPost) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `localPosts[]` | `object (`[LocalPost](/my-business/reference/rest/v4/accounts.locations.localPosts#LocalPost)`)` The returned list of local posts. |\n| `nextPageToken` | `string` If there are more local posts than the requested page size, then this field is populated with a token to fetch the next page of local posts on a subsequent call to `localPosts.list`. |\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]