# fetchProfileInfo

async function to **fetch only profile info** by uid from the _Genshin Impact_.

### Params

* **`uid: number`** - UID from the game.
* **`language?:`**` ``"CHS" | "CHT" | "DE" | "EN" | "ES" | "FR" | "ID" | "JP" | "KR" | "PT" | "RU" | "TH" | "VI"` (not required) - the language to be used in the localization of names (characters, artifacts, etc.). Default is language selected in the class.

### Example

{% code overflow="wrap" %}
```typescript
import { EnkaNetwork } from "enkanetwork";

const enka = new EnkaNetwork({ language: "EN", assets: { languages: ["RU"] } });

enka.fetchProfileInfo(700832641).then(console.log); // with uid
enka.fetchProfileInfo(700832641, "RU").then(console.log); // with uid and language for localization 
```
{% endcode %}

### Return

{% content-ref url="../models/fetcher/fetchprofileinfo" %}
[fetchprofileinfo](../models/fetcher/fetchprofileinfo)
{% endcontent-ref %}
