File size: 5,181 Bytes
518bc25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# LINE Store Web API

Base URL: `https://store.line.me`

## Search product

`GET /api/search/:category`

Request Headers

- `Accept-Language`: ISO country code
  - Used to determine the language of search results

Path Parameters

- `category`: 'sticker' | 'emoji' | 'theme' | 'family'
  - 'sticker'='スタンプ', 'emoji'='絵文字', 'theme'='着せ替え', 'family'='その他'

Query Parameters

- `query`: string
- `category`: 'sticker' | 'emoji' | 'theme' | 'family'
  - Must match the path parameters exactly
- `type`: 'ALL' | 'OFFICIAL' | 'CREATORS' | 'SUBSCRIPTION'
  - 'ALL'='すべて', 'OFFICIAL'='公式', 'CREATORS'='クリエイターズ', 'SUBSCRIPTION'='LINE スタンプ プレミアム'
- `offset`: number
- `limit`: number

---

# LINE Product CDN Spec

Base URL: `https://stickershop.line-scdn.net`

## Stickers

Path Parameters

- `productId`: number
  - Sticker product ID (integer)

### Metadata JSON

`GET /stickershop/v1/product/:productId/:deviceType/productInfo.meta`

Path Parameters

- `deviceType`: 'ios' | 'android' | 'LINEStorePC'

```typescript
const stickerResourceTypes = ['STATIC', 'ANIMATION', 'SOUND', 'ANIMATION_SOUND'] as const;
type productInfo_meta = {
  packageId: number; // productId
  onSale: boolean;
  validDays: number;
  title: { [lang: string]: string }; // Example: {ja: 'タイトル', en: 'Title'}
  author: { [lang: string]: string }; // Example: {ja: '名前', en: 'Author'}
  price: {
    country: string;
    currency: string;
    symbol: string;
    price: number;
  }[];
  stickers: {
    id: number; // stickerId
    width: number; // image width
    height: number; // image height
  }[];
  hasAnimation: boolean;
  hasSound: boolean;
  stickerResourceType: (typeof stickerResourceTypes)[number];
};
```

### Product packed zip

`GET /stickershop/v1/product/:productId/:deviceType/:file`

Path Parameters

- `deviceType`: 'ios' | 'android'
- `file`: 'stickerpack@2x.zip' | 'stickerpack.zip' | 'stickers.zip'
  - 'stickerpack@2x.zip' = png (2x) + apng (2x) + m4a
  - 'stickerpack.zip' = png (1x) + apng (1x) + m4a
  - 'stickers.zip' = png (1x) STATIC
  - android stickerpack@2x.zip is not available

### Independent sticker

`GET /stickershop/v1/sticker/:stickerId/:deviceType/:file`

Path Parameters

- `stickerId`: number
- `deviceType`: 'ios' | 'android'
- `file`: 'sticker@2x.png' | 'sticker.png'
  - android sticker@2x.png is not available

### Product thumbnail

`GET /stickershop/v1/product/:productId/LINEStorePC/main.png`

### Independent sticker sound

`GET /stickershop/v1/sticker/:stickerId/:deviceType/sticker_sound.m4a`

Path Parameters

- `stickerId`: number
- `deviceType`: 'ios' | 'android' | 'LINEStorePC'

### Product thumbnail sound

`GET /stickershop/v1/product/:productId/:deviceType/main_sound.m4a`

Path Parameters

- `deviceType`: 'ios' | 'android' | 'LINEStorePC'

---

## Sticons (emoji)

Path Parameters

- `productId`: string
  - Sticons product ID (integer) 96 bit hex (deliver func is unknown)

### Metadata JSON

`GET /sticonshop/v1/sticon/:productId/:deviceType/meta.json`

Path Parameters

- `deviceType`: 'iPhone' | 'android'

```typescript
type meta_json = {
  productId: string;
  altTexts: { [iconIndex: string]: string };
  orders: string[]; // array of iconIndex
  sticonResourceType?: 'STATIC' | 'ANIMATION'; // STATIC if key does not exist
};
```

### Product packed zip

`GET /sticonshop/v1/sticon/:productId/:deviceType/:file`

Path Parameters

- `deviceType`: 'iPhone' | 'android'
- `file`: 'package_animation.zip' | 'package.zip'
  - 'package_animation.zip' = APNG
  - 'package.zip' = PNG

### Independent sticon

`GET /sticonshop/v1/sticon/:productId/:deviceType/:file`

Path Parameters

- `deviceType`: 'iPhone' | 'android'
- `file`: `${iconIndex}_animation.png` | `${iconIndex}.png`
  - `iconIndex`: 3-digit icon index string (001-999)
  - `${iconIndex}_animation.png` = APNG
  - `${iconIndex}.png` = PNG

### Product thumbnail

`GET /sticonshop/v1/product/:productId/iPhone/main.png`

---

## Themes

?

---

## Family

?

---

## Product packed zip structure

### Stickers

- stickerpack@2x.zip | stickerpack.zip
  - productInfo.meta (JSON)
  - `${stickerId}@2x.png` | `${stickerId}.png` (PNG STATIC)
  - `${stickerId}_key@2x.png` | `${stickerId}_key.png` (PNG STATIC low quality)
  - tab_on@2x.png | tab_on.png (small thumbnail)
  - tab_off@2x.png | tab_off.png (small thumbnail grayscale)
  - sound
    - `${stickerId}.m4a` (M4A SOUND)
  - animation | animation@2x
    - `${stickerId}@2x.png` | `${stickerId}.png` (APNG ANIMATION)
- stickers@2x.zip | stickers.zip
  - productInfo.meta
  - `${stickerId}@2x.png` | `${stickerId}.png` (PNG STATIC)
  - `${stickerId}_key@2x.png` | `${stickerId}_key.png` (PNG STATIC low quality)
  - tab_on@2x.png | tab_on.png (small thumbnail)
  - tab_off@2x.png | tab_off.png (small thumbnail grayscale)

`sound` and `animation` folder may not exist depending on the resource type. (example: STATIC)

### Sticons (emoji)

- package_animation.zip
  - meta.json
  - `${iconIndex}_animation.png` (APNG)
  - `${iconIndex}_key_animation.png` (APNG)
- package.zip
  - meta.json
  - `${iconIndex}.png` (PNG)
  - `${iconIndex}_key.png` (PNG)