search

Get Wallpapers matching a given search term.

This method belongs to the class - Alpha

Parameters

Returns

Promise<Array<Wallpaper> | null>

Example Code

new Alpha(apiKey).search('video games').then(x => console.log(x));

// OR

new Alpha(apiKey).search('video games', {
    page: 10,
    operator: 'min',
    type: 'phone',
    ratio: [0.75, 1]
}).then(x => console.log(x));

Last updated