Interfejs
Google Business Performance API udostępnia
NOWĄ metodę interfejsu API, która umożliwia pobieranie wielu parametrów „DailyMetrics” w jednym żądaniu API.
Zapoznaj się z
harmonogramem wycofywania i instrukcjami, jak przejść z metody raportu API w wersji 4 na interfejs Google Business Profile Performance API.
My Business Lodging API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Interfejs My Business Lodging API umożliwia zarządzanie informacjami o firmach oferujących zakwaterowanie w Google.
Uwaga: jeśli po włączeniu interfejsu API limit wynosi 0, poproś o dostęp do tego interfejsu API.
Usługa: mybusinesslodging.googleapis.com
Aby wywołać tę usługę, zalecamy użycie dostarczonych przez Google bibliotek klienta. Jeśli do wywoływania tej usługi aplikacja musi używać własnych bibliotek, podczas tworzenia żądań do interfejsu API użyj podanych niżej informacji.
Dokument opisujący
Dokument opisujący to czytelna dla komputera specyfikacja opisująca interfejsy API REST i korzystanie z nich. 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 tego punktu końcowego:
https://mybusinesslodging.googleapis.com
Metody |
getLodging |
GET /v1/{name=locations/*/lodging} Zwraca informacje o kwaterowaniu w określonej lokalizacji. |
updateLodging |
PATCH /v1/{lodging.name=locations/*/lodging}
– aktualizuje informacje o noclegach w określonej lokalizacji. |
Metody |
getGoogleUpdated |
GET /v1/{name=locations/*/lodging}:getGoogleUpdated Zwraca zaktualizowane przez Google kwatery w określonej lokalizacji. |
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."],[[["\u003cp\u003eThe My Business Lodging API allows management of lodging business information on Google.\u003c/p\u003e\n"],["\u003cp\u003eYou may need to request access to the GBP API if your quota is 0 after enabling the API.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are recommended for using this service, but the discovery document and service endpoint are provided for custom integrations.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to retrieve and update lodging information for specific locations, including Google's updates.\u003c/p\u003e\n"]]],["The My Business Lodging API manages lodging business data on Google, accessible via `mybusinesslodging.googleapis.com`. It provides two REST resources: `v1.locations` and `v1.locations.lodging`. `v1.locations` allows retrieving (`getLodging`) and updating (`updateLodging`) a specific location's lodging data. `v1.locations.lodging` permits retrieval of Google's updated lodging information (`getGoogleUpdated`). Access may require requesting GBP API access if the initial quota is zero. Client libraries are recommended; a discovery document is available for custom implementations.\n"],null,["# My Business Lodging API\n\nThe My Business Lodging API enables managing lodging business information on Google. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.locations](#v1.locations)\n- [REST Resource: v1.locations.lodging](#v1.locations.lodging)\n\nService: mybusinesslodging.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://mybusinesslodging.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://mybusinesslodging.googleapis.com`\n\nREST Resource: [v1.locations](/my-business/reference/lodging/rest/v1/locations)\n-------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| [getLodging](/my-business/reference/lodging/rest/v1/locations/getLodging) | `GET /v1/{name=locations/*/lodging}` Returns the Lodging of a specific location. |\n| [updateLodging](/my-business/reference/lodging/rest/v1/locations/updateLodging) | `PATCH /v1/{lodging.name=locations/*/lodging}` Updates the Lodging of a specific location. |\n\nREST Resource: [v1.locations.lodging](/my-business/reference/lodging/rest/v1/locations.lodging)\n-----------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [getGoogleUpdated](/my-business/reference/lodging/rest/v1/locations.lodging/getGoogleUpdated) | `GET /v1/{name=locations/*/lodging}:getGoogleUpdated` Returns the Google updated Lodging of a specific location. |"]]