# getWallpaper

{% hint style="info" %}
This method belongs to the class - [Alpha](https://biologyscience.gitbook.io/alpha-coders/reference/classes/alpha)
{% endhint %}

### Parameters

| PARAMETER |                                                TYPE                                               |     DESCRIPTION    |
| :-------: | :-----------------------------------------------------------------------------------------------: | :----------------: |
|   **id**  | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | ID of a Wallpaper. |

### Returns

[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[WallpaperInfo](https://biologyscience.gitbook.io/alpha-coders/types#wallpaperinfo) | [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null)>

### Example Code

```javascript
new Alpha(apiKey).getWallpaper(1).then(x => console.log(x));
```
