Mika Scraper / searchSticker
Function: searchSticker()
searchSticker(
query
):Promise
<StickerPack
[]>
Defined in: src/sticker/sticker-pack.ts:19
Searches for sticker packs matching the provided query keyword.
Parameters
query
string
The keyword to search for sticker packs (e.g., βguraβ).
Returns
Promise
<StickerPack
[]>
A promise that resolves to an array of StickerPack
objects containing the title and URL of each sticker pack.
Example
import { searchSticker } from 'mika-scraper';
async function exampleUsage() {
try {
const stickerPacks = await searchSticker("gura");
console.log(stickerPacks);
} catch (error) {
console.error("Error fetching sticker packs:", error);
}
}
Last updated on