Coba server MCP untuk Google Analytics. Instal dari
GitHub, dan lihat
pengumuman untuk mengetahui detail selengkapnya.
Method: accounts.get
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Permintaan HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama akun yang akan dicari. Format: accounts/{account} Contoh: "accounts/100"
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance Account
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eLookup account details using the provided API endpoint with a GET request.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the account to lookup using the \u003ccode\u003ename\u003c/code\u003e path parameter in the format \u003ccode\u003eaccounts/{account}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires authorization using specified OAuth scopes for either read or edit access.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return an Account object containing the requested account information.\u003c/p\u003e\n"]]],["This document outlines the process for retrieving a single account using the Analytics Admin API. A `GET` request is made to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`, with the account identifier provided in the `name` path parameter (e.g., `accounts/100`). The request body must be empty. A successful response returns an `Account` instance. Access requires either `analytics.readonly` or `analytics.edit` OAuth scopes. The `try it!` button allows to experiment.\n"],null,["# Method: accounts.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLookup for a single Account.\n\n### HTTP request\n\n`GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the account to lookup. Format: accounts/{account} Example: \"accounts/100\" |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Account](/analytics/devguides/config/admin/v1/rest/v1beta/accounts#Account).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/analytics.readonly`\n- `https://www.googleapis.com/auth/analytics.edit`"]]