---
sourceType: official-guide
sourceTypeMatchedRule: fallback
slug: Social/sdk/ios-sdk/open-api/lay-thong-tin-profile
title: Lấy thông tin profile
---
# Lấy thông tin profile

## Response response.data là dictionary như sau :
```json
{
    "id": "UserId",
    "name": "User Name",
    "picture": {
        "data": {
            "url": "User avatar url"
        }
    }
}
```
## Sample code
```java
ZaloSDK.sharedInstance().getZaloUserProfile(withAccessToken: accessToken) { (response) in
    if response?.errorCode == ZaloSDKErrorCode.sdkErrorCodeNoneError.rawValue {
        // Thành công
    } else {
        // Có lỗi xảy ra
    }
}
```
*   accessToken: xem lại việc lấy accessToken tại bước [Lấy AccessToken](/docs/Social/sdk/ios-sdk/dang-nhap/lay-access-token)

{/* Xem thêm chi tiết về api này tại [đây](https://developers.zalo.me/docs/api/open-api/tai-lieu/thong-tin-nguoi-dung-post-28). */}
