[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-04。"],[[["\u003cp\u003eThis endpoint retrieves account information for matched accounts, either a single user's account for end-user requests or multiple accounts based on matching criteria for admin requests with Google OAuth 2.0 credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003ePOST\u003c/code\u003e to \u003ccode\u003ehttps://identitytoolkit.googleapis.com/v1/accounts:lookup\u003c/code\u003e using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains parameters like \u003ccode\u003eidToken\u003c/code\u003e, \u003ccode\u003elocalId\u003c/code\u003e, \u003ccode\u003eemail\u003c/code\u003e, and \u003ccode\u003ephoneNumber\u003c/code\u003e, which are used to specify the accounts to be fetched, with different parameters required depending on the type of request (end-user or admin).\u003c/p\u003e\n"],["\u003cp\u003eAdmin requests need to be authenticated with a Google OAuth 2.0 credential that have proper permissions and some requests require specific Identity and Access Management (IAM) permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe response body returns a \u003ccode\u003eGetAccountInfoResponse\u003c/code\u003e on a successful request, while authorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.lookup\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.\n\n### HTTP request\n\n`POST https://identitytoolkit.googleapis.com/v1/accounts:lookup`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [GetAccountInfoResponse](/identity-platform/docs/reference/rest/v1/GetAccountInfoResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]