> For the complete documentation index, see [llms.txt](https://tdung.gitbook.io/zca-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tdung.gitbook.io/zca-js/api/getstickersdetail.md).

# getStickersDetail

## api.getStickersDetail(stickerIds)

### Parameters

* stickerIds `number` | `number[]`&#x20;
  * mảng hoặc 1 id sticker cần lấy thông tin

### Return

`Promise<StickerDetailResponse>`

### Types

```typescript
export type StickerDetail = {
    id: number;
    cateId: number;
    type: number;
    text: string;
    uri: string;
    fkey: number;
    status: number;
    stickerUrl: string;
    stickerSpriteUrl: string;
    stickerWebpUrl: unknown;
    totalFrames: number;
    duration: number;
    effectId: number;
    checksum: string;
    ext: number;
    source: number;
    fss: unknown;
    fssInfo: unknown;
    version: number;
    extInfo: unknown;
};

export type StickerDetailResponse = StickerDetail[];
```

### Examples

Lấy sticker với từ khóa `"xin chào"`

```typescript
// lấy thông tin của 5 sticker đầu tiên tìm thấy với từ khóa
    
try {
    const keyword = "xin chào";
    const stickerIds = await api.getStickers(keyword);
    const stickersDetail = await api.getStickersDetail(stickerIds.slice(0, 5));
    
    console.log(stickersDetail);
} catch(e) {
    console.error(e);
}
```
